opentelemetry-instrumentation-openai 0.16.2__py3-none-any.whl → 0.16.3__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.

@@ -128,7 +128,19 @@ class OpenAIV0Instrumentor(BaseInstrumentor):
128
128
  streaming_time_to_generate,
129
129
  ),
130
130
  )
131
- wrap_function_wrapper("openai", "ChatCompletion.acreate", achat_wrapper(tracer))
131
+ wrap_function_wrapper(
132
+ "openai",
133
+ "ChatCompletion.acreate",
134
+ achat_wrapper(
135
+ tracer,
136
+ chat_token_counter,
137
+ chat_choice_counter,
138
+ chat_duration_histogram,
139
+ chat_exception_counter,
140
+ streaming_time_to_first_token,
141
+ streaming_time_to_generate,
142
+ ),
143
+ )
132
144
  wrap_function_wrapper(
133
145
  "openai",
134
146
  "Embedding.create",
@@ -141,7 +153,15 @@ class OpenAIV0Instrumentor(BaseInstrumentor):
141
153
  ),
142
154
  )
143
155
  wrap_function_wrapper(
144
- "openai", "Embedding.acreate", aembeddings_wrapper(tracer)
156
+ "openai",
157
+ "Embedding.acreate",
158
+ aembeddings_wrapper(
159
+ tracer,
160
+ embeddings_token_counter,
161
+ embeddings_vector_size_counter,
162
+ embeddings_duration_histogram,
163
+ embeddings_exception_counter,
164
+ ),
145
165
  )
146
166
 
147
167
  def _uninstrument(self, **kwargs):
@@ -1 +1 @@
1
- __version__ = "0.16.2"
1
+ __version__ = "0.16.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opentelemetry-instrumentation-openai
3
- Version: 0.16.2
3
+ Version: 0.16.3
4
4
  Summary: OpenTelemetry OpenAI instrumentation
5
5
  Home-page: https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-openai
6
6
  License: Apache-2.0
@@ -6,12 +6,12 @@ opentelemetry/instrumentation/openai/shared/config.py,sha256=hd2oUeASejh5bEKot76
6
6
  opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py,sha256=zr7qsH5bpnRMahErgstpphLI-XPN8y7Pxh2_39Oo4Ds,5573
7
7
  opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py,sha256=SnmhXnnO5pyc0x9wvbYb1S_OVM4TYr7qeJPZbs3YxJg,1899
8
8
  opentelemetry/instrumentation/openai/utils.py,sha256=l63pdGpBMEy8oLPlt4QrNL35qYW4nf5ItNsZYYZG7jU,2554
9
- opentelemetry/instrumentation/openai/v0/__init__.py,sha256=lwKZYa7zhYoEKw9hNQAQ68MZnaYA4-nqJrDUcm2I4ZA,5554
9
+ opentelemetry/instrumentation/openai/v0/__init__.py,sha256=ngmmYyfTwRQSjTZAvNpBIOHQ1BIUXeQnOQz126Iucp0,6116
10
10
  opentelemetry/instrumentation/openai/v1/__init__.py,sha256=Tzrxs-OdZ1XDrOsBozrETdVYvOdCfLzlvgZ19fJq5NM,8438
11
11
  opentelemetry/instrumentation/openai/v1/assistant_wrappers.py,sha256=T6Vtdp1fAZdcYjGiTMZwkn4F4DgsltD4p4xLEFW-GhI,5874
12
12
  opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py,sha256=SAzYoun2yyOloofyOWtxpm8E2M9TL3Nm8TgKdNyXHuY,2779
13
- opentelemetry/instrumentation/openai/version.py,sha256=EHpjUSkwlknz5LyeqzgJmyU4YsLCQqDv3RGeURQ4Phg,23
14
- opentelemetry_instrumentation_openai-0.16.2.dist-info/METADATA,sha256=FpzSTPutso-SAk8WDwU6KWqupqZ0CGt1XXwPJ2yOeOg,2218
15
- opentelemetry_instrumentation_openai-0.16.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
- opentelemetry_instrumentation_openai-0.16.2.dist-info/entry_points.txt,sha256=vTBfiX5yXji5YHikuJHEOoBZ1TFdPQ1EI4ctd2pZSeE,93
17
- opentelemetry_instrumentation_openai-0.16.2.dist-info/RECORD,,
13
+ opentelemetry/instrumentation/openai/version.py,sha256=VI_bTBU6ZbRZpVhA2ix956hkRwHW57V59GEZJkhU-vc,23
14
+ opentelemetry_instrumentation_openai-0.16.3.dist-info/METADATA,sha256=LnQsMWUryVdGliNtgV28dIts79tiNIRo2bZCmzaX4lA,2218
15
+ opentelemetry_instrumentation_openai-0.16.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
+ opentelemetry_instrumentation_openai-0.16.3.dist-info/entry_points.txt,sha256=vTBfiX5yXji5YHikuJHEOoBZ1TFdPQ1EI4ctd2pZSeE,93
17
+ opentelemetry_instrumentation_openai-0.16.3.dist-info/RECORD,,