opentelemetry-instrumentation-llamaindex 0.15.13__py3-none-any.whl → 0.16.1__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/custom_llm_instrumentor.py +7 -1
- opentelemetry/instrumentation/llamaindex/version.py +1 -1
- {opentelemetry_instrumentation_llamaindex-0.15.13.dist-info → opentelemetry_instrumentation_llamaindex-0.16.1.dist-info}/METADATA +1 -1
- {opentelemetry_instrumentation_llamaindex-0.15.13.dist-info → opentelemetry_instrumentation_llamaindex-0.16.1.dist-info}/RECORD +6 -6
- {opentelemetry_instrumentation_llamaindex-0.15.13.dist-info → opentelemetry_instrumentation_llamaindex-0.16.1.dist-info}/WHEEL +0 -0
- {opentelemetry_instrumentation_llamaindex-0.15.13.dist-info → opentelemetry_instrumentation_llamaindex-0.16.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import importlib
|
|
2
|
+
import pkgutil
|
|
2
3
|
|
|
3
4
|
from wrapt import wrap_function_wrapper
|
|
4
5
|
from inflection import underscore
|
|
@@ -13,6 +14,7 @@ from opentelemetry.instrumentation.llamaindex.utils import (
|
|
|
13
14
|
should_send_prompts,
|
|
14
15
|
)
|
|
15
16
|
|
|
17
|
+
import llama_index.llms
|
|
16
18
|
|
|
17
19
|
try:
|
|
18
20
|
from llama_index.core.llms.custom import CustomLLM
|
|
@@ -29,9 +31,13 @@ class CustomLLMInstrumentor:
|
|
|
29
31
|
self._tracer = tracer
|
|
30
32
|
|
|
31
33
|
def instrument(self):
|
|
32
|
-
|
|
34
|
+
packages = pkgutil.iter_modules(llama_index.llms.__path__)
|
|
35
|
+
modules = [
|
|
36
|
+
importlib.import_module(f"llama_index.llms.{p.name}") for p in packages
|
|
37
|
+
]
|
|
33
38
|
custom_llms_classes = [
|
|
34
39
|
cls
|
|
40
|
+
for module in modules
|
|
35
41
|
for name, cls in module.__dict__.items()
|
|
36
42
|
if isinstance(cls, type) and issubclass(cls, CustomLLM)
|
|
37
43
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.
|
|
1
|
+
__version__ = "0.16.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: opentelemetry-instrumentation-llamaindex
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.16.1
|
|
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
|
|
@@ -4,12 +4,12 @@ opentelemetry/instrumentation/llamaindex/base_embedding_instrumentor.py,sha256=x
|
|
|
4
4
|
opentelemetry/instrumentation/llamaindex/base_retriever_instrumentor.py,sha256=ipQozp1_4RE2pLPpWFuDgDOtv_GKPh5PocZRO3_LZWA,1955
|
|
5
5
|
opentelemetry/instrumentation/llamaindex/base_synthesizer_instrumentor.py,sha256=NCgwwZthjq4fdZj-U0m14qZY-2BoEow4H7t5tVr4EAs,1974
|
|
6
6
|
opentelemetry/instrumentation/llamaindex/base_tool_instrumentor.py,sha256=6a5NMPOI9B_oDy7zlAkA6-u5Kqt1fXcbnxx7Xw-E2M4,2359
|
|
7
|
-
opentelemetry/instrumentation/llamaindex/custom_llm_instrumentor.py,sha256=
|
|
7
|
+
opentelemetry/instrumentation/llamaindex/custom_llm_instrumentor.py,sha256=7Jrz4zYy8fk0hm7OSQ4w16Xzc4pU5YbDBwKGLFe7Hvc,5888
|
|
8
8
|
opentelemetry/instrumentation/llamaindex/query_pipeline_instrumentor.py,sha256=Z84cNWnjjMlVRDUE2Jyb0LIYUVqMvf_7YsQ9vQjXrmw,2097
|
|
9
9
|
opentelemetry/instrumentation/llamaindex/retriever_query_engine_instrumentor.py,sha256=mlpyxZ51nYDqdo_O8BSdzBdbmNpD9ejokbIYaejGFPs,2228
|
|
10
10
|
opentelemetry/instrumentation/llamaindex/utils.py,sha256=twTDrGSTN8hhNJIWOya5XMCLs3hOd_s-gie_mLk8z70,687
|
|
11
|
-
opentelemetry/instrumentation/llamaindex/version.py,sha256=
|
|
12
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
13
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
14
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
15
|
-
opentelemetry_instrumentation_llamaindex-0.
|
|
11
|
+
opentelemetry/instrumentation/llamaindex/version.py,sha256=R5mBEOxhwu470g2hhSdRVj5XDTgHKYJlCXukuZUxrtI,23
|
|
12
|
+
opentelemetry_instrumentation_llamaindex-0.16.1.dist-info/METADATA,sha256=nrZBsGsyCermT-KZI7836zKaAhF26_usygLZGg5QRJY,2326
|
|
13
|
+
opentelemetry_instrumentation_llamaindex-0.16.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
14
|
+
opentelemetry_instrumentation_llamaindex-0.16.1.dist-info/entry_points.txt,sha256=gtV40W4oFCp6VNvgowTKa0zQjfIrvfdlYflgGdSsA5A,106
|
|
15
|
+
opentelemetry_instrumentation_llamaindex-0.16.1.dist-info/RECORD,,
|
|
File without changes
|