lmnr 0.4.32__py3-none-any.whl → 0.4.33__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.
- lmnr/traceloop_sdk/__init__.py +2 -17
- lmnr/traceloop_sdk/tracing/tracing.py +1 -1
- {lmnr-0.4.32.dist-info → lmnr-0.4.33.dist-info}/METADATA +34 -34
- {lmnr-0.4.32.dist-info → lmnr-0.4.33.dist-info}/RECORD +7 -7
- {lmnr-0.4.32.dist-info → lmnr-0.4.33.dist-info}/LICENSE +0 -0
- {lmnr-0.4.32.dist-info → lmnr-0.4.33.dist-info}/WHEEL +0 -0
- {lmnr-0.4.32.dist-info → lmnr-0.4.33.dist-info}/entry_points.txt +0 -0
lmnr/traceloop_sdk/__init__.py
CHANGED
@@ -19,11 +19,6 @@ from typing import Dict
|
|
19
19
|
|
20
20
|
|
21
21
|
class Traceloop:
|
22
|
-
AUTO_CREATED_KEY_PATH = str(
|
23
|
-
Path.home() / ".cache" / "traceloop" / "auto_created_key"
|
24
|
-
)
|
25
|
-
AUTO_CREATED_URL = str(Path.home() / ".cache" / "traceloop" / "auto_created_url")
|
26
|
-
|
27
22
|
__tracer_wrapper: TracerWrapper
|
28
23
|
|
29
24
|
@staticmethod
|
@@ -36,21 +31,15 @@ class Traceloop:
|
|
36
31
|
exporter: Optional[SpanExporter] = None,
|
37
32
|
processor: Optional[SpanProcessor] = None,
|
38
33
|
propagator: Optional[TextMapPropagator] = None,
|
39
|
-
should_enrich_metrics: bool =
|
34
|
+
should_enrich_metrics: bool = False,
|
40
35
|
resource_attributes: dict = {},
|
41
36
|
instruments: Optional[Set[Instruments]] = None,
|
42
37
|
) -> None:
|
43
|
-
api_endpoint = os.getenv("TRACELOOP_BASE_URL") or api_endpoint
|
44
|
-
api_key = os.getenv("TRACELOOP_API_KEY") or api_key
|
45
|
-
|
46
38
|
if not is_tracing_enabled():
|
47
|
-
# print(Fore.YELLOW + "Tracing is disabled" + Fore.RESET)
|
48
39
|
return
|
49
40
|
|
50
41
|
enable_content_tracing = is_content_tracing_enabled()
|
51
42
|
|
52
|
-
headers = os.getenv("TRACELOOP_HEADERS") or headers
|
53
|
-
|
54
43
|
if isinstance(headers, str):
|
55
44
|
headers = parse_env_headers(headers)
|
56
45
|
|
@@ -61,10 +50,8 @@ class Traceloop:
|
|
61
50
|
and not api_key
|
62
51
|
):
|
63
52
|
print(
|
64
|
-
"
|
65
|
-
+ " go to project settings to create one"
|
53
|
+
"Set the LMNR_PROJECT_API_KEY environment variable to your project API key"
|
66
54
|
)
|
67
|
-
print("Set the LMNR_PROJECT_API_KEY environment variable to the key")
|
68
55
|
return
|
69
56
|
|
70
57
|
if api_key and not exporter and not processor and not headers:
|
@@ -72,8 +59,6 @@ class Traceloop:
|
|
72
59
|
"Authorization": f"Bearer {api_key}",
|
73
60
|
}
|
74
61
|
|
75
|
-
# print(Fore.RESET)
|
76
|
-
|
77
62
|
# Tracer init
|
78
63
|
resource_attributes.update({SERVICE_NAME: app_name})
|
79
64
|
TracerWrapper.set_static_params(
|
@@ -68,7 +68,7 @@ class TracerWrapper(object):
|
|
68
68
|
processor: Optional[SpanProcessor] = None,
|
69
69
|
propagator: Optional[TextMapPropagator] = None,
|
70
70
|
exporter: Optional[SpanExporter] = None,
|
71
|
-
should_enrich_metrics: bool =
|
71
|
+
should_enrich_metrics: bool = False,
|
72
72
|
instruments: Optional[Set[Instruments]] = None,
|
73
73
|
) -> "TracerWrapper":
|
74
74
|
if not hasattr(cls, "instance"):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lmnr
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.33
|
4
4
|
Summary: Python SDK for Laminar AI
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: lmnr.ai
|
@@ -16,39 +16,39 @@ Requires-Dist: argparse (>=1.0,<2.0)
|
|
16
16
|
Requires-Dist: backoff (>=2.0,<3.0)
|
17
17
|
Requires-Dist: deprecated (>=1.0,<2.0)
|
18
18
|
Requires-Dist: jinja2 (>=3.0,<4.0)
|
19
|
-
Requires-Dist: opentelemetry-api (>=1.
|
20
|
-
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (>=1.
|
21
|
-
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.
|
22
|
-
Requires-Dist: opentelemetry-instrumentation-alephalpha (>=0.33.
|
23
|
-
Requires-Dist: opentelemetry-instrumentation-anthropic (>=0.33.
|
24
|
-
Requires-Dist: opentelemetry-instrumentation-bedrock (>=0.33.
|
25
|
-
Requires-Dist: opentelemetry-instrumentation-chromadb (>=0.33.
|
26
|
-
Requires-Dist: opentelemetry-instrumentation-cohere (>=0.33.
|
27
|
-
Requires-Dist: opentelemetry-instrumentation-google-generativeai (>=0.33.
|
28
|
-
Requires-Dist: opentelemetry-instrumentation-groq (>=0.33.
|
29
|
-
Requires-Dist: opentelemetry-instrumentation-haystack (>=0.33.
|
30
|
-
Requires-Dist: opentelemetry-instrumentation-lancedb (>=0.33.
|
31
|
-
Requires-Dist: opentelemetry-instrumentation-langchain (>=0.33.
|
32
|
-
Requires-Dist: opentelemetry-instrumentation-llamaindex (>=0.33.
|
33
|
-
Requires-Dist: opentelemetry-instrumentation-marqo (>=0.33.
|
34
|
-
Requires-Dist: opentelemetry-instrumentation-milvus (>=0.33.
|
35
|
-
Requires-Dist: opentelemetry-instrumentation-mistralai (>=0.33.
|
36
|
-
Requires-Dist: opentelemetry-instrumentation-ollama (>=0.33.
|
37
|
-
Requires-Dist: opentelemetry-instrumentation-openai (>=0.33.
|
38
|
-
Requires-Dist: opentelemetry-instrumentation-pinecone (>=0.33.
|
39
|
-
Requires-Dist: opentelemetry-instrumentation-qdrant (>=0.33.
|
40
|
-
Requires-Dist: opentelemetry-instrumentation-replicate (>=0.33.
|
41
|
-
Requires-Dist: opentelemetry-instrumentation-requests (>=0.
|
42
|
-
Requires-Dist: opentelemetry-instrumentation-sagemaker (>=0.33.
|
43
|
-
Requires-Dist: opentelemetry-instrumentation-sqlalchemy (>=0.
|
44
|
-
Requires-Dist: opentelemetry-instrumentation-threading (>=0.
|
45
|
-
Requires-Dist: opentelemetry-instrumentation-together (>=0.33.
|
46
|
-
Requires-Dist: opentelemetry-instrumentation-transformers (>=0.33.
|
47
|
-
Requires-Dist: opentelemetry-instrumentation-urllib3 (>=0.
|
48
|
-
Requires-Dist: opentelemetry-instrumentation-vertexai (>=0.33.
|
49
|
-
Requires-Dist: opentelemetry-instrumentation-watsonx (>=0.33.
|
50
|
-
Requires-Dist: opentelemetry-instrumentation-weaviate (>=0.33.
|
51
|
-
Requires-Dist: opentelemetry-sdk (>=1.
|
19
|
+
Requires-Dist: opentelemetry-api (>=1.28.0)
|
20
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (>=1.28.0)
|
21
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.28.0)
|
22
|
+
Requires-Dist: opentelemetry-instrumentation-alephalpha (>=0.33.10)
|
23
|
+
Requires-Dist: opentelemetry-instrumentation-anthropic (>=0.33.10)
|
24
|
+
Requires-Dist: opentelemetry-instrumentation-bedrock (>=0.33.10)
|
25
|
+
Requires-Dist: opentelemetry-instrumentation-chromadb (>=0.33.10)
|
26
|
+
Requires-Dist: opentelemetry-instrumentation-cohere (>=0.33.10)
|
27
|
+
Requires-Dist: opentelemetry-instrumentation-google-generativeai (>=0.33.10)
|
28
|
+
Requires-Dist: opentelemetry-instrumentation-groq (>=0.33.10)
|
29
|
+
Requires-Dist: opentelemetry-instrumentation-haystack (>=0.33.10)
|
30
|
+
Requires-Dist: opentelemetry-instrumentation-lancedb (>=0.33.10)
|
31
|
+
Requires-Dist: opentelemetry-instrumentation-langchain (>=0.33.10)
|
32
|
+
Requires-Dist: opentelemetry-instrumentation-llamaindex (>=0.33.10)
|
33
|
+
Requires-Dist: opentelemetry-instrumentation-marqo (>=0.33.10)
|
34
|
+
Requires-Dist: opentelemetry-instrumentation-milvus (>=0.33.10)
|
35
|
+
Requires-Dist: opentelemetry-instrumentation-mistralai (>=0.33.10)
|
36
|
+
Requires-Dist: opentelemetry-instrumentation-ollama (>=0.33.10)
|
37
|
+
Requires-Dist: opentelemetry-instrumentation-openai (>=0.33.10)
|
38
|
+
Requires-Dist: opentelemetry-instrumentation-pinecone (>=0.33.10)
|
39
|
+
Requires-Dist: opentelemetry-instrumentation-qdrant (>=0.33.10)
|
40
|
+
Requires-Dist: opentelemetry-instrumentation-replicate (>=0.33.10)
|
41
|
+
Requires-Dist: opentelemetry-instrumentation-requests (>=0.49b0,<0.50)
|
42
|
+
Requires-Dist: opentelemetry-instrumentation-sagemaker (>=0.33.10)
|
43
|
+
Requires-Dist: opentelemetry-instrumentation-sqlalchemy (>=0.49b0,<0.50)
|
44
|
+
Requires-Dist: opentelemetry-instrumentation-threading (>=0.49b0,<0.50)
|
45
|
+
Requires-Dist: opentelemetry-instrumentation-together (>=0.33.10)
|
46
|
+
Requires-Dist: opentelemetry-instrumentation-transformers (>=0.33.10)
|
47
|
+
Requires-Dist: opentelemetry-instrumentation-urllib3 (>=0.49b0,<0.50)
|
48
|
+
Requires-Dist: opentelemetry-instrumentation-vertexai (>=0.33.10)
|
49
|
+
Requires-Dist: opentelemetry-instrumentation-watsonx (>=0.33.10)
|
50
|
+
Requires-Dist: opentelemetry-instrumentation-weaviate (>=0.33.10)
|
51
|
+
Requires-Dist: opentelemetry-sdk (>=1.28.0)
|
52
52
|
Requires-Dist: opentelemetry-semantic-conventions-ai (==0.4.2)
|
53
53
|
Requires-Dist: pydantic (>=2.7,<3.0)
|
54
54
|
Requires-Dist: python-dotenv (>=1.0,<2.0)
|
@@ -10,7 +10,7 @@ lmnr/sdk/types.py,sha256=qGD1tkGszd-_sZJaZ_Zx9U_CdUYzoDkUeN2g-o48Gls,5588
|
|
10
10
|
lmnr/sdk/utils.py,sha256=Uk8y15x-sd5tP2ERONahElLDJVEy_3dA_1_5g9A6auY,3358
|
11
11
|
lmnr/traceloop_sdk/.flake8,sha256=bCxuDlGx3YQ55QHKPiGJkncHanh9qGjQJUujcFa3lAU,150
|
12
12
|
lmnr/traceloop_sdk/.python-version,sha256=9OLQBQVbD4zE4cJsPePhnAfV_snrPSoqEQw-PXgPMOs,6
|
13
|
-
lmnr/traceloop_sdk/__init__.py,sha256=
|
13
|
+
lmnr/traceloop_sdk/__init__.py,sha256=AVTqhuom40hx34zNB8TvqtfPliKYo7EGi08fw3Rs670,2384
|
14
14
|
lmnr/traceloop_sdk/config/__init__.py,sha256=DliMGp2NjYAqRFLKpWQPUKjGMHRO8QsVfazBA1qENQ8,248
|
15
15
|
lmnr/traceloop_sdk/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
lmnr/traceloop_sdk/decorators/base.py,sha256=SeImd8SAeqdC8LV1bvoQUq0d_TLkOLyd5HCe7vXKhNU,5559
|
@@ -39,14 +39,14 @@ lmnr/traceloop_sdk/tracing/__init__.py,sha256=Ckq7zCM26VdJVB5tIZv0GTPyMZKyfso_KW
|
|
39
39
|
lmnr/traceloop_sdk/tracing/attributes.py,sha256=h970zmb7yTszzf2oHBfOY3cDYhE6O7LhkiHLqa_7x1k,1261
|
40
40
|
lmnr/traceloop_sdk/tracing/content_allow_list.py,sha256=3feztm6PBWNelc8pAZUcQyEGyeSpNiVKjOaDk65l2ps,846
|
41
41
|
lmnr/traceloop_sdk/tracing/context_manager.py,sha256=csVlB6kDmbgSPsROHwnddvGGblx55v6lJMRj0wsSMQM,304
|
42
|
-
lmnr/traceloop_sdk/tracing/tracing.py,sha256=
|
42
|
+
lmnr/traceloop_sdk/tracing/tracing.py,sha256=wGFU51FHg2S2hxFOTYvXBQL6Z1oeqNpYQnREkh_J6MY,28742
|
43
43
|
lmnr/traceloop_sdk/utils/__init__.py,sha256=pNhf0G3vTd5ccoc03i1MXDbricSaiqCbi1DLWhSekK8,604
|
44
44
|
lmnr/traceloop_sdk/utils/in_memory_span_exporter.py,sha256=H_4TRaThMO1H6vUQ0OpQvzJk_fZH0OOsRAM1iZQXsR8,2112
|
45
45
|
lmnr/traceloop_sdk/utils/json_encoder.py,sha256=dK6b_axr70IYL7Vv-bu4wntvDDuyntoqsHaddqX7P58,463
|
46
46
|
lmnr/traceloop_sdk/utils/package_check.py,sha256=TZSngzJOpFhfUZLXIs38cpMxQiZSmp0D-sCrIyhz7BA,251
|
47
47
|
lmnr/traceloop_sdk/version.py,sha256=OlatFEFA4ttqSSIiV8jdE-sq3KG5zu2hnC4B4mzWF3s,23
|
48
|
-
lmnr-0.4.
|
49
|
-
lmnr-0.4.
|
50
|
-
lmnr-0.4.
|
51
|
-
lmnr-0.4.
|
52
|
-
lmnr-0.4.
|
48
|
+
lmnr-0.4.33.dist-info/LICENSE,sha256=67b_wJHVV1CBaWkrKFWU1wyqTPSdzH77Ls-59631COg,10411
|
49
|
+
lmnr-0.4.33.dist-info/METADATA,sha256=Ds9Fe8QmvPfSQsugBVGXr2GT4zJLUR4TzfXFVZB34qI,10322
|
50
|
+
lmnr-0.4.33.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
51
|
+
lmnr-0.4.33.dist-info/entry_points.txt,sha256=K1jE20ww4jzHNZLnsfWBvU3YKDGBgbOiYG5Y7ivQcq4,37
|
52
|
+
lmnr-0.4.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|