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

@@ -134,6 +134,11 @@ def _set_request_attributes(span, kwargs):
134
134
  _set_span_attribute(
135
135
  span, SpanAttributes.LLM_HEADERS, str(kwargs.get("headers"))
136
136
  )
137
+ # The new OpenAI SDK removed the `headers` and create new field called `extra_headers`
138
+ if kwargs.get("extra_headers") is not None:
139
+ _set_span_attribute(
140
+ span, SpanAttributes.LLM_HEADERS, str(kwargs.get("extra_headers"))
141
+ )
137
142
  _set_span_attribute(
138
143
  span, SpanAttributes.LLM_IS_STREAMING, kwargs.get("stream") or False
139
144
  )
@@ -1 +1 @@
1
- __version__ = "0.15.2"
1
+ __version__ = "0.15.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opentelemetry-instrumentation-openai
3
- Version: 0.15.2
3
+ Version: 0.15.4
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
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Provides-Extra: instruments
17
17
  Requires-Dist: opentelemetry-api (>=1.23.0,<2.0.0)
18
18
  Requires-Dist: opentelemetry-instrumentation (==0.44b0)
19
+ Requires-Dist: opentelemetry-semantic-conventions (==0.44b0)
19
20
  Requires-Dist: opentelemetry-semantic-conventions-ai (>=0.1.1,<0.2.0)
20
21
  Project-URL: Repository, https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-openai
21
22
  Description-Content-Type: text/markdown
@@ -1,5 +1,5 @@
1
1
  opentelemetry/instrumentation/openai/__init__.py,sha256=RtjRSDcPG5QYh4wAuu_Szu3PgBSUewxQta5c5jrMEjY,1142
2
- opentelemetry/instrumentation/openai/shared/__init__.py,sha256=nkDcSKkPMTWPA7U39UYcOqzVIp54eUCHUqi1LrvsS7g,8122
2
+ opentelemetry/instrumentation/openai/shared/__init__.py,sha256=90IJchM1dSyANvSTSXbGQaL04mxLRQOTTZHhZP8CUko,8399
3
3
  opentelemetry/instrumentation/openai/shared/chat_wrappers.py,sha256=LvoZNowNh7KhTWgvp528Ma-Wrd506yPYLveBvgeT8p4,13697
4
4
  opentelemetry/instrumentation/openai/shared/completion_wrappers.py,sha256=xg9qNqijT5ZJOk509l9Q7kVHLwo88DUH-Uv4tzSkeOQ,7045
5
5
  opentelemetry/instrumentation/openai/shared/config.py,sha256=Us6lUrKjNXPy8OLJ0Tk2VFsbOKSNTDYY-f8ByEL2LOA,43
@@ -10,8 +10,8 @@ opentelemetry/instrumentation/openai/v0/__init__.py,sha256=z-ueiax_1LvNTSKI4M4Ha
10
10
  opentelemetry/instrumentation/openai/v1/__init__.py,sha256=A9X07leoMeErJaBGMMXAD5nYPc6xaUj2Ng5mriOsZ8Q,8162
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=BOC5JUFbzkhCG96hrOtH7kEDXF3aNOg4kZ97OzGzruI,23
14
- opentelemetry_instrumentation_openai-0.15.2.dist-info/METADATA,sha256=oWKdlJemI0D1sSCll75UXxmZ6hx8GmX3rBPYYBCA93g,2152
15
- opentelemetry_instrumentation_openai-0.15.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
- opentelemetry_instrumentation_openai-0.15.2.dist-info/entry_points.txt,sha256=vTBfiX5yXji5YHikuJHEOoBZ1TFdPQ1EI4ctd2pZSeE,93
17
- opentelemetry_instrumentation_openai-0.15.2.dist-info/RECORD,,
13
+ opentelemetry/instrumentation/openai/version.py,sha256=Ypoj4dM4zqbnGvYnOqiUlHcf_l1wO2M39u5_-ECRTQU,23
14
+ opentelemetry_instrumentation_openai-0.15.4.dist-info/METADATA,sha256=61f0I2u7XLLF5DKpy6uSDD2k1LbKwUic7QdDnbUM65E,2213
15
+ opentelemetry_instrumentation_openai-0.15.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
+ opentelemetry_instrumentation_openai-0.15.4.dist-info/entry_points.txt,sha256=vTBfiX5yXji5YHikuJHEOoBZ1TFdPQ1EI4ctd2pZSeE,93
17
+ opentelemetry_instrumentation_openai-0.15.4.dist-info/RECORD,,