opentelemetry-instrumentation-openai 0.46.1__py3-none-any.whl → 0.47.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of opentelemetry-instrumentation-openai might be problematic. Click here for more details.
- opentelemetry/instrumentation/openai/v1/responses_wrappers.py +9 -3
- opentelemetry/instrumentation/openai/version.py +1 -1
- {opentelemetry_instrumentation_openai-0.46.1.dist-info → opentelemetry_instrumentation_openai-0.47.0.dist-info}/METADATA +1 -1
- {opentelemetry_instrumentation_openai-0.46.1.dist-info → opentelemetry_instrumentation_openai-0.47.0.dist-info}/RECORD +6 -6
- {opentelemetry_instrumentation_openai-0.46.1.dist-info → opentelemetry_instrumentation_openai-0.47.0.dist-info}/WHEEL +0 -0
- {opentelemetry_instrumentation_openai-0.46.1.dist-info → opentelemetry_instrumentation_openai-0.47.0.dist-info}/entry_points.txt +0 -0
|
@@ -418,9 +418,15 @@ def set_data_attributes(traced_response: TracedData, span: Span):
|
|
|
418
418
|
)
|
|
419
419
|
tool_call_index += 1
|
|
420
420
|
elif block_dict.get("type") == "reasoning":
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
reasoning_summary = block_dict.get("summary")
|
|
422
|
+
if reasoning_summary is not None and reasoning_summary != []:
|
|
423
|
+
if isinstance(reasoning_summary, (dict, list)):
|
|
424
|
+
reasoning_value = json.dumps(reasoning_summary)
|
|
425
|
+
else:
|
|
426
|
+
reasoning_value = reasoning_summary
|
|
427
|
+
_set_span_attribute(
|
|
428
|
+
span, f"{GEN_AI_COMPLETION}.0.reasoning", reasoning_value
|
|
429
|
+
)
|
|
424
430
|
# TODO: handle other block types, in particular other calls
|
|
425
431
|
|
|
426
432
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.47.0"
|
|
@@ -13,9 +13,9 @@ opentelemetry/instrumentation/openai/v0/__init__.py,sha256=FhpVbP8NqjN2We_srppZ_
|
|
|
13
13
|
opentelemetry/instrumentation/openai/v1/__init__.py,sha256=oLst4xav77tTteZKXo59uyb-2IWqw_xOafaSMzTxq9g,13255
|
|
14
14
|
opentelemetry/instrumentation/openai/v1/assistant_wrappers.py,sha256=oa5xYEDELFN9luvSn3y1xhSs37yRYY_Pwh6htqOs8gc,11297
|
|
15
15
|
opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py,sha256=AT-eDZOFP-K_mm-ecdgQaILoIsEiItZmtwzwAuse86Q,4350
|
|
16
|
-
opentelemetry/instrumentation/openai/v1/responses_wrappers.py,sha256=
|
|
17
|
-
opentelemetry/instrumentation/openai/version.py,sha256=
|
|
18
|
-
opentelemetry_instrumentation_openai-0.
|
|
19
|
-
opentelemetry_instrumentation_openai-0.
|
|
20
|
-
opentelemetry_instrumentation_openai-0.
|
|
21
|
-
opentelemetry_instrumentation_openai-0.
|
|
16
|
+
opentelemetry/instrumentation/openai/v1/responses_wrappers.py,sha256=7d6Z6rK6AoANgOMQajmrbJ7tZDq3uZpHRJP7sj545AU,28492
|
|
17
|
+
opentelemetry/instrumentation/openai/version.py,sha256=aqLqdmGXCjcE1UvvJF8OHznHKbGMeoRrk-C4_mjzdPs,23
|
|
18
|
+
opentelemetry_instrumentation_openai-0.47.0.dist-info/METADATA,sha256=mqk7132WXXNwkGebbYgng1dmoB8_5kSxj4jSked8QIQ,2157
|
|
19
|
+
opentelemetry_instrumentation_openai-0.47.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
20
|
+
opentelemetry_instrumentation_openai-0.47.0.dist-info/entry_points.txt,sha256=vTBfiX5yXji5YHikuJHEOoBZ1TFdPQ1EI4ctd2pZSeE,93
|
|
21
|
+
opentelemetry_instrumentation_openai-0.47.0.dist-info/RECORD,,
|
|
File without changes
|