langwatch 0.2.18__py3-none-any.whl → 0.2.19__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.
langwatch/__version__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Utility module for handling LangWatch initialization."""
|
|
2
2
|
|
|
3
3
|
import logging
|
|
4
|
+
import os
|
|
4
5
|
import sys
|
|
5
6
|
from typing import List, Optional, Sequence
|
|
6
7
|
from opentelemetry.sdk.trace import TracerProvider
|
|
@@ -102,13 +103,18 @@ def ensure_setup(api_key: Optional[str] = None) -> None:
|
|
|
102
103
|
If no client is setup, this will create a default client using environment variables.
|
|
103
104
|
Validates that we have a working tracer provider to prevent silent failures.
|
|
104
105
|
"""
|
|
106
|
+
|
|
107
|
+
# We want to skip auto-setup if langwatch api key is not available to avoid throwing errors
|
|
108
|
+
if not os.getenv("LANGWATCH_API_KEY", api_key):
|
|
109
|
+
return
|
|
110
|
+
|
|
105
111
|
client = get_instance()
|
|
106
112
|
if client is None:
|
|
107
113
|
logger.debug("No LangWatch client found, creating default client")
|
|
108
114
|
client = setup(
|
|
109
|
-
debug=True,
|
|
115
|
+
debug=True, # Enable debug logging for auto-created clients
|
|
110
116
|
api_key=api_key,
|
|
111
|
-
)
|
|
117
|
+
)
|
|
112
118
|
|
|
113
119
|
# Verify we have a valid tracer provider
|
|
114
120
|
tracer_provider = trace.get_tracer_provider()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
langwatch/__init__.py,sha256=OX8vN2-VFNUqRo9mJC8LUjHGMKYSRTwmzUQj_sKAVXQ,4210
|
|
2
|
-
langwatch/__version__.py,sha256=
|
|
2
|
+
langwatch/__version__.py,sha256=T662oKEbI_44dfZPwhufI1p7OvdgFjxO-wfa1hX2NGM,65
|
|
3
3
|
langwatch/attributes.py,sha256=nXdI_G85wQQCAdAcwjCiLYdEYj3wATmfgCmhlf6dVIk,3910
|
|
4
4
|
langwatch/batch_evaluation.py,sha256=piez7TYqUZPb9NlIShTuTPmSzrZqX-vm2Grz_NGXe04,16078
|
|
5
5
|
langwatch/client.py,sha256=WTNcYSik7kZ2kH-qGDnhbMTosc8e_Xhab_lZlfh5TC8,25559
|
|
@@ -405,10 +405,10 @@ langwatch/telemetry/__tests__/test_tracing.py,sha256=mD_SAO-dD5m81EVQ909AwGROnno
|
|
|
405
405
|
langwatch/utils/__init__.py,sha256=3rqQTgzEtmICJW_KSPuLa5q8p5udxt5SRi28Z2vZB10,138
|
|
406
406
|
langwatch/utils/capture.py,sha256=uVKPqHCm-o8CpabsUfhqbNFr5sgUHzcKnBadvL2oIwI,1172
|
|
407
407
|
langwatch/utils/exceptions.py,sha256=J2_0EZ_GMRTJvCQ-ULX4LOG63r1R-0TCbKg9sskgl5A,498
|
|
408
|
-
langwatch/utils/initialization.py,sha256=
|
|
408
|
+
langwatch/utils/initialization.py,sha256=1KoZmkHOvGEVF0j-4t4xRQdA_2C_SPiF7qFXqEG4Nkw,4553
|
|
409
409
|
langwatch/utils/module.py,sha256=KLBNOK3mA9gCSifCcQX_lOtU48BJQDWvFKtF6NMvwVA,688
|
|
410
410
|
langwatch/utils/transformation.py,sha256=5XUnW7Oz8Ck9EMsKeKeoDOrIw3EXpLGMk_fMSeA0Zng,7216
|
|
411
411
|
langwatch/utils/utils.py,sha256=ZCOSie4o9LdJ7odshNfCNjmgwgQ27ojc5ENqt1rXuSs,596
|
|
412
|
-
langwatch-0.2.
|
|
413
|
-
langwatch-0.2.
|
|
414
|
-
langwatch-0.2.
|
|
412
|
+
langwatch-0.2.19.dist-info/METADATA,sha256=eri-KaKIS7KpWz6P3y4azJcSJuOoAKHNWkoG3eXwwaY,13124
|
|
413
|
+
langwatch-0.2.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
414
|
+
langwatch-0.2.19.dist-info/RECORD,,
|
|
File without changes
|