langtrace-python-sdk 2.2.23__py3-none-any.whl → 2.2.24__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.
- langtrace_python_sdk/instrumentation/cohere/patch.py +0 -1
- langtrace_python_sdk/instrumentation/gemini/patch.py +0 -3
- langtrace_python_sdk/instrumentation/groq/patch.py +0 -9
- langtrace_python_sdk/instrumentation/ollama/patch.py +0 -1
- langtrace_python_sdk/version.py +1 -1
- {langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/METADATA +1 -1
- {langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/RECORD +10 -10
- {langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/WHEEL +0 -0
- {langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/entry_points.txt +0 -0
- {langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/licenses/LICENSE +0 -0
|
@@ -13,7 +13,6 @@ from langtrace_python_sdk.utils.llm import (
|
|
|
13
13
|
get_span_name,
|
|
14
14
|
is_streaming,
|
|
15
15
|
set_event_completion,
|
|
16
|
-
set_event_completion_chunk,
|
|
17
16
|
set_span_attributes,
|
|
18
17
|
set_usage_attributes,
|
|
19
18
|
)
|
|
@@ -156,7 +155,6 @@ def build_streaming_response(span, response):
|
|
|
156
155
|
item_to_yield = item
|
|
157
156
|
complete_response += str(item.text)
|
|
158
157
|
yield item_to_yield
|
|
159
|
-
set_event_completion_chunk(span, item.text)
|
|
160
158
|
if hasattr(item, "usage_metadata"):
|
|
161
159
|
usage = item.usage_metadata
|
|
162
160
|
input_tokens = usage.prompt_token_count
|
|
@@ -176,7 +174,6 @@ async def abuild_streaming_response(span, response):
|
|
|
176
174
|
item_to_yield = item
|
|
177
175
|
complete_response += str(item.text)
|
|
178
176
|
yield item_to_yield
|
|
179
|
-
set_event_completion_chunk(span, item.text)
|
|
180
177
|
if hasattr(item, "usage_metadata"):
|
|
181
178
|
usage = item.usage_metadata
|
|
182
179
|
input_tokens = usage.prompt_token_count
|
|
@@ -31,7 +31,6 @@ from langtrace_python_sdk.utils.llm import (
|
|
|
31
31
|
get_langtrace_attributes,
|
|
32
32
|
get_span_name,
|
|
33
33
|
set_event_completion,
|
|
34
|
-
set_event_completion_chunk,
|
|
35
34
|
set_usage_attributes,
|
|
36
35
|
)
|
|
37
36
|
from langtrace_python_sdk.constants.instrumentation.common import (
|
|
@@ -245,14 +244,6 @@ def chat_completions_create(original_method, version, tracer):
|
|
|
245
244
|
else:
|
|
246
245
|
content = []
|
|
247
246
|
|
|
248
|
-
set_event_completion_chunk(
|
|
249
|
-
span,
|
|
250
|
-
(
|
|
251
|
-
"".join(content)
|
|
252
|
-
if len(content) > 0 and content[0] is not None
|
|
253
|
-
else ""
|
|
254
|
-
),
|
|
255
|
-
)
|
|
256
247
|
result_content.append(content[0] if len(content) > 0 else "")
|
|
257
248
|
yield chunk
|
|
258
249
|
finally:
|
|
@@ -8,7 +8,6 @@ from langtrace_python_sdk.utils.llm import (
|
|
|
8
8
|
get_llm_url,
|
|
9
9
|
get_span_name,
|
|
10
10
|
set_event_completion,
|
|
11
|
-
set_event_completion_chunk,
|
|
12
11
|
)
|
|
13
12
|
from langtrace_python_sdk.utils.silently_fail import silently_fail
|
|
14
13
|
from langtrace_python_sdk.constants.instrumentation.common import SERVICE_PROVIDERS
|
langtrace_python_sdk/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.2.
|
|
1
|
+
__version__ = "2.2.24"
|
|
@@ -74,7 +74,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
|
|
|
74
74
|
examples/weaviate_example/query_text.py,sha256=sG8O-bXQpflBAiYpgE_M2X7GcHUlZNgl_wJW8_h-W6Q,127024
|
|
75
75
|
langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
|
|
76
76
|
langtrace_python_sdk/langtrace.py,sha256=5BL5lNZejLRq9AVuOCjFaPpIkFNUh2vLvlGSGVxUlE4,7974
|
|
77
|
-
langtrace_python_sdk/version.py,sha256=
|
|
77
|
+
langtrace_python_sdk/version.py,sha256=n8FieBUcrlslt3wDEzcByvZRql2CrZ3Use6OmcxZsKg,23
|
|
78
78
|
langtrace_python_sdk/constants/__init__.py,sha256=P8QvYwt5czUNDZsKS64vxm9Dc41ptGbuF1TFtAF6nv4,44
|
|
79
79
|
langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=5MNjnAOg-4am78J3gVMH6FSwq5N8TOj72ugkhsw4vi0,46
|
|
80
80
|
langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -102,7 +102,7 @@ langtrace_python_sdk/instrumentation/chroma/instrumentation.py,sha256=nT6PS6bsrI
|
|
|
102
102
|
langtrace_python_sdk/instrumentation/chroma/patch.py,sha256=1jCbyum11ifbQFLO43eg0yW33Yc7NI_fwhRf1gspHcM,9087
|
|
103
103
|
langtrace_python_sdk/instrumentation/cohere/__init__.py,sha256=sGUSLdTUyYf36Tm6L5jQflhzCqvmWrhnBOMYHjvp6Hs,95
|
|
104
104
|
langtrace_python_sdk/instrumentation/cohere/instrumentation.py,sha256=YQFHZIBd7SSPD4b6Va-ZR0thf_AuBCqj5yzHLHJVWnM,2121
|
|
105
|
-
langtrace_python_sdk/instrumentation/cohere/patch.py,sha256=
|
|
105
|
+
langtrace_python_sdk/instrumentation/cohere/patch.py,sha256=Yb0OwxO4gG-WBfGhTFrwUUJEgpnRlyWI_FZveA4T1QU,20972
|
|
106
106
|
langtrace_python_sdk/instrumentation/crewai/__init__.py,sha256=_UBKfvQv7l0g2_wnmA5F6CdSAFH0atNOVPd49zsN3aM,88
|
|
107
107
|
langtrace_python_sdk/instrumentation/crewai/instrumentation.py,sha256=q07x6nnig9JPxDT6ZylyIShfXWjNafKBetnNcA1UdEU,1836
|
|
108
108
|
langtrace_python_sdk/instrumentation/crewai/patch.py,sha256=4W7jEIJX4SJNViPlFTBJdSkvvPVJoI76Bb5DX673Ql8,6203
|
|
@@ -111,10 +111,10 @@ langtrace_python_sdk/instrumentation/dspy/instrumentation.py,sha256=o8URiDvCbZ8L
|
|
|
111
111
|
langtrace_python_sdk/instrumentation/dspy/patch.py,sha256=E2P3MJBQ71or4M6BsvZOwYFtJK1UdTsYkdxVj9fSWPs,9869
|
|
112
112
|
langtrace_python_sdk/instrumentation/gemini/__init__.py,sha256=ilWmKA4Li-g3DX6R10WQ4v-51VljxToEnJpOQoQB5uQ,88
|
|
113
113
|
langtrace_python_sdk/instrumentation/gemini/instrumentation.py,sha256=eGWr2dy1f_9TVZiXSH_MlNQINyS4I28EsOTKREdMVio,1304
|
|
114
|
-
langtrace_python_sdk/instrumentation/gemini/patch.py,sha256=
|
|
114
|
+
langtrace_python_sdk/instrumentation/gemini/patch.py,sha256=Zedp4bZH3-45LOaieSGyoTffgWJjqLs1YCDwM53v2CI,6228
|
|
115
115
|
langtrace_python_sdk/instrumentation/groq/__init__.py,sha256=ZXeq_nrej6Lm_uoMFEg8wbSejhjB2UJ5IoHQBPc2-C0,91
|
|
116
116
|
langtrace_python_sdk/instrumentation/groq/instrumentation.py,sha256=Ttf07XVKhdYY1_fqJc7QWiSdmgEhEVyQB_3Az2_wqYo,1832
|
|
117
|
-
langtrace_python_sdk/instrumentation/groq/patch.py,sha256=
|
|
117
|
+
langtrace_python_sdk/instrumentation/groq/patch.py,sha256=SmpsNVQyRcsvdh2fCKHsQ-EWsauMV972s99hznuNOjk,23504
|
|
118
118
|
langtrace_python_sdk/instrumentation/langchain/__init__.py,sha256=-7ZkqQFu64F-cxSFd1ZPrciODKqmUIyUbQQ-eHuQPyM,101
|
|
119
119
|
langtrace_python_sdk/instrumentation/langchain/instrumentation.py,sha256=_Z4AeNb2hBPSCvMRxE-mUfmkUO_wP_tGGtu-jppWPiI,3462
|
|
120
120
|
langtrace_python_sdk/instrumentation/langchain/patch.py,sha256=BmVBKPpI4P9AX6Y8e67WYSz0a0rxZK7cJkI75ure2f4,4166
|
|
@@ -132,7 +132,7 @@ langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py,sha256=8iAg-O
|
|
|
132
132
|
langtrace_python_sdk/instrumentation/llamaindex/patch.py,sha256=548hzPyT_k-2wmt9AArv4JzTT4j4AGKJq5Ar2bWv7o8,4615
|
|
133
133
|
langtrace_python_sdk/instrumentation/ollama/__init__.py,sha256=g2zJsXnDHinXPzTc-WxDeTtHmr9gmAj3K6l_00kP8c8,82
|
|
134
134
|
langtrace_python_sdk/instrumentation/ollama/instrumentation.py,sha256=jdsvkqUJAAUNLVPtAkn_rG26HXetVQXWtjn4a6eWZro,2029
|
|
135
|
-
langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=
|
|
135
|
+
langtrace_python_sdk/instrumentation/ollama/patch.py,sha256=7ETx0tQic5h_kH1f-IeptFwgNTBb4hSkTkWsB18Avm0,5375
|
|
136
136
|
langtrace_python_sdk/instrumentation/openai/__init__.py,sha256=VPHRNCQEdkizIVP2d0Uw_a7t8XOTSTprEIB8oboJFbs,95
|
|
137
137
|
langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=A0BJHRLcZ74TNVg6I0I9M5YWvSpAtXwMmME6N5CEQ_M,2945
|
|
138
138
|
langtrace_python_sdk/instrumentation/openai/patch.py,sha256=4GCYJzZdUBopEDinpTwRBFf-Enb0hdNO16LiiMKqqvY,24226
|
|
@@ -200,8 +200,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
|
|
|
200
200
|
tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
|
|
201
201
|
tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
|
|
202
202
|
tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
|
|
203
|
-
langtrace_python_sdk-2.2.
|
|
204
|
-
langtrace_python_sdk-2.2.
|
|
205
|
-
langtrace_python_sdk-2.2.
|
|
206
|
-
langtrace_python_sdk-2.2.
|
|
207
|
-
langtrace_python_sdk-2.2.
|
|
203
|
+
langtrace_python_sdk-2.2.24.dist-info/METADATA,sha256=2olUyDmzSjSowAHqjoWmRHZzaN4vcDcyYP6kjukVWQE,14705
|
|
204
|
+
langtrace_python_sdk-2.2.24.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
205
|
+
langtrace_python_sdk-2.2.24.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
|
|
206
|
+
langtrace_python_sdk-2.2.24.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
207
|
+
langtrace_python_sdk-2.2.24.dist-info/RECORD,,
|
|
File without changes
|
{langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.2.23.dist-info → langtrace_python_sdk-2.2.24.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|