@@ -169,6 +169,7 @@ class SPANDATA:
169
169
AI_PIPELINE_NAME = "ai.pipeline.name"
170
170
"""
171
171
Name of the AI pipeline or chain being executed.
172
+ DEPRECATED: Use GEN_AI_PIPELINE_NAME instead.
172
173
Example: "qa-pipeline"
173
174
"""
174
175
@@ -229,6 +230,7 @@ class SPANDATA:
229
230
AI_STREAMING = "ai.streaming"
230
231
"""
231
232
Whether or not the AI model call's response was streamed back asynchronously
233
+ DEPRECATED: Use GEN_AI_RESPONSE_STREAMING instead.
232
234
Example: true
233
235
"""
234
236
@@ -372,6 +374,24 @@ class SPANDATA:
372
374
Example: "chat"
373
375
"""
374
376
377
+ GEN_AI_PIPELINE_NAME = "gen_ai.pipeline.name"
378
+ """
379
+ Name of the AI pipeline or chain being executed.
380
+ Example: "qa-pipeline"
381
+ """
382
+
383
+ GEN_AI_RESPONSE_MODEL = "gen_ai.response.model"
384
+ """
385
+ Exact model identifier used to generate the response
386
+ Example: gpt-4o-mini-2024-07-18
387
+ """
388
+
389
+ GEN_AI_RESPONSE_STREAMING = "gen_ai.response.streaming"
390
+ """
391
+ Whether or not the AI model call's response was streamed back asynchronously
392
+ Example: true
393
+ """
394
+
375
395
GEN_AI_RESPONSE_TEXT = "gen_ai.response.text"
376
396
"""
377
397
The model's response text messages.
@@ -411,7 +431,7 @@ class SPANDATA:
411
431
GEN_AI_REQUEST_MODEL = "gen_ai.request.model"
412
432
"""
413
433
The model identifier being used for the request.
414
- Example: "gpt-4-turbo-preview "
434
+ Example: "gpt-4-turbo"
415
435
"""
416
436
417
437
GEN_AI_REQUEST_PRESENCE_PENALTY = "gen_ai.request.presence_penalty"
@@ -649,9 +669,11 @@ class OP:
649
669
FUNCTION_AWS = "function.aws"
650
670
FUNCTION_GCP = "function.gcp"
651
671
GEN_AI_CHAT = "gen_ai.chat"
672
+ GEN_AI_EMBEDDINGS = "gen_ai.embeddings"
652
673
GEN_AI_EXECUTE_TOOL = "gen_ai.execute_tool"
653
674
GEN_AI_HANDOFF = "gen_ai.handoff"
654
675
GEN_AI_INVOKE_AGENT = "gen_ai.invoke_agent"
676
+ GEN_AI_RESPONSES = "gen_ai.responses"
655
677
GRAPHQL_EXECUTE = "graphql.execute"
656
678
GRAPHQL_MUTATION = "graphql.mutation"
657
679
GRAPHQL_PARSE = "graphql.parse"
@@ -674,8 +696,6 @@ class OP:
674
696
MIDDLEWARE_STARLITE = "middleware.starlite"
675
697
MIDDLEWARE_STARLITE_RECEIVE = "middleware.starlite.receive"
676
698
MIDDLEWARE_STARLITE_SEND = "middleware.starlite.send"
677
- OPENAI_CHAT_COMPLETIONS_CREATE = "ai.chat_completions.create.openai"
678
- OPENAI_EMBEDDINGS_CREATE = "ai.embeddings.create.openai"
679
699
HUGGINGFACE_HUB_CHAT_COMPLETIONS_CREATE = (
680
700
"ai.chat_completions.create.huggingface_hub"
681
701
)
0 commit comments