You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This attribute is deprecated. Use CODE_FUNCTION_NAME instead.
426
+
427
+
The method or function name, or equivalent (usually rightmost part of the code unit's name).
428
+
Example: "server_request"
429
+
"""
430
+
431
+
CODE_FUNCTION_NAME="code.function.name"
432
+
"""
415
433
The method or function name, or equivalent (usually rightmost part of the code unit's name).
416
434
Example: "server_request"
417
435
"""
418
436
419
437
CODE_LINENO="code.lineno"
420
438
"""
439
+
.. deprecated::
440
+
This attribute is deprecated. Use CODE_LINE_NUMBER instead.
441
+
421
442
The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
422
443
Example: 42
423
444
"""
424
445
446
+
CODE_LINE_NUMBER="code.line.number"
447
+
"""
448
+
The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`.
449
+
Example: 42
450
+
"""
451
+
425
452
CODE_NAMESPACE="code.namespace"
426
453
"""
454
+
.. deprecated::
455
+
This attribute is deprecated. Use CODE_FUNCTION_NAME instead; the namespace should be included within the function name.
456
+
427
457
The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit.
428
458
Example: "http.handler"
429
459
"""
@@ -437,10 +467,19 @@ class SPANDATA:
437
467
438
468
DB_NAME="db.name"
439
469
"""
470
+
.. deprecated::
471
+
This attribute is deprecated. Use DB_NAMESPACE instead.
472
+
440
473
The name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails).
441
474
Example: myDatabase
442
475
"""
443
476
477
+
DB_NAMESPACE="db.namespace"
478
+
"""
479
+
The name of the database being accessed.
480
+
Example: "customers"
481
+
"""
482
+
444
483
DB_DRIVER_NAME="db.driver.name"
445
484
"""
446
485
The name of the database driver being used for the connection.
@@ -449,18 +488,36 @@ class SPANDATA:
449
488
450
489
DB_OPERATION="db.operation"
451
490
"""
491
+
.. deprecated::
492
+
This attribute is deprecated. Use DB_OPERATION_NAME instead.
493
+
452
494
The name of the operation being executed, e.g. the MongoDB command name such as findAndModify, or the SQL keyword.
An identifier for the database management system (DBMS) product being used. See OpenTelemetry's list of well-known DBMS identifiers.
518
+
Example: "postgresql"
519
+
"""
520
+
464
521
DB_USER="db.user"
465
522
"""
466
523
The name of the database user used for connecting to the database.
@@ -530,10 +587,19 @@ class SPANDATA:
530
587
531
588
GEN_AI_RESPONSE_TEXT="gen_ai.response.text"
532
589
"""
590
+
.. deprecated::
591
+
This attribute is deprecated. Use GEN_AI_OUTPUT_MESSAGES instead.
592
+
533
593
The model's response text messages.
534
594
Example: ["The weather in Paris is rainy and overcast, with temperatures around 57°F", "The weather in London is sunny and warm, with temperatures around 65°F"]
535
595
"""
536
596
597
+
GEN_AI_OUTPUT_MESSAGES="gen_ai.output.messages"
598
+
"""
599
+
The model's response messages. It has to be a stringified version of an array of message objects, which can include text responses and tool calls.
600
+
Example: [{"role": "assistant", "parts": [{"type": "text", "content": "The weather in Paris is currently rainy with a temperature of 57°F."}], "finish_reason": "stop"}]
This attribute is deprecated. Use GEN_AI_TOOL_DEFINITIONS instead.
622
+
551
623
The available tools for the model.
552
624
Example: [{"name": "get_weather", "description": "Get the weather for a given location"}, {"name": "get_news", "description": "Get the news for a given topic"}]
553
625
"""
554
626
627
+
GEN_AI_TOOL_DEFINITIONS="gen_ai.tool.definitions"
628
+
"""
629
+
The list of source system tool definitions available to the GenAI agent or model.
630
+
Example: [{"type": "function", "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["location", "unit"]}}]
The frequency penalty parameter used to reduce repetitiveness of generated tokens.
@@ -572,10 +650,19 @@ class SPANDATA:
572
650
573
651
GEN_AI_REQUEST_MESSAGES="gen_ai.request.messages"
574
652
"""
653
+
.. deprecated::
654
+
This attribute is deprecated. Use GEN_AI_INPUT_MESSAGES instead.
655
+
575
656
The messages passed to the model. The "content" can be a string or an array of objects.
576
657
Example: [{role: "system", "content: "Generate a random number."}, {"role": "user", "content": [{"text": "Generate a random number between 0 and 10.", "type": "text"}]}]
577
658
"""
578
659
660
+
GEN_AI_INPUT_MESSAGES="gen_ai.input.messages"
661
+
"""
662
+
The messages passed to the model. It has to be a stringified version of an array of objects. Role values must be "user", "assistant", "tool", or "system".
0 commit comments