langtrace-python-sdk 3.8.12__py3-none-any.whl → 3.8.13__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.
@@ -17,47 +17,79 @@ limitations under the License.
17
17
  import logging
18
18
  import os
19
19
  import sys
20
+ import warnings
20
21
  from typing import Any, Dict, Optional
21
22
 
22
23
  import sentry_sdk
23
24
  from colorama import Fore
24
25
  from opentelemetry import trace
25
- from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import \
26
- OTLPSpanExporter as GRPCExporter
27
- from opentelemetry.exporter.otlp.proto.http.trace_exporter import \
28
- OTLPSpanExporter as HTTPExporter
26
+ from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import (
27
+ OTLPSpanExporter as GRPCExporter,
28
+ )
29
+ from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
30
+ OTLPSpanExporter as HTTPExporter,
31
+ )
29
32
  from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
30
33
  from opentelemetry.sdk.resources import SERVICE_NAME, Resource
31
34
  from opentelemetry.sdk.trace import TracerProvider
32
- from opentelemetry.sdk.trace.export import (BatchSpanProcessor,
33
- ConsoleSpanExporter,
34
- SimpleSpanProcessor)
35
+ from opentelemetry.sdk.trace.export import (
36
+ BatchSpanProcessor,
37
+ ConsoleSpanExporter,
38
+ SimpleSpanProcessor,
39
+ )
35
40
  from opentelemetry.util.re import parse_env_headers
36
41
  from sentry_sdk.types import Event, Hint
37
42
 
38
43
  from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME, SENTRY_DSN
39
44
  from langtrace_python_sdk.constants.exporter.langtrace_exporter import (
40
- LANGTRACE_REMOTE_URL, LANGTRACE_SESSION_ID_HEADER)
41
- from langtrace_python_sdk.extensions.langtrace_exporter import \
42
- LangTraceExporter
45
+ LANGTRACE_REMOTE_URL,
46
+ LANGTRACE_SESSION_ID_HEADER,
47
+ )
48
+ from langtrace_python_sdk.extensions.langtrace_exporter import LangTraceExporter
43
49
  from langtrace_python_sdk.instrumentation import (
44
- AgnoInstrumentation, AnthropicInstrumentation, AutogenInstrumentation,
45
- AWSBedrockInstrumentation, CerebrasInstrumentation, ChromaInstrumentation,
46
- CleanLabInstrumentation, CohereInstrumentation, CrewAIInstrumentation,
47
- CrewaiToolsInstrumentation, DspyInstrumentation, EmbedchainInstrumentation,
48
- GeminiInstrumentation, GoogleGenaiInstrumentation, GraphlitInstrumentation,
49
- GroqInstrumentation, LangchainCommunityInstrumentation,
50
- LangchainCoreInstrumentation, LangchainInstrumentation, LanggraphInstrumentation,
51
- LiteLLMInstrumentation, LlamaindexInstrumentation, MilvusInstrumentation,
52
- MistralInstrumentation, Neo4jInstrumentation, Neo4jGraphRAGInstrumentation,
53
- OllamaInstrumentor, OpenAIAgentsInstrumentation, OpenAIInstrumentation,
54
- PhiDataInstrumentation, PineconeInstrumentation, PyMongoInstrumentation,
55
- QdrantInstrumentation, VertexAIInstrumentation, WeaviateInstrumentation)
56
- from langtrace_python_sdk.types import (DisableInstrumentations,
57
- InstrumentationMethods)
58
- from langtrace_python_sdk.utils import (check_if_sdk_is_outdated,
59
- get_sdk_version, is_package_installed,
60
- validate_instrumentations)
50
+ AgnoInstrumentation,
51
+ AnthropicInstrumentation,
52
+ AutogenInstrumentation,
53
+ AWSBedrockInstrumentation,
54
+ CerebrasInstrumentation,
55
+ ChromaInstrumentation,
56
+ CleanLabInstrumentation,
57
+ CohereInstrumentation,
58
+ CrewAIInstrumentation,
59
+ CrewaiToolsInstrumentation,
60
+ DspyInstrumentation,
61
+ EmbedchainInstrumentation,
62
+ GeminiInstrumentation,
63
+ GoogleGenaiInstrumentation,
64
+ GraphlitInstrumentation,
65
+ GroqInstrumentation,
66
+ LangchainCommunityInstrumentation,
67
+ LangchainCoreInstrumentation,
68
+ LangchainInstrumentation,
69
+ LanggraphInstrumentation,
70
+ LiteLLMInstrumentation,
71
+ LlamaindexInstrumentation,
72
+ MilvusInstrumentation,
73
+ MistralInstrumentation,
74
+ Neo4jInstrumentation,
75
+ Neo4jGraphRAGInstrumentation,
76
+ OllamaInstrumentor,
77
+ OpenAIAgentsInstrumentation,
78
+ OpenAIInstrumentation,
79
+ PhiDataInstrumentation,
80
+ PineconeInstrumentation,
81
+ PyMongoInstrumentation,
82
+ QdrantInstrumentation,
83
+ VertexAIInstrumentation,
84
+ WeaviateInstrumentation,
85
+ )
86
+ from langtrace_python_sdk.types import DisableInstrumentations, InstrumentationMethods
87
+ from langtrace_python_sdk.utils import (
88
+ check_if_sdk_is_outdated,
89
+ get_sdk_version,
90
+ is_package_installed,
91
+ validate_instrumentations,
92
+ )
61
93
  from langtrace_python_sdk.utils.langtrace_sampler import LangtraceSampler
62
94
 
63
95
 
@@ -329,6 +361,8 @@ def init_instrumentations(
329
361
  if is_package_installed(name):
330
362
  try:
331
363
  v.instrument()
364
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
365
+ warnings.filterwarnings("ignore", category=UserWarning)
332
366
  except Exception as e:
333
367
  print(f"Skipping {name} due to error while instrumenting: {e}")
334
368
 
@@ -354,5 +388,7 @@ def init_instrumentations(
354
388
  if is_package_installed(name):
355
389
  try:
356
390
  v.instrument()
391
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
392
+ warnings.filterwarnings("ignore", category=UserWarning)
357
393
  except Exception as e:
358
394
  print(f"Skipping {name} due to error while instrumenting: {e}")
@@ -1 +1 @@
1
- __version__ = "3.8.12"
1
+ __version__ = "3.8.13"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langtrace-python-sdk
3
- Version: 3.8.12
3
+ Version: 3.8.13
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>
@@ -120,8 +120,8 @@ examples/vertexai_example/main.py,sha256=gndId5X5ksD-ycxnAWMdEqIDbLc3kz5Vt8vm4YP
120
120
  examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56snk-Bbg2Kw,618
121
121
  examples/weaviate_example/query_text.py,sha256=wPHQTc_58kPoKTZMygVjTj-2ZcdrIuaausJfMxNQnQc,127162
122
122
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
123
- langtrace_python_sdk/langtrace.py,sha256=mTCx5nyBbXNINr0oVWvMZ9iU47MWhRg2DBel2gwlnLg,13979
124
- langtrace_python_sdk/version.py,sha256=joH-iSlUwywbGyQjUzHPMXP0cgvhonq06i5-hTg5uus,23
123
+ langtrace_python_sdk/langtrace.py,sha256=wNM19qPBL5mbx-K9N2Ly06G0dUcPxJtDRbmFcH8g8Sk,14235
124
+ langtrace_python_sdk/version.py,sha256=8RDF8_XSR41aTBeWQCybNemW6jghvDG0jhYxWVmwlSg,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
@@ -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.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,,
315
+ langtrace_python_sdk-3.8.13.dist-info/METADATA,sha256=4PR2xwL1k_hlP-sWWEn7e3QLxBR_mXRGFPqqdFwX36Q,15845
316
+ langtrace_python_sdk-3.8.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
317
+ langtrace_python_sdk-3.8.13.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
318
+ langtrace_python_sdk-3.8.13.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
319
+ langtrace_python_sdk-3.8.13.dist-info/RECORD,,