Commit a478d9e
committed
feat(examples): migrate AI examples to OpenTelemetry instrumentation
Switch from PostHog direct SDK wrappers to OpenTelemetry auto-instrumentation
for all AI provider examples where OTel instrumentations are available.
Uses opentelemetry-instrumentation-openai-v2 for OpenAI-compatible providers,
opentelemetry-instrumentation-anthropic for Anthropic, opentelemetry-instrumentation-google-generativeai
for Gemini, opentelemetry-instrumentation-langchain for LangChain/LangGraph,
opentelemetry-instrumentation-llamaindex for LlamaIndex, and opentelemetry-instrumentation-crewai for CrewAI.1 parent 7223c52 commit a478d9e
97 files changed
Lines changed: 9358 additions & 3916 deletions
File tree
- examples
- example-ai-anthropic
- example-ai-autogen
- example-ai-azure-openai
- example-ai-cerebras
- example-ai-cohere
- example-ai-crewai
- example-ai-deepseek
- example-ai-fireworks-ai
- example-ai-gemini
- example-ai-groq
- example-ai-helicone
- example-ai-hugging-face
- example-ai-instructor
- example-ai-langchain
- example-ai-langgraph
- example-ai-litellm
- example-ai-llamaindex
- example-ai-mirascope
- example-ai-mistral
- example-ai-ollama
- example-ai-openai-agents
- example-ai-openai
- example-ai-openrouter
- example-ai-perplexity
- example-ai-portkey
- example-ai-pydantic-ai
- example-ai-semantic-kernel
- example-ai-smolagents
- example-ai-together-ai
- example-ai-vercel-ai-gateway
- example-ai-xai
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
| |||
40 | 53 | | |
41 | 54 | | |
42 | 55 | | |
43 | | - | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | | - | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
15 | 28 | | |
16 | 29 | | |
17 | 30 | | |
18 | 31 | | |
19 | | - | |
20 | 32 | | |
21 | 33 | | |
22 | 34 | | |
| |||
32 | 44 | | |
33 | 45 | | |
34 | 46 | | |
35 | | - | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
12 | 25 | | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
16 | | - | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
27 | | - | |
| 39 | + | |
0 commit comments