langtrace-python-sdk 3.3.28__py3-none-any.whl → 3.3.29__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.
@@ -1,8 +1,5 @@
1
1
  import json
2
- import os
3
2
 
4
- import ujson
5
- from colorama import Fore
6
3
  from importlib_metadata import version as v
7
4
  from langtrace.trace_attributes import FrameworkSpanAttributes
8
5
  from opentelemetry import baggage
@@ -11,16 +8,11 @@ from opentelemetry.trace.status import Status, StatusCode
11
8
 
12
9
  from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME
13
10
  from langtrace_python_sdk.constants.instrumentation.common import (
14
- LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY,
15
- SERVICE_PROVIDERS,
16
- )
11
+ LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY, SERVICE_PROVIDERS)
17
12
  from langtrace_python_sdk.utils import set_span_attribute
18
- from langtrace_python_sdk.utils.llm import (
19
- get_extra_attributes,
20
- get_langtrace_attributes,
21
- get_span_name,
22
- set_span_attributes,
23
- )
13
+ from langtrace_python_sdk.utils.llm import (get_extra_attributes,
14
+ get_langtrace_attributes,
15
+ get_span_name, set_span_attributes)
24
16
  from langtrace_python_sdk.utils.silently_fail import silently_fail
25
17
 
26
18
 
@@ -139,7 +131,7 @@ def patch_signature(operation_name, version, tracer):
139
131
  set_span_attribute(
140
132
  span,
141
133
  "dspy.signature.result",
142
- json.dumps(result.toDict()),
134
+ json.dumps(result.toDict(), default=lambda x: list(x) if isinstance(x, set) else x),
143
135
  )
144
136
  span.set_status(Status(StatusCode.OK))
145
137
 
@@ -1 +1 @@
1
- __version__ = "3.3.28"
1
+ __version__ = "3.3.29"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langtrace-python-sdk
3
- Version: 3.3.28
3
+ Version: 3.3.29
4
4
  Summary: Python SDK for LangTrace
5
5
  Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
6
6
  Author-email: Scale3 Labs <engineering@scale3labs.com>
@@ -111,7 +111,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
111
111
  examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
112
112
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
113
113
  langtrace_python_sdk/langtrace.py,sha256=jvfrnkAxc41dmIvwNuVcXwCWyV2vqhGV5qAr5KiMHBA,13239
114
- langtrace_python_sdk/version.py,sha256=JgQ5QaobsYTmybga2B6T99wwfHVgPi6AXNleoLEOg8Q,23
114
+ langtrace_python_sdk/version.py,sha256=OpXMWyGnnhuyq-DxZlA3s1kTkyMuhULWzMDlWhA53fQ,23
115
115
  langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
116
116
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=EVCrouYCpY98f0KSaKr4PzNxPULTZZO6dSA_crEOyJU,106
117
117
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -163,7 +163,7 @@ langtrace_python_sdk/instrumentation/crewai/instrumentation.py,sha256=5Umzq8zjEn
163
163
  langtrace_python_sdk/instrumentation/crewai/patch.py,sha256=VoyOtGKYzaOIu7UnVNTemZeB3LrCIodrrYwmXLdxRw8,9133
164
164
  langtrace_python_sdk/instrumentation/dspy/__init__.py,sha256=tM1srfi_QgyCzrde4izojMrRq2Wm7Dj5QUvVQXIJzkk,84
165
165
  langtrace_python_sdk/instrumentation/dspy/instrumentation.py,sha256=qx2vBeuODI7rubf-0bkuNzDWu4bLI-E5uabrWTEuH6k,2923
166
- langtrace_python_sdk/instrumentation/dspy/patch.py,sha256=BpesWxlNJAibzu06xNU9mSH82Ufw5h3p5jxM5d3QXqE,10073
166
+ langtrace_python_sdk/instrumentation/dspy/patch.py,sha256=yuiSNupsrDLW6PGfFNX707rDqresvX8WYKS2IUg0Z-g,10143
167
167
  langtrace_python_sdk/instrumentation/embedchain/__init__.py,sha256=5L6n8-brMnRWZ0CMmHEuN1mrhIxrYLNtxRy0Ujc-hOY,103
168
168
  langtrace_python_sdk/instrumentation/embedchain/instrumentation.py,sha256=dShwm0duy25IvL7g9I_v-2oYuyh2fadeiJqXtXBay-8,1987
169
169
  langtrace_python_sdk/instrumentation/embedchain/patch.py,sha256=ovvBrtqUDwGSmSgK_S3pOOrDa4gkPSFG-HvmsxqmJE8,3627
@@ -277,8 +277,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
277
277
  tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
278
278
  tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
279
279
  tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
280
- langtrace_python_sdk-3.3.28.dist-info/METADATA,sha256=967BPyFjb-8ppAoGDKZwuvuexADaZJYdSMnAaps9A5I,15644
281
- langtrace_python_sdk-3.3.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
282
- langtrace_python_sdk-3.3.28.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
283
- langtrace_python_sdk-3.3.28.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
284
- langtrace_python_sdk-3.3.28.dist-info/RECORD,,
280
+ langtrace_python_sdk-3.3.29.dist-info/METADATA,sha256=bQpZDUnvpBlY8G9Dlo_TQ0ogkfXA1zvfxsVNVOBM2PM,15644
281
+ langtrace_python_sdk-3.3.29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
282
+ langtrace_python_sdk-3.3.29.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
283
+ langtrace_python_sdk-3.3.29.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
284
+ langtrace_python_sdk-3.3.29.dist-info/RECORD,,