Repository navigation
Commit 83b1cdb
authored
Emit telemetry under the instrumentation's own scope (#632)
* fix instrumentation scope name and version, add tests
* Enforce the instrumentation scope with a shared test fixture
Replace the per-package instrumentation-scope tests with an autouse
fixture that checks every TelemetryHandler built by instrumentation code
during any test.
* Require util-genai 1.2b0.dev where the scope arguments are used
claude-agent-sdk, crewai and dspy declared older floors, so their oldest
envs resolved a util-genai without instrumentation_scope_name.
Assisted-by: Claude Opus 5
* Renumber changelog fragments to the PR number
* Apply suggestion from @lmolkova
* Keep the fallback scope name and version consistent
Assisted-by: Claude Opus 5
* Fix changelog wording
* Use package names for instrumentation scopes
Assisted-by: ChatGPT 5
* Apply scope test formatting1 parent ba8f9ff commit 83b1cdb
57 files changed
Lines changed: 563 additions & 38 deletions
File tree
- .github/instructions
- instrumentation
- opentelemetry-instrumentation-genai-agno
- .changelog
- src/opentelemetry/instrumentation/genai/agno
- tests
- opentelemetry-instrumentation-genai-anthropic
- .changelog
- src/opentelemetry/instrumentation/genai/anthropic
- tests
- opentelemetry-instrumentation-genai-bedrock
- .changelog
- src/opentelemetry/instrumentation/genai/bedrock
- tests
- opentelemetry-instrumentation-genai-claude-agent-sdk
- .changelog
- src/opentelemetry/instrumentation/genai/claude_agent_sdk
- tests
- opentelemetry-instrumentation-genai-crewai
- .changelog
- src/opentelemetry/instrumentation/genai/crewai
- tests
- opentelemetry-instrumentation-genai-dspy
- .changelog
- src/opentelemetry/instrumentation/genai/dspy
- tests
- opentelemetry-instrumentation-genai-langchain
- .changelog
- src/opentelemetry/instrumentation/genai/langchain
- tests
- opentelemetry-instrumentation-genai-llama-index
- .changelog
- src/opentelemetry/instrumentation/genai/llama_index
- tests
- opentelemetry-instrumentation-genai-openai-agents
- .changelog
- src/opentelemetry/instrumentation/genai/openai_agents
- tests
- opentelemetry-instrumentation-genai-openai
- .changelog
- src/opentelemetry/instrumentation/genai/openai
- tests
- opentelemetry-instrumentation-genai-portkey
- .changelog
- src/opentelemetry/instrumentation/genai/portkey
- tests
- opentelemetry-instrumentation-genai-qwen-agent
- .changelog
- src/opentelemetry/instrumentation/genai/qwen_agent
- tests
- opentelemetry-instrumentation-genai-smolagents
- .changelog
- src/opentelemetry/instrumentation/genai/smolagents
- tests
- opentelemetry-instrumentation-google-genai
- .changelog
- src/opentelemetry/instrumentation/google_genai
- tests
- util
- opentelemetry-test-util-genai/src/opentelemetry/test_util_genai
- opentelemetry-util-genai
- .changelog
- src/opentelemetry/util/genai
- tests
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 | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| |||
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
211 | | - | |
212 | | - | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
0 commit comments