Skip to content

Commit bba3090

Browse files
authored
fix(semconv): revert deleted semconv attributes (#3750)
1 parent 7a572e8 commit bba3090

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,22 @@ class SpanAttributes:
6767
GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = "gen_ai.usage.cache_read_input_tokens"
6868

6969
# LLM Cache Attributes (legacy naming - keeping for backward compatibility)
70+
LLM_SYSTEM = "gen_ai.system"
71+
LLM_REQUEST_MODEL = "gen_ai.request.model"
72+
LLM_REQUEST_MAX_TOKENS = "gen_ai.request.max_tokens"
73+
LLM_REQUEST_TEMPERATURE = "gen_ai.request.temperature"
74+
LLM_REQUEST_TOP_P = "gen_ai.request.top_p"
75+
LLM_PROMPTS = "gen_ai.prompt"
76+
LLM_COMPLETIONS = "gen_ai.completion"
77+
LLM_RESPONSE_MODEL = "gen_ai.response.model"
78+
LLM_USAGE_COMPLETION_TOKENS = "gen_ai.usage.completion_tokens"
79+
LLM_USAGE_PROMPT_TOKENS = "gen_ai.usage.prompt_tokens"
7080
LLM_USAGE_CACHE_CREATION_INPUT_TOKENS = "gen_ai.usage.cache_creation_input_tokens"
7181
LLM_USAGE_CACHE_READ_INPUT_TOKENS = "gen_ai.usage.cache_read_input_tokens"
82+
LLM_TOKEN_TYPE = "gen_ai.token.type"
83+
LLM_REQUEST_STRUCTURED_OUTPUT_SCHEMA = "gen_ai.request.structured_output_schema"
84+
LLM_REQUEST_REASONING_SUMMARY = "gen_ai.request.reasoning_summary"
85+
LLM_RESPONSE_REASONING_EFFORT = "gen_ai.response.reasoning_effort"
7286

7387
# LLM
7488
LLM_REQUEST_TYPE = "llm.request.type"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.14"
1+
__version__ = "0.4.15"

packages/opentelemetry-semantic-conventions-ai/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opentelemetry-semantic-conventions-ai"
3-
version = "0.4.14"
3+
version = "0.4.15"
44
description = "OpenTelemetry Semantic Conventions Extension for Large Language Models"
55
authors = [
66
{ name = "Gal Kleinman", email = "gal@traceloop.com" },

0 commit comments

Comments
 (0)