File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
packages/opentelemetry-semantic-conventions-ai Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 1- __version__ = "0.4.14 "
1+ __version__ = "0.4.15 "
Original file line number Diff line number Diff line change 11[project ]
22name = " opentelemetry-semantic-conventions-ai"
3- version = " 0.4.14 "
3+ version = " 0.4.15 "
44description = " OpenTelemetry Semantic Conventions Extension for Large Language Models"
55authors = [
66 { name = " Gal Kleinman" , email = " gal@traceloop.com" },
You can’t perform that action at this time.
0 commit comments