opentelemetry-instrumentation-openai 0.15.2__tar.gz → 0.15.4__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.15.2 → opentelemetry_instrumentation_openai-0.15.4}/PKG-INFO +2 -1
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/shared/__init__.py +5 -0
- opentelemetry_instrumentation_openai-0.15.4/opentelemetry/instrumentation/openai/version.py +1 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/pyproject.toml +3 -2
- opentelemetry_instrumentation_openai-0.15.2/opentelemetry/instrumentation/openai/version.py +0 -1
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/README.md +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/shared/chat_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/shared/config.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/utils.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/v0/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/v1/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -0
{opentelemetry_instrumentation_openai-0.15.2 → opentelemetry_instrumentation_openai-0.15.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: opentelemetry-instrumentation-openai
|
|
3
|
-
Version: 0.15.
|
|
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
|
|
@@ -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
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.15.4"
|
|
@@ -8,7 +8,7 @@ show_missing = true
|
|
|
8
8
|
|
|
9
9
|
[tool.poetry]
|
|
10
10
|
name = "opentelemetry-instrumentation-openai"
|
|
11
|
-
version = "0.15.
|
|
11
|
+
version = "0.15.4"
|
|
12
12
|
description = "OpenTelemetry OpenAI instrumentation"
|
|
13
13
|
authors = [
|
|
14
14
|
"Gal Kleinman <gal@traceloop.com>",
|
|
@@ -26,10 +26,11 @@ include = "opentelemetry/instrumentation/openai"
|
|
|
26
26
|
python = ">=3.9,<4"
|
|
27
27
|
opentelemetry-api = "^1.23.0"
|
|
28
28
|
opentelemetry-instrumentation = "0.44b0"
|
|
29
|
+
opentelemetry-semantic-conventions = "0.44b0"
|
|
29
30
|
opentelemetry-semantic-conventions-ai = "^0.1.1"
|
|
30
31
|
|
|
31
32
|
[tool.poetry.group.dev.dependencies]
|
|
32
|
-
autopep8 = "2.0
|
|
33
|
+
autopep8 = "2.1.0"
|
|
33
34
|
flake8 = "7.0.0"
|
|
34
35
|
|
|
35
36
|
[tool.poetry.group.test.dependencies]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.15.2"
|
|
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
|