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.
@@ -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.42.0"
1
+ __version__ = "0.43.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation-llamaindex
3
- Version: 0.42.0
3
+ Version: 0.43.0
4
4
  Summary: OpenTelemetry LlamaIndex instrumentation
5
5
  License: Apache-2.0
6
6
  Author: Gal Kleinman
@@ -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=hfBUaUE-Lj5p_xUnRHxvWu_SxzMoGMhqekQCFHiSafo,4164
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=fXDp5M3ZbGNxa2CR646QIbRo8oBi15GhGQT_3rvssIE,23
18
- opentelemetry_instrumentation_llamaindex-0.42.0.dist-info/METADATA,sha256=x0cN5087J_Ny_rdIFu6v3AIN6ofzQOQAAViIWJ2dYkM,2240
19
- opentelemetry_instrumentation_llamaindex-0.42.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
- opentelemetry_instrumentation_llamaindex-0.42.0.dist-info/entry_points.txt,sha256=gtV40W4oFCp6VNvgowTKa0zQjfIrvfdlYflgGdSsA5A,106
21
- opentelemetry_instrumentation_llamaindex-0.42.0.dist-info/RECORD,,
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,,