langtrace-python-sdk 3.3.8__py3-none-any.whl → 3.3.10__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- langtrace_python_sdk/instrumentation/mistral/patch.py +2 -5
- langtrace_python_sdk/instrumentation/ollama/patch.py +1 -1
- langtrace_python_sdk/version.py +1 -1
- {langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/METADATA +1 -1
- {langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/RECORD +8 -8
- {langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/WHEEL +0 -0
- {langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/entry_points.txt +0 -0
- {langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/licenses/LICENSE +0 -0
@@ -46,7 +46,7 @@ from langtrace_python_sdk.instrumentation.openai.patch import extract_content
|
|
46
46
|
|
47
47
|
|
48
48
|
def chat_complete(original_method, version, tracer, is_async=False, is_streaming=False):
|
49
|
-
|
49
|
+
|
50
50
|
def traced_method(wrapped, instance, args, kwargs):
|
51
51
|
service_provider = SERVICE_PROVIDERS["MISTRAL"]
|
52
52
|
llm_prompts = []
|
@@ -65,7 +65,6 @@ def chat_complete(original_method, version, tracer, is_async=False, is_streaming
|
|
65
65
|
|
66
66
|
attributes = LLMSpanAttributes(**span_attributes)
|
67
67
|
|
68
|
-
|
69
68
|
span = tracer.start_span(
|
70
69
|
name=get_span_name(APIS[api]["METHOD"]),
|
71
70
|
kind=SpanKind.CLIENT,
|
@@ -87,7 +86,6 @@ def chat_complete(original_method, version, tracer, is_async=False, is_streaming
|
|
87
86
|
span.set_status(StatusCode.OK)
|
88
87
|
span.end()
|
89
88
|
return result
|
90
|
-
|
91
89
|
|
92
90
|
except Exception as error:
|
93
91
|
span.record_exception(error)
|
@@ -186,7 +184,6 @@ def _set_response_attributes(span, kwargs, result):
|
|
186
184
|
for choice in result.choices
|
187
185
|
]
|
188
186
|
set_event_completion(span, responses)
|
189
|
-
|
190
187
|
# Get the usage
|
191
188
|
if hasattr(result, "usage") and result.usage is not None:
|
192
|
-
set_usage_attributes(span, result.usage)
|
189
|
+
set_usage_attributes(span, dict(result.usage))
|
@@ -84,7 +84,7 @@ def ageneric_patch(operation_name, version, tracer):
|
|
84
84
|
try:
|
85
85
|
result = await wrapped(*args, **kwargs)
|
86
86
|
if kwargs.get("stream"):
|
87
|
-
return StreamWrapper(
|
87
|
+
return StreamWrapper(result, span)
|
88
88
|
else:
|
89
89
|
_set_response_attributes(span, result)
|
90
90
|
span.end()
|
langtrace_python_sdk/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "3.3.
|
1
|
+
__version__ = "3.3.10"
|
@@ -105,7 +105,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
|
|
105
105
|
examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
|
106
106
|
langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
|
107
107
|
langtrace_python_sdk/langtrace.py,sha256=TtRWuUiWUB0S7JiQpUsF9lZsiyqPG3m9mMDX-QlDgAw,12601
|
108
|
-
langtrace_python_sdk/version.py,sha256=
|
108
|
+
langtrace_python_sdk/version.py,sha256=jQHhqdBUDu6FbIspBY33NkdiajdHm47FIinnL5KT-38,23
|
109
109
|
langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
|
110
110
|
langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=d-3Qn5C_NTy1NkmdavZvy-6vePwTC5curN6QMy2haHc,50
|
111
111
|
langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -189,10 +189,10 @@ langtrace_python_sdk/instrumentation/milvus/instrumentation.py,sha256=bpf6uRIJ44
|
|
189
189
|
langtrace_python_sdk/instrumentation/milvus/patch.py,sha256=0yY5aQz0x7hpQZ8U-0qfyk_KIizW60s0e2CZrXe3FNk,4729
|
190
190
|
langtrace_python_sdk/instrumentation/mistral/__init__.py,sha256=mkGALBQvq0jSfwDl6TU09SFwnVs6O4zkUi-yVmd3SNg,90
|
191
191
|
langtrace_python_sdk/instrumentation/mistral/instrumentation.py,sha256=qtCkHCSOaiicUChbmTID4lcK1rbeW8oRSbpda2ogbgM,2328
|
192
|
-
langtrace_python_sdk/instrumentation/mistral/patch.py,sha256=
|
192
|
+
langtrace_python_sdk/instrumentation/mistral/patch.py,sha256=5EzqMeIEcMUH8P-l9-ijpRNWSc6mYwe9Gz0VY4PLrS0,6559
|
193
193
|
langtrace_python_sdk/instrumentation/ollama/__init__.py,sha256=g2zJsXnDHinXPzTc-WxDeTtHmr9gmAj3K6l_00kP8c8,82
|
194
194
|
langtrace_python_sdk/instrumentation/ollama/instrumentation.py,sha256=jdsvkqUJAAUNLVPtAkn_rG26HXetVQXWtjn4a6eWZro,2029
|
195
|
-
langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=
|
195
|
+
langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=w99r9wCCVDdJnZQEezYE2lW_iNFEtrldt9vq3ISAsag,5375
|
196
196
|
langtrace_python_sdk/instrumentation/openai/__init__.py,sha256=VPHRNCQEdkizIVP2d0Uw_a7t8XOTSTprEIB8oboJFbs,95
|
197
197
|
langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=PZxI0qfoud1VsKGmJu49YDp0Z9z9TzCR8qxR3uznOMA,2810
|
198
198
|
langtrace_python_sdk/instrumentation/openai/patch.py,sha256=GINHfq5HHSfOzMr1HErwLuzOFx5pzmclE9Pwa4ziKBQ,24946
|
@@ -264,8 +264,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
|
|
264
264
|
tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
|
265
265
|
tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
|
266
266
|
tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
|
267
|
-
langtrace_python_sdk-3.3.
|
268
|
-
langtrace_python_sdk-3.3.
|
269
|
-
langtrace_python_sdk-3.3.
|
270
|
-
langtrace_python_sdk-3.3.
|
271
|
-
langtrace_python_sdk-3.3.
|
267
|
+
langtrace_python_sdk-3.3.10.dist-info/METADATA,sha256=j6ryxpt724eVAKH7iM0kBs_PKIaV_OwotXH8NuCwIMk,15643
|
268
|
+
langtrace_python_sdk-3.3.10.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
269
|
+
langtrace_python_sdk-3.3.10.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
|
270
|
+
langtrace_python_sdk-3.3.10.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
271
|
+
langtrace_python_sdk-3.3.10.dist-info/RECORD,,
|
File without changes
|
{langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/entry_points.txt
RENAMED
File without changes
|
{langtrace_python_sdk-3.3.8.dist-info → langtrace_python_sdk-3.3.10.dist-info}/licenses/LICENSE
RENAMED
File without changes
|