opentelemetry-instrumentation-llamaindex 0.42.0__py3-none-any.whl → 0.43.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.
- opentelemetry/instrumentation/llamaindex/span_utils.py +5 -0
- opentelemetry/instrumentation/llamaindex/version.py +1 -1
- {opentelemetry_instrumentation_llamaindex-0.42.0.dist-info → opentelemetry_instrumentation_llamaindex-0.43.0.dist-info}/METADATA +1 -1
- {opentelemetry_instrumentation_llamaindex-0.42.0.dist-info → opentelemetry_instrumentation_llamaindex-0.43.0.dist-info}/RECORD +6 -6
- {opentelemetry_instrumentation_llamaindex-0.42.0.dist-info → opentelemetry_instrumentation_llamaindex-0.43.0.dist-info}/WHEEL +0 -0
- {opentelemetry_instrumentation_llamaindex-0.42.0.dist-info → opentelemetry_instrumentation_llamaindex-0.43.0.dist-info}/entry_points.txt +0 -0
|
@@ -31,6 +31,11 @@ def set_llm_chat_request_model_attributes(event, span):
|
|
|
31
31
|
|
|
32
32
|
model_dict = event.model_dict
|
|
33
33
|
span.set_attribute(SpanAttributes.LLM_REQUEST_TYPE, LLMRequestTypeValues.CHAT.value)
|
|
34
|
+
|
|
35
|
+
# For StructuredLLM, the model and temperature are nested under model_dict.llm
|
|
36
|
+
if "llm" in model_dict:
|
|
37
|
+
model_dict = model_dict.get("llm", {})
|
|
38
|
+
|
|
34
39
|
span.set_attribute(SpanAttributes.LLM_REQUEST_MODEL, model_dict.get("model"))
|
|
35
40
|
span.set_attribute(
|
|
36
41
|
SpanAttributes.LLM_REQUEST_TEMPERATURE, model_dict.get("temperature")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.43.0"
|
|
@@ -12,10 +12,10 @@ opentelemetry/instrumentation/llamaindex/event_models.py,sha256=PCfCGxrrArwZqR-4
|
|
|
12
12
|
opentelemetry/instrumentation/llamaindex/llamaparse_instrumentor.py,sha256=gvAB5pZ91mMrfI2wvGu8avfBmi-mFEFWS6PfReZnDk4,5604
|
|
13
13
|
opentelemetry/instrumentation/llamaindex/query_pipeline_instrumentor.py,sha256=PfUens1GisvbU98TLXEJ8_ALWGhnbOdsQkMwhFom8ZA,2496
|
|
14
14
|
opentelemetry/instrumentation/llamaindex/retriever_query_engine_instrumentor.py,sha256=SJqIc-hJLOHypOviiDDk0Ne6Jhw5hoonHsW-ZpYz_ig,2656
|
|
15
|
-
opentelemetry/instrumentation/llamaindex/span_utils.py,sha256=
|
|
15
|
+
opentelemetry/instrumentation/llamaindex/span_utils.py,sha256=BIX9q7BZMQEnBDTF4ky1AjW8EEG_yzyrPEVBaC6dWkc,4324
|
|
16
16
|
opentelemetry/instrumentation/llamaindex/utils.py,sha256=K4XFsO9J0d_SIITWmvmNxVcRsVw2oGGVLAdgr2RsUV4,2814
|
|
17
|
-
opentelemetry/instrumentation/llamaindex/version.py,sha256=
|
|
18
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
19
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
20
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
21
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
17
|
+
opentelemetry/instrumentation/llamaindex/version.py,sha256=pl3cAoFfT9LLlEY5aERk2g3HdZ7U2juWOJFyNkliI6c,23
|
|
18
|
+
opentelemetry_instrumentation_llamaindex-0.43.0.dist-info/METADATA,sha256=F38G46MpT8yvW0tmEqZbZTrO5MS_YjnkhdT4xYCYkwk,2240
|
|
19
|
+
opentelemetry_instrumentation_llamaindex-0.43.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
20
|
+
opentelemetry_instrumentation_llamaindex-0.43.0.dist-info/entry_points.txt,sha256=gtV40W4oFCp6VNvgowTKa0zQjfIrvfdlYflgGdSsA5A,106
|
|
21
|
+
opentelemetry_instrumentation_llamaindex-0.43.0.dist-info/RECORD,,
|
|
File without changes
|