opentelemetry-instrumentation-openai 0.25.5__tar.gz → 0.26.0__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.25.5 → opentelemetry_instrumentation_openai-0.26.0}/PKG-INFO +2 -2
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/shared/chat_wrappers.py +2 -0
- opentelemetry_instrumentation_openai-0.26.0/opentelemetry/instrumentation/openai/version.py +1 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/pyproject.toml +2 -2
- opentelemetry_instrumentation_openai-0.25.5/opentelemetry/instrumentation/openai/version.py +0 -1
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/README.md +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/shared/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/shared/completion_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/shared/config.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/utils.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/v0/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/v1/__init__.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/v1/assistant_wrappers.py +0 -0
- {opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py +0 -0
{opentelemetry_instrumentation_openai-0.25.5 → opentelemetry_instrumentation_openai-0.26.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: opentelemetry-instrumentation-openai
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.26.0
|
|
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
|
|
@@ -17,7 +17,7 @@ Provides-Extra: instruments
|
|
|
17
17
|
Requires-Dist: opentelemetry-api (>=1.25.0,<2.0.0)
|
|
18
18
|
Requires-Dist: opentelemetry-instrumentation (>=0.46b0,<0.47)
|
|
19
19
|
Requires-Dist: opentelemetry-semantic-conventions (>=0.46b0,<0.47)
|
|
20
|
-
Requires-Dist: opentelemetry-semantic-conventions-ai (==0.3.
|
|
20
|
+
Requires-Dist: opentelemetry-semantic-conventions-ai (==0.3.6)
|
|
21
21
|
Requires-Dist: tiktoken (>=0.6.0,<1)
|
|
22
22
|
Project-URL: Repository, https://github.com/traceloop/openllmetry/tree/main/packages/opentelemetry-instrumentation-openai
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
@@ -336,6 +336,8 @@ def _set_prompts(span, messages):
|
|
|
336
336
|
if isinstance(content, list):
|
|
337
337
|
content = json.dumps(content)
|
|
338
338
|
_set_span_attribute(span, f"{prefix}.content", content)
|
|
339
|
+
if msg.get("tool_call_id"):
|
|
340
|
+
_set_span_attribute(span, f"{prefix}.tool_call_id", msg.get("tool_call_id"))
|
|
339
341
|
tool_calls = msg.get("tool_calls")
|
|
340
342
|
if tool_calls:
|
|
341
343
|
for i, tool_call in enumerate(tool_calls):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.26.0"
|
|
@@ -8,7 +8,7 @@ show_missing = true
|
|
|
8
8
|
|
|
9
9
|
[tool.poetry]
|
|
10
10
|
name = "opentelemetry-instrumentation-openai"
|
|
11
|
-
version = "0.
|
|
11
|
+
version = "0.26.0"
|
|
12
12
|
description = "OpenTelemetry OpenAI instrumentation"
|
|
13
13
|
authors = [
|
|
14
14
|
"Gal Kleinman <gal@traceloop.com>",
|
|
@@ -27,7 +27,7 @@ python = ">=3.9,<4"
|
|
|
27
27
|
opentelemetry-api = "^1.25.0"
|
|
28
28
|
opentelemetry-instrumentation = "^0.46b0"
|
|
29
29
|
opentelemetry-semantic-conventions = "^0.46b0"
|
|
30
|
-
opentelemetry-semantic-conventions-ai = "0.3.
|
|
30
|
+
opentelemetry-semantic-conventions-ai = "0.3.6"
|
|
31
31
|
tiktoken = ">=0.6.0, <1"
|
|
32
32
|
|
|
33
33
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.25.5"
|
|
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
|