Skip to content

Commit d7aaf6c

Browse files
authored
chore(semconv): bump opentelemetry-semantic-conventions to >=0.63b1 and migrate cache token attrs to otel semconv package (#4243)
1 parent 4643b88 commit d7aaf6c

43 files changed

Lines changed: 117 additions & 250 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/opentelemetry-instrumentation-agno/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"opentelemetry-api>=1.28.0,<2",
1414
"opentelemetry-instrumentation>=0.59b0",
1515
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
16-
"opentelemetry-semantic-conventions>=0.59b0",
16+
"opentelemetry-semantic-conventions>=0.63b1",
1717
]
1818

1919
[project.urls]

packages/opentelemetry-instrumentation-alephalpha/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"opentelemetry-api>=1.38.0,<2",
1515
"opentelemetry-instrumentation>=0.59b0",
1616
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
17-
"opentelemetry-semantic-conventions>=0.59b0",
17+
"opentelemetry-semantic-conventions>=0.63b1",
1818
]
1919

2020
[project.urls]

packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,11 @@ async def _aset_token_usage(
297297
set_span_attribute(span, SpanAttributes.GEN_AI_USAGE_TOTAL_TOKENS, total_tokens)
298298

299299
set_span_attribute(
300-
span, SpanAttributes.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, cache_read_tokens
300+
span, GenAIAttributes.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, cache_read_tokens
301301
)
302302
set_span_attribute(
303303
span,
304-
SpanAttributes.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS,
304+
GenAIAttributes.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS,
305305
cache_creation_tokens,
306306
)
307307

@@ -413,11 +413,11 @@ def _set_token_usage(
413413
set_span_attribute(span, SpanAttributes.GEN_AI_USAGE_TOTAL_TOKENS, total_tokens)
414414

415415
set_span_attribute(
416-
span, SpanAttributes.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, cache_read_tokens
416+
span, GenAIAttributes.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, cache_read_tokens
417417
)
418418
set_span_attribute(
419419
span,
420-
SpanAttributes.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS,
420+
GenAIAttributes.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS,
421421
cache_creation_tokens,
422422
)
423423

packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ def _set_token_usage(
9999
set_span_attribute(span, SpanAttributes.GEN_AI_USAGE_TOTAL_TOKENS, total_tokens)
100100

101101
set_span_attribute(
102-
span, SpanAttributes.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, cache_read_tokens
102+
span, GenAIAttributes.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, cache_read_tokens
103103
)
104104
set_span_attribute(
105-
span, SpanAttributes.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS, cache_creation_tokens
105+
span, GenAIAttributes.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS, cache_creation_tokens
106106
)
107107

108108
set_span_attribute(

packages/opentelemetry-instrumentation-anthropic/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"opentelemetry-api>=1.38.0,<2",
1515
"opentelemetry-instrumentation>=0.59b0",
1616
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
17-
"opentelemetry-semantic-conventions>=0.59b0",
17+
"opentelemetry-semantic-conventions>=0.63b1",
1818
]
1919

2020
[project.urls]

packages/opentelemetry-instrumentation-anthropic/uv.lock

Lines changed: 14 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opentelemetry-instrumentation-bedrock/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"opentelemetry-api>=1.38.0,<2",
1515
"opentelemetry-instrumentation>=0.59b0",
1616
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
17-
"opentelemetry-semantic-conventions>=0.59b0",
17+
"opentelemetry-semantic-conventions>=0.63b1",
1818
]
1919

2020
[project.urls]

packages/opentelemetry-instrumentation-chromadb/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"opentelemetry-api>=1.38.0,<2",
1515
"opentelemetry-instrumentation>=0.59b0",
1616
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
17-
"opentelemetry-semantic-conventions>=0.59b0",
17+
"opentelemetry-semantic-conventions>=0.63b1",
1818
]
1919

2020
[project.urls]

packages/opentelemetry-instrumentation-cohere/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"opentelemetry-api>=1.38.0,<2",
1515
"opentelemetry-instrumentation>=0.59b0",
1616
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
17-
"opentelemetry-semantic-conventions>=0.59b0",
17+
"opentelemetry-semantic-conventions>=0.63b1",
1818
]
1919

2020
[project.urls]

packages/opentelemetry-instrumentation-crewai/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"opentelemetry-api>=1.38.0,<2",
1414
"opentelemetry-instrumentation>=0.59b0",
1515
"opentelemetry-semantic-conventions-ai>=0.5.1,<0.6.0",
16-
"opentelemetry-semantic-conventions>=0.59b0",
16+
"opentelemetry-semantic-conventions>=0.63b1",
1717
]
1818

1919
[project.urls]

0 commit comments

Comments
 (0)