opentelemetry-instrumentation-openai 0.40.6__py3-none-any.whl → 0.40.7__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-openai might be problematic. Click here for more details.
- opentelemetry/instrumentation/openai/v0/__init__.py +2 -1
- opentelemetry/instrumentation/openai/v1/__init__.py +2 -1
- opentelemetry/instrumentation/openai/version.py +1 -1
- {opentelemetry_instrumentation_openai-0.40.6.dist-info → opentelemetry_instrumentation_openai-0.40.7.dist-info}/METADATA +1 -1
- {opentelemetry_instrumentation_openai-0.40.6.dist-info → opentelemetry_instrumentation_openai-0.40.7.dist-info}/RECORD +7 -7
- {opentelemetry_instrumentation_openai-0.40.6.dist-info → opentelemetry_instrumentation_openai-0.40.7.dist-info}/WHEEL +0 -0
- {opentelemetry_instrumentation_openai-0.40.6.dist-info → opentelemetry_instrumentation_openai-0.40.7.dist-info}/entry_points.txt +0 -0
|
@@ -4,6 +4,7 @@ from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
|
|
|
4
4
|
from opentelemetry.trace import get_tracer
|
|
5
5
|
from opentelemetry.metrics import get_meter
|
|
6
6
|
from wrapt import wrap_function_wrapper
|
|
7
|
+
from opentelemetry.semconv._incubating.metrics import gen_ai_metrics as GenAIMetrics
|
|
7
8
|
|
|
8
9
|
from opentelemetry.instrumentation.openai.shared.chat_wrappers import (
|
|
9
10
|
chat_wrapper,
|
|
@@ -61,7 +62,7 @@ class OpenAIV0Instrumentor(BaseInstrumentor):
|
|
|
61
62
|
)
|
|
62
63
|
|
|
63
64
|
streaming_time_to_first_token = meter.create_histogram(
|
|
64
|
-
name=
|
|
65
|
+
name=GenAIMetrics.GEN_AI_SERVER_TIME_TO_FIRST_TOKEN,
|
|
65
66
|
unit="s",
|
|
66
67
|
description="Time to first token in streaming chat completions",
|
|
67
68
|
)
|
|
@@ -4,6 +4,7 @@ from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
|
|
|
4
4
|
from opentelemetry.trace import get_tracer
|
|
5
5
|
|
|
6
6
|
from opentelemetry.metrics import get_meter
|
|
7
|
+
from opentelemetry.semconv._incubating.metrics import gen_ai_metrics as GenAIMetrics
|
|
7
8
|
|
|
8
9
|
from wrapt import wrap_function_wrapper
|
|
9
10
|
|
|
@@ -76,7 +77,7 @@ class OpenAIV1Instrumentor(BaseInstrumentor):
|
|
|
76
77
|
)
|
|
77
78
|
|
|
78
79
|
streaming_time_to_first_token = meter.create_histogram(
|
|
79
|
-
name=
|
|
80
|
+
name=GenAIMetrics.GEN_AI_SERVER_TIME_TO_FIRST_TOKEN,
|
|
80
81
|
unit="s",
|
|
81
82
|
description="Time to first token in streaming chat completions",
|
|
82
83
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.40.
|
|
1
|
+
__version__ = "0.40.7"
|
|
@@ -6,12 +6,12 @@ opentelemetry/instrumentation/openai/shared/config.py,sha256=dCQviJ1a5cpFlrP0HcK
|
|
|
6
6
|
opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py,sha256=8l_TA_ncJWJr7Pr-1TcQV9eKNfJgdmi-9kOd8eOIwZI,7486
|
|
7
7
|
opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py,sha256=A4qdJIeJdA45SfiLaFj3Vo0Ndcqqfuew1BDsGdnJU3E,2122
|
|
8
8
|
opentelemetry/instrumentation/openai/utils.py,sha256=B085XRVvCjigZlRewFRwEFTG2hdx5gv5qVakVxgYaVo,4086
|
|
9
|
-
opentelemetry/instrumentation/openai/v0/__init__.py,sha256=
|
|
10
|
-
opentelemetry/instrumentation/openai/v1/__init__.py,sha256=
|
|
9
|
+
opentelemetry/instrumentation/openai/v0/__init__.py,sha256=d_08exBxvYLKy_lToq6UztpLwdBkrKijkSjdGh31xXM,5566
|
|
10
|
+
opentelemetry/instrumentation/openai/v1/__init__.py,sha256=1R7YJ9iFYU2UAwxkZMz1I32buXr6lIdIc09ezamfVOs,8779
|
|
11
11
|
opentelemetry/instrumentation/openai/v1/assistant_wrappers.py,sha256=WRpOuUc5Wi7KFMt8gPMy0b0l7N4EGQIeYAkOxPPZgWI,7733
|
|
12
12
|
opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py,sha256=4HsnPwR450NA5w-KDgMfQjK8U4do_M-sMMPU4LjXyiQ,3444
|
|
13
|
-
opentelemetry/instrumentation/openai/version.py,sha256=
|
|
14
|
-
opentelemetry_instrumentation_openai-0.40.
|
|
15
|
-
opentelemetry_instrumentation_openai-0.40.
|
|
16
|
-
opentelemetry_instrumentation_openai-0.40.
|
|
17
|
-
opentelemetry_instrumentation_openai-0.40.
|
|
13
|
+
opentelemetry/instrumentation/openai/version.py,sha256=vMVJpSl7TnBpi1O-hEq3-fO1Bjhc_UfEYgbQdSjv7NA,23
|
|
14
|
+
opentelemetry_instrumentation_openai-0.40.7.dist-info/METADATA,sha256=iGaXCxpfcRm-nW7sAzqahj4oPr56pNOG8ggz5xDi3Sw,2186
|
|
15
|
+
opentelemetry_instrumentation_openai-0.40.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
16
|
+
opentelemetry_instrumentation_openai-0.40.7.dist-info/entry_points.txt,sha256=vTBfiX5yXji5YHikuJHEOoBZ1TFdPQ1EI4ctd2pZSeE,93
|
|
17
|
+
opentelemetry_instrumentation_openai-0.40.7.dist-info/RECORD,,
|
|
File without changes
|