langtrace-python-sdk 3.8.11__py3-none-any.whl → 3.8.12__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.
@@ -37,7 +37,11 @@ from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME
37
37
 
38
38
  def driver_patch(operation_name, version, tracer):
39
39
  def traced_method(wrapped, instance, args, kwargs):
40
-
40
+ try:
41
+ query = args[0].text if hasattr(args[0], "text") else args[0]
42
+ query_text = json.dumps(query)
43
+ except (AttributeError, TypeError):
44
+ query_text = args[0]
41
45
  api = APIS[operation_name]
42
46
  service_provider = SERVICE_PROVIDERS.get("NEO4J", "neo4j")
43
47
  extra_attributes = baggage.get_baggage(LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY)
@@ -49,7 +53,7 @@ def driver_patch(operation_name, version, tracer):
49
53
  "langtrace.version": v(LANGTRACE_SDK_NAME),
50
54
  "db.system": "neo4j",
51
55
  "db.operation": api["OPERATION"],
52
- "db.query": json.dumps(args[0]) if args and len(args) > 0 else "",
56
+ "db.query": query_text,
53
57
  **(extra_attributes if extra_attributes is not None else {}),
54
58
  }
55
59
 
@@ -1 +1 @@
1
- __version__ = "3.8.11"
1
+ __version__ = "3.8.12"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langtrace-python-sdk
3
- Version: 3.8.11
3
+ Version: 3.8.12
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>
@@ -121,7 +121,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
121
121
  examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
122
122
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
123
123
  langtrace_python_sdk/langtrace.py,sha256=mTCx5nyBbXNINr0oVWvMZ9iU47MWhRg2DBel2gwlnLg,13979
124
- langtrace_python_sdk/version.py,sha256=SOTowMrQm37hhBSrXviQdSFjTgt0PPZQX6q3WhiUwNY,23
124
+ langtrace_python_sdk/version.py,sha256=joH-iSlUwywbGyQjUzHPMXP0cgvhonq06i5-hTg5uus,23
125
125
  langtrace_python_sdk/constants/__init__.py,sha256=3CNYkWMdd1DrkGqzLUgNZXjdAlM6UFMlf_F-odAToyc,146
126
126
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=EVCrouYCpY98f0KSaKr4PzNxPULTZZO6dSA_crEOyJU,106
127
127
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -226,7 +226,7 @@ langtrace_python_sdk/instrumentation/mistral/instrumentation.py,sha256=qtCkHCSOa
226
226
  langtrace_python_sdk/instrumentation/mistral/patch.py,sha256=5EzqMeIEcMUH8P-l9-ijpRNWSc6mYwe9Gz0VY4PLrS0,6559
227
227
  langtrace_python_sdk/instrumentation/neo4j/__init__.py,sha256=6pG7SKOSKENaFEsstMJ4ZUH9wUP53JdQKdjHzJ4Lbko,86
228
228
  langtrace_python_sdk/instrumentation/neo4j/instrumentation.py,sha256=KECuFv7OuVBgh_NTZl4_W18GAGbKnaeQqRZM8NPZgjU,1668
229
- langtrace_python_sdk/instrumentation/neo4j/patch.py,sha256=wPAxslFdsHdYU5k1nHzWAqaHxQA-HhxgfVnb_U5qaZ0,7922
229
+ langtrace_python_sdk/instrumentation/neo4j/patch.py,sha256=33WcjnWXz8DSkt1p4vwVbQzehOC6s94felCLmCSfhyw,8077
230
230
  langtrace_python_sdk/instrumentation/neo4j_graphrag/__init__.py,sha256=K-Qpfh-kn2EPxnYZ_oubLZNqAUO9Cx7mnMrJu_ms3UU,102
231
231
  langtrace_python_sdk/instrumentation/neo4j_graphrag/instrumentation.py,sha256=FLnddPSozuu5puqYD_FnXLMFet8YToVdWP-cY5QZrvM,2216
232
232
  langtrace_python_sdk/instrumentation/neo4j_graphrag/patch.py,sha256=4c7NKcTJeYsbi5V4aSsuPzTiFoBqtlcXmYx2bMlE7qg,9713
@@ -312,8 +312,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
312
312
  tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
313
313
  tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
314
314
  tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
315
- langtrace_python_sdk-3.8.11.dist-info/METADATA,sha256=uthy1_AtXV7QgTGRDn_gOcXyZokYgF5_FU858iZeEbw,15845
316
- langtrace_python_sdk-3.8.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
317
- langtrace_python_sdk-3.8.11.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
318
- langtrace_python_sdk-3.8.11.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
319
- langtrace_python_sdk-3.8.11.dist-info/RECORD,,
315
+ langtrace_python_sdk-3.8.12.dist-info/METADATA,sha256=EvU1MVKxpphCZsVojY1R0aT9VsP69EZIY-J3xwoZtPY,15845
316
+ langtrace_python_sdk-3.8.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
317
+ langtrace_python_sdk-3.8.12.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
318
+ langtrace_python_sdk-3.8.12.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
319
+ langtrace_python_sdk-3.8.12.dist-info/RECORD,,