opentelemetry-instrumentation-llamaindex 0.26.1__py3-none-any.whl → 0.26.2__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-llamaindex might be problematic. Click here for more details.
- opentelemetry/instrumentation/llamaindex/base_agent_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/base_embedding_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/base_retriever_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/base_synthesizer_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/base_tool_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/custom_llm_instrumentor.py +4 -2
- opentelemetry/instrumentation/llamaindex/query_pipeline_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/retriever_query_engine_instrumentor.py +1 -1
- opentelemetry/instrumentation/llamaindex/utils.py +1 -1
- opentelemetry/instrumentation/llamaindex/version.py +1 -1
- {opentelemetry_instrumentation_llamaindex-0.26.1.dist-info → opentelemetry_instrumentation_llamaindex-0.26.2.dist-info}/METADATA +2 -2
- opentelemetry_instrumentation_llamaindex-0.26.2.dist-info/RECORD +16 -0
- opentelemetry_instrumentation_llamaindex-0.26.1.dist-info/RECORD +0 -16
- {opentelemetry_instrumentation_llamaindex-0.26.1.dist-info → opentelemetry_instrumentation_llamaindex-0.26.2.dist-info}/WHEEL +0 -0
- {opentelemetry_instrumentation_llamaindex-0.26.1.dist-info → opentelemetry_instrumentation_llamaindex-0.26.2.dist-info}/entry_points.txt +0 -0
|
@@ -8,7 +8,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
8
8
|
process_response,
|
|
9
9
|
start_as_current_span_async,
|
|
10
10
|
)
|
|
11
|
-
from opentelemetry.
|
|
11
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
TO_INSTRUMENT = [
|
|
@@ -6,7 +6,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
6
6
|
_with_tracer_wrapper,
|
|
7
7
|
start_as_current_span_async,
|
|
8
8
|
)
|
|
9
|
-
from opentelemetry.
|
|
9
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
10
10
|
|
|
11
11
|
V9_MODULE_NAME = "llama_index.embeddings.base"
|
|
12
12
|
V10_MODULE_NAME = "llama_index.core.embeddings"
|
|
@@ -8,7 +8,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
8
8
|
process_response,
|
|
9
9
|
start_as_current_span_async,
|
|
10
10
|
)
|
|
11
|
-
from opentelemetry.
|
|
11
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
V9_MODULE_NAME = "llama_index.indices.base_retriever"
|
|
@@ -8,7 +8,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
8
8
|
process_response,
|
|
9
9
|
start_as_current_span_async,
|
|
10
10
|
)
|
|
11
|
-
from opentelemetry.
|
|
11
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
12
12
|
|
|
13
13
|
V9_MODULE_NAME = "llama_index.response_synthesizers"
|
|
14
14
|
V10_MODULE_NAME = "llama_index.core.response_synthesizers"
|
|
@@ -8,7 +8,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
8
8
|
process_response,
|
|
9
9
|
start_as_current_span_async,
|
|
10
10
|
)
|
|
11
|
-
from opentelemetry.
|
|
11
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
TO_INSTRUMENT = [
|
|
@@ -7,7 +7,7 @@ from inflection import underscore
|
|
|
7
7
|
from opentelemetry import context as context_api
|
|
8
8
|
|
|
9
9
|
from opentelemetry.instrumentation.utils import _SUPPRESS_INSTRUMENTATION_KEY
|
|
10
|
-
from opentelemetry.
|
|
10
|
+
from opentelemetry.semconv_ai import SpanAttributes, LLMRequestTypeValues
|
|
11
11
|
from opentelemetry.instrumentation.llamaindex.utils import (
|
|
12
12
|
_with_tracer_wrapper,
|
|
13
13
|
dont_throw,
|
|
@@ -150,7 +150,9 @@ def _handle_request(span, llm_request_type, args, kwargs, instance: CustomLLM):
|
|
|
150
150
|
_set_span_attribute(
|
|
151
151
|
span, SpanAttributes.LLM_REQUEST_MAX_TOKENS, instance.metadata.context_window
|
|
152
152
|
)
|
|
153
|
-
_set_span_attribute(
|
|
153
|
+
_set_span_attribute(
|
|
154
|
+
span, SpanAttributes.LLM_REQUEST_TOP_P, instance.metadata.num_output
|
|
155
|
+
)
|
|
154
156
|
|
|
155
157
|
if should_send_prompts():
|
|
156
158
|
# TODO: add support for chat
|
|
@@ -9,7 +9,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
9
9
|
process_response,
|
|
10
10
|
start_as_current_span_async,
|
|
11
11
|
)
|
|
12
|
-
from opentelemetry.
|
|
12
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
13
13
|
|
|
14
14
|
V10_MODULE_NAME = "llama_index.core.query_pipeline.query"
|
|
15
15
|
V10_LEGACY_MODULE_NAME = "llama_index.legacy.query_pipeline.query"
|
|
@@ -9,7 +9,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
9
9
|
process_response,
|
|
10
10
|
start_as_current_span_async,
|
|
11
11
|
)
|
|
12
|
-
from opentelemetry.
|
|
12
|
+
from opentelemetry.semconv_ai import SpanAttributes, TraceloopSpanKindValues
|
|
13
13
|
|
|
14
14
|
V9_MODULE_NAME = "llama_index.query_engine.retriever_query_engine"
|
|
15
15
|
V10_MODULE_NAME = "llama_index.core.query_engine.retriever_query_engine"
|
|
@@ -7,7 +7,7 @@ from contextlib import asynccontextmanager
|
|
|
7
7
|
|
|
8
8
|
from opentelemetry import context as context_api
|
|
9
9
|
from opentelemetry.instrumentation.llamaindex.config import Config
|
|
10
|
-
from opentelemetry.
|
|
10
|
+
from opentelemetry.semconv_ai import SpanAttributes
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def _with_tracer_wrapper(func):
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.26.
|
|
1
|
+
__version__ = "0.26.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: opentelemetry-instrumentation-llamaindex
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.2
|
|
4
4
|
Summary: OpenTelemetry LlamaIndex instrumentation
|
|
5
5
|
Home-page: https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-llamaindex
|
|
6
6
|
License: Apache-2.0
|
|
@@ -18,7 +18,7 @@ Requires-Dist: inflection (>=0.5.1,<0.6.0)
|
|
|
18
18
|
Requires-Dist: opentelemetry-api (>=1.26.0,<2.0.0)
|
|
19
19
|
Requires-Dist: opentelemetry-instrumentation (>=0.47b0,<0.48)
|
|
20
20
|
Requires-Dist: opentelemetry-semantic-conventions (>=0.47b0,<0.48)
|
|
21
|
-
Requires-Dist: opentelemetry-semantic-conventions-ai (==0.
|
|
21
|
+
Requires-Dist: opentelemetry-semantic-conventions-ai (==0.4.0)
|
|
22
22
|
Project-URL: Repository, https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-llamaindex
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
opentelemetry/instrumentation/llamaindex/__init__.py,sha256=xVgDrVrDSVLC93OAk9hIvzBybBoKCtquGSV2-2Y_P5E,2318
|
|
2
|
+
opentelemetry/instrumentation/llamaindex/base_agent_instrumentor.py,sha256=WvPuSECoouFQ3MzItWDcnWVQXULjskfLxE-zyH5HrTg,2645
|
|
3
|
+
opentelemetry/instrumentation/llamaindex/base_embedding_instrumentor.py,sha256=SsbAhMtIiC5Djrc32LOkCMxETJlz4653aeC1x0uXm4g,2207
|
|
4
|
+
opentelemetry/instrumentation/llamaindex/base_retriever_instrumentor.py,sha256=aHuH7VNz6D1fWsc0jXV3U3vbqG-Mo20mhHIHcfJbuzo,2346
|
|
5
|
+
opentelemetry/instrumentation/llamaindex/base_synthesizer_instrumentor.py,sha256=zHVMUov1Z86KBS8ZuB51iVHCF_gmT_N7uWLJiuvnaC0,2365
|
|
6
|
+
opentelemetry/instrumentation/llamaindex/base_tool_instrumentor.py,sha256=mdPai098XOqra-BnfdN3amn9WFX06FEf7N9mVqZcJ_c,2758
|
|
7
|
+
opentelemetry/instrumentation/llamaindex/config.py,sha256=CtypZov_ytI9nSrfN9lWnjcufbAR9sfkXRA0OstDEUw,42
|
|
8
|
+
opentelemetry/instrumentation/llamaindex/custom_llm_instrumentor.py,sha256=3YIcVdVGrWOYpPzZCyXnXyi-g1AyAQQDhD1XGLgyc_Q,5950
|
|
9
|
+
opentelemetry/instrumentation/llamaindex/query_pipeline_instrumentor.py,sha256=PfUens1GisvbU98TLXEJ8_ALWGhnbOdsQkMwhFom8ZA,2496
|
|
10
|
+
opentelemetry/instrumentation/llamaindex/retriever_query_engine_instrumentor.py,sha256=OtQ7uZckFtzq9mzqSlKDhvO-Uffl99axuZ2TJXCqDRQ,2627
|
|
11
|
+
opentelemetry/instrumentation/llamaindex/utils.py,sha256=7NfuSbIf5Uohxo79AUM_gB-8RQtxgUO5glCWzXHeueQ,2349
|
|
12
|
+
opentelemetry/instrumentation/llamaindex/version.py,sha256=Crq5hftgS1Lj7H-8uxyxs5fX6lta4LLNjycaIacOoKo,23
|
|
13
|
+
opentelemetry_instrumentation_llamaindex-0.26.2.dist-info/METADATA,sha256=C4A3oaPIoUP4ddQVEx1baBKoz2Ndl1SOpgBjaE0dP0w,2285
|
|
14
|
+
opentelemetry_instrumentation_llamaindex-0.26.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
15
|
+
opentelemetry_instrumentation_llamaindex-0.26.2.dist-info/entry_points.txt,sha256=gtV40W4oFCp6VNvgowTKa0zQjfIrvfdlYflgGdSsA5A,106
|
|
16
|
+
opentelemetry_instrumentation_llamaindex-0.26.2.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
opentelemetry/instrumentation/llamaindex/__init__.py,sha256=xVgDrVrDSVLC93OAk9hIvzBybBoKCtquGSV2-2Y_P5E,2318
|
|
2
|
-
opentelemetry/instrumentation/llamaindex/base_agent_instrumentor.py,sha256=FgchRWt7Tb4KpsTtZbe3HIeuMglH7Slek1sv8FH3xvU,2645
|
|
3
|
-
opentelemetry/instrumentation/llamaindex/base_embedding_instrumentor.py,sha256=6m3qnBfvU2dzAFuJCu_A576gyEmReCVKxOTeiaIoTX4,2207
|
|
4
|
-
opentelemetry/instrumentation/llamaindex/base_retriever_instrumentor.py,sha256=LPdBeoV3817P2mOCQSL8Y46zvxkHATa6oL89f8ZmVY8,2346
|
|
5
|
-
opentelemetry/instrumentation/llamaindex/base_synthesizer_instrumentor.py,sha256=HW-pO4ihrXE324tDg-KBh7U6e3zCRNuP8GZFl6vxGio,2365
|
|
6
|
-
opentelemetry/instrumentation/llamaindex/base_tool_instrumentor.py,sha256=z1Gj1JvBgMyeGjtp8a2GiKjPPBBSLR9-QBP1tHvdSJE,2758
|
|
7
|
-
opentelemetry/instrumentation/llamaindex/config.py,sha256=CtypZov_ytI9nSrfN9lWnjcufbAR9sfkXRA0OstDEUw,42
|
|
8
|
-
opentelemetry/instrumentation/llamaindex/custom_llm_instrumentor.py,sha256=9b9I3WDE0icnYtDpkiFChpl7fwadQnUCryHc3pPi6nM,5936
|
|
9
|
-
opentelemetry/instrumentation/llamaindex/query_pipeline_instrumentor.py,sha256=_XejlSUWusotWdkffKVfLaLsoj6G3Rf_RALs8XWJ0f4,2496
|
|
10
|
-
opentelemetry/instrumentation/llamaindex/retriever_query_engine_instrumentor.py,sha256=JkwdDVR6wrWUKgljnl23AusSw6zeb4JEE8ceM9lBilU,2627
|
|
11
|
-
opentelemetry/instrumentation/llamaindex/utils.py,sha256=u5F80iSqg4sZst6KYwcxvJeC73nr2IN3hFACKf-mtBc,2349
|
|
12
|
-
opentelemetry/instrumentation/llamaindex/version.py,sha256=u0eTmljUU0kO8AAW-e1ESQ49mK2SuhpCy7eCliBLlDU,23
|
|
13
|
-
opentelemetry_instrumentation_llamaindex-0.26.1.dist-info/METADATA,sha256=cU1gMHhYDXPDQPIVB6pQfbi4VRm2k01i0WuS8YCwbEw,2285
|
|
14
|
-
opentelemetry_instrumentation_llamaindex-0.26.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
15
|
-
opentelemetry_instrumentation_llamaindex-0.26.1.dist-info/entry_points.txt,sha256=gtV40W4oFCp6VNvgowTKa0zQjfIrvfdlYflgGdSsA5A,106
|
|
16
|
-
opentelemetry_instrumentation_llamaindex-0.26.1.dist-info/RECORD,,
|
|
File without changes
|