opentelemetry-instrumentation-openai 0.38.0__tar.gz → 0.38.1__tar.gz
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-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/PKG-INFO +1 -1
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/__init__.py +8 -2
- opentelemetry_instrumentation_openai-0.38.1/opentelemetry/instrumentation/openai/version.py +1 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/pyproject.toml +1 -1
- opentelemetry_instrumentation_openai-0.38.0/opentelemetry/instrumentation/openai/version.py +0 -1
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/README.md +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/shared/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/shared/chat_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/shared/config.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/utils.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/v0/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/v1/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.38.0 → opentelemetry_instrumentation_openai-0.38.1}/opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -0
|
@@ -5,8 +5,6 @@ from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
|
|
|
5
5
|
|
|
6
6
|
from opentelemetry.instrumentation.openai.shared.config import Config
|
|
7
7
|
from opentelemetry.instrumentation.openai.utils import is_openai_v1
|
|
8
|
-
from opentelemetry.instrumentation.openai.v0 import OpenAIV0Instrumentor
|
|
9
|
-
from opentelemetry.instrumentation.openai.v1 import OpenAIV1Instrumentor
|
|
10
8
|
|
|
11
9
|
_instruments = ("openai >= 0.27.0",)
|
|
12
10
|
|
|
@@ -38,12 +36,20 @@ class OpenAIInstrumentor(BaseInstrumentor):
|
|
|
38
36
|
|
|
39
37
|
def _instrument(self, **kwargs):
|
|
40
38
|
if is_openai_v1():
|
|
39
|
+
from opentelemetry.instrumentation.openai.v1 import OpenAIV1Instrumentor
|
|
40
|
+
|
|
41
41
|
OpenAIV1Instrumentor().instrument(**kwargs)
|
|
42
42
|
else:
|
|
43
|
+
from opentelemetry.instrumentation.openai.v0 import OpenAIV0Instrumentor
|
|
44
|
+
|
|
43
45
|
OpenAIV0Instrumentor().instrument(**kwargs)
|
|
44
46
|
|
|
45
47
|
def _uninstrument(self, **kwargs):
|
|
46
48
|
if is_openai_v1():
|
|
49
|
+
from opentelemetry.instrumentation.openai.v1 import OpenAIV1Instrumentor
|
|
50
|
+
|
|
47
51
|
OpenAIV1Instrumentor().uninstrument(**kwargs)
|
|
48
52
|
else:
|
|
53
|
+
from opentelemetry.instrumentation.openai.v0 import OpenAIV0Instrumentor
|
|
54
|
+
|
|
49
55
|
OpenAIV0Instrumentor().uninstrument(**kwargs)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.38.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.38.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|