openlit 1.11.0__py3-none-any.whl → 1.12.0__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.
- openlit/instrumentation/groq/async_groq.py +1 -1
- openlit/instrumentation/groq/groq.py +1 -1
- openlit/instrumentation/openai/async_azure_openai.py +2 -2
- openlit/instrumentation/openai/async_openai.py +1 -1
- openlit/instrumentation/openai/azure_openai.py +2 -2
- openlit/instrumentation/openai/openai.py +1 -1
- openlit/instrumentation/transformers/transformers.py +1 -1
- openlit/semcov/__init__.py +3 -3
- {openlit-1.11.0.dist-info → openlit-1.12.0.dist-info}/METADATA +3 -2
- {openlit-1.11.0.dist-info → openlit-1.12.0.dist-info}/RECORD +12 -12
- {openlit-1.11.0.dist-info → openlit-1.12.0.dist-info}/LICENSE +0 -0
- {openlit-1.11.0.dist-info → openlit-1.12.0.dist-info}/WHEEL +0 -0
@@ -268,7 +268,7 @@ def async_chat(gen_ai_endpoint, version, environment, application_name,
|
|
268
268
|
else:
|
269
269
|
i = 0
|
270
270
|
while i < kwargs["n"] and trace_content is True:
|
271
|
-
attribute_name = f"gen_ai.
|
271
|
+
attribute_name = f"gen_ai.completion.{i}"
|
272
272
|
span.set_attribute(attribute_name,
|
273
273
|
response.choices[i].message.content)
|
274
274
|
i += 1
|
@@ -268,7 +268,7 @@ def chat(gen_ai_endpoint, version, environment, application_name,
|
|
268
268
|
else:
|
269
269
|
i = 0
|
270
270
|
while i < kwargs["n"] and trace_content is True:
|
271
|
-
attribute_name = f"gen_ai.
|
271
|
+
attribute_name = f"gen_ai.completion.{i}"
|
272
272
|
span.set_attribute(attribute_name,
|
273
273
|
response.choices[i].message.content)
|
274
274
|
i += 1
|
@@ -269,7 +269,7 @@ def azure_async_chat_completions(gen_ai_endpoint, version, environment, applicat
|
|
269
269
|
else:
|
270
270
|
i = 0
|
271
271
|
while i < kwargs["n"] and trace_content is True:
|
272
|
-
attribute_name = f"gen_ai.
|
272
|
+
attribute_name = f"gen_ai.completion.{i}"
|
273
273
|
span.set_attribute(attribute_name,
|
274
274
|
response.choices[i].message.content)
|
275
275
|
i += 1
|
@@ -550,7 +550,7 @@ def azure_async_completions(gen_ai_endpoint, version, environment, application_n
|
|
550
550
|
else:
|
551
551
|
i = 0
|
552
552
|
while i < kwargs["n"] and trace_content is True:
|
553
|
-
attribute_name = f"gen_ai.
|
553
|
+
attribute_name = f"gen_ai.completion.{i}"
|
554
554
|
span.set_attribute(attribute_name,
|
555
555
|
response.choices[i].text)
|
556
556
|
i += 1
|
@@ -273,7 +273,7 @@ def async_chat_completions(gen_ai_endpoint, version, environment, application_na
|
|
273
273
|
else:
|
274
274
|
i = 0
|
275
275
|
while i < kwargs["n"] and trace_content is True:
|
276
|
-
attribute_name = f"gen_ai.
|
276
|
+
attribute_name = f"gen_ai.completion.{i}"
|
277
277
|
span.set_attribute(attribute_name,
|
278
278
|
response.choices[i].message.content)
|
279
279
|
i += 1
|
@@ -269,7 +269,7 @@ def azure_chat_completions(gen_ai_endpoint, version, environment, application_na
|
|
269
269
|
else:
|
270
270
|
i = 0
|
271
271
|
while i < kwargs["n"] and trace_content is True:
|
272
|
-
attribute_name = f"gen_ai.
|
272
|
+
attribute_name = f"gen_ai.completion.{i}"
|
273
273
|
span.set_attribute(attribute_name,
|
274
274
|
response.choices[i].message.content)
|
275
275
|
i += 1
|
@@ -548,7 +548,7 @@ def azure_completions(gen_ai_endpoint, version, environment, application_name,
|
|
548
548
|
else:
|
549
549
|
i = 0
|
550
550
|
while i < kwargs["n"] and trace_content is True:
|
551
|
-
attribute_name = f"gen_ai.
|
551
|
+
attribute_name = f"gen_ai.completion.{i}"
|
552
552
|
span.set_attribute(attribute_name,
|
553
553
|
response.choices[i].text)
|
554
554
|
i += 1
|
@@ -272,7 +272,7 @@ def chat_completions(gen_ai_endpoint, version, environment, application_name,
|
|
272
272
|
else:
|
273
273
|
i = 0
|
274
274
|
while i < kwargs["n"] and trace_content is True:
|
275
|
-
attribute_name = f"gen_ai.
|
275
|
+
attribute_name = f"gen_ai.completion.{i}"
|
276
276
|
span.set_attribute(attribute_name,
|
277
277
|
response.choices[i].message.content)
|
278
278
|
i += 1
|
@@ -98,7 +98,7 @@ def text_wrap(gen_ai_endpoint, version, environment, application_name,
|
|
98
98
|
completion_tokens = 0
|
99
99
|
for completion in response:
|
100
100
|
if len(response) > 1:
|
101
|
-
attribute_name = f"gen_ai.
|
101
|
+
attribute_name = f"gen_ai.completion.{i}"
|
102
102
|
else:
|
103
103
|
attribute_name = SemanticConvetion.GEN_AI_CONTENT_COMPLETION
|
104
104
|
if i == 0:
|
openlit/semcov/__init__.py
CHANGED
@@ -21,7 +21,7 @@ class SemanticConvetion:
|
|
21
21
|
GEN_AI_SYSTEM = "gen_ai.system"
|
22
22
|
GEN_AI_ENVIRONMENT = "gen_ai.environment"
|
23
23
|
GEN_AI_APPLICATION_NAME = "gen_ai.application_name"
|
24
|
-
GEN_AI_TYPE = "gen_ai.
|
24
|
+
GEN_AI_TYPE = "gen_ai.operation.name"
|
25
25
|
GEN_AI_HUB_OWNER = "gen_ai.hub.owner"
|
26
26
|
GEN_AI_HUB_REPO = "gen_ai.hub.repo"
|
27
27
|
GEN_AI_RETRIEVAL_SOURCE = "gen_ai.retrieval.source"
|
@@ -68,8 +68,8 @@ class SemanticConvetion:
|
|
68
68
|
GEN_AI_RESPONSE_IMAGE_STYLE = "gen_ai.request.image_style"
|
69
69
|
|
70
70
|
# GenAI Content
|
71
|
-
GEN_AI_CONTENT_PROMPT = "gen_ai.
|
72
|
-
GEN_AI_CONTENT_COMPLETION = "gen_ai.
|
71
|
+
GEN_AI_CONTENT_PROMPT = "gen_ai.prompt"
|
72
|
+
GEN_AI_CONTENT_COMPLETION = "gen_ai.completion"
|
73
73
|
GEN_AI_CONTENT_REVISED_PROMPT = "gen_ai.content.revised_prompt"
|
74
74
|
|
75
75
|
# GenAI Evaluation Metrics
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: openlit
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.12.0
|
4
4
|
Summary: OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects
|
5
5
|
Home-page: https://github.com/openlit/openlit/tree/main/openlit/python
|
6
6
|
Keywords: OpenTelemetry,otel,otlp,llm,tracing,openai,anthropic,claude,cohere,llm monitoring,observability,monitoring,gpt,Generative AI,chatGPT
|
@@ -70,8 +70,9 @@ This project adheres to the [Semantic Conventions](https://github.com/open-telem
|
|
70
70
|
- [✅ Prometheus + Tempo](https://docs.openlit.io/latest/connections/prometheus-tempo)
|
71
71
|
- [✅ Prometheus + Jaeger](https://docs.openlit.io/latest/connections/prometheus-jaeger)
|
72
72
|
- [✅ Grafana Cloud](https://docs.openlit.io/latest/connections/grafanacloud)
|
73
|
-
- [✅ DataDog](https://docs.openlit.io/latest/connections/datadog)
|
74
73
|
- [✅ New Relic](https://docs.openlit.io/latest/connections/new-relic)
|
74
|
+
- [✅ Elastic](https://docs.openlit.io/latest/connections/elastic)
|
75
|
+
- [✅ DataDog](https://docs.openlit.io/latest/connections/datadog)
|
75
76
|
- [✅ SigNoz](https://docs.openlit.io/latest/connections/signoz)
|
76
77
|
- [✅ Dynatrace](https://docs.openlit.io/latest/connections/dynatrace)
|
77
78
|
- [✅ OpenObserve](https://docs.openlit.io/latest/connections/openobserve)
|
@@ -14,8 +14,8 @@ openlit/instrumentation/embedchain/embedchain.py,sha256=SLlr7qieT3kp4M6OYSRy8FaV
|
|
14
14
|
openlit/instrumentation/gpt4all/__init__.py,sha256=-59CP2B3-HGZJ_vC-fI9Dt-0BuQXRhSCWCjnaGeU15Q,1802
|
15
15
|
openlit/instrumentation/gpt4all/gpt4all.py,sha256=iDu8CAat4j5VPAlhIdkGOclZvhFPG-u7zKwadsKeJps,17948
|
16
16
|
openlit/instrumentation/groq/__init__.py,sha256=uW_0G6HSanQyK2dIXYhzR604pDiyPQfybzc37DsfSew,1911
|
17
|
-
openlit/instrumentation/groq/async_groq.py,sha256=
|
18
|
-
openlit/instrumentation/groq/groq.py,sha256=
|
17
|
+
openlit/instrumentation/groq/async_groq.py,sha256=aOwgoUrEqIgLSlnAtJnaGIF8T_LUlpTnOzPNBIUwez4,19076
|
18
|
+
openlit/instrumentation/groq/groq.py,sha256=iMh4TPwBEJ7Eg6Gi4x6KYpELtQKDXIsgLrh6kQHVkHc,19040
|
19
19
|
openlit/instrumentation/haystack/__init__.py,sha256=QK6XxxZUHX8vMv2Crk7rNBOc64iOOBLhJGL_lPlAZ8s,1758
|
20
20
|
openlit/instrumentation/haystack/haystack.py,sha256=oQIZiDhdp3gnJnhYQ1OouJMc9YT0pQ-_31cmNuopa68,3891
|
21
21
|
openlit/instrumentation/langchain/__init__.py,sha256=TW1ZR7I1i9Oig-wDWp3j1gmtQFO76jNBXQRBGGKzoOo,2531
|
@@ -31,23 +31,23 @@ openlit/instrumentation/ollama/__init__.py,sha256=cOax8PiypDuo_FC4WvDCYBRo7lH5nV
|
|
31
31
|
openlit/instrumentation/ollama/async_ollama.py,sha256=ESk1zZTj2hPmkWIH5F2owuoo0apleDSSx5VORlO3e3w,28991
|
32
32
|
openlit/instrumentation/ollama/ollama.py,sha256=PLGF9RB3TRNZ9GSGqeGVvKFBtgUK8Hc8xwvk-3NPeGI,28901
|
33
33
|
openlit/instrumentation/openai/__init__.py,sha256=AZ2cPr3TMKkgGdMl_yXMeSi7bWhtmMqOW1iHdzHHGHA,16265
|
34
|
-
openlit/instrumentation/openai/async_azure_openai.py,sha256=
|
35
|
-
openlit/instrumentation/openai/async_openai.py,sha256=
|
36
|
-
openlit/instrumentation/openai/azure_openai.py,sha256=
|
37
|
-
openlit/instrumentation/openai/openai.py,sha256=
|
34
|
+
openlit/instrumentation/openai/async_azure_openai.py,sha256=Lkclj_EraztqBpuYldDMwhqApa0iUb1s5gcUlgkwMkA,46281
|
35
|
+
openlit/instrumentation/openai/async_openai.py,sha256=KtY_nGbUjDXE4jU3udGT51XbV-FVJwPMj8uoHfiAvi8,45833
|
36
|
+
openlit/instrumentation/openai/azure_openai.py,sha256=q1o2tnxOY5Abm3YV7cNqkgLJPNzIxlETZ2gET6FRdxI,46075
|
37
|
+
openlit/instrumentation/openai/openai.py,sha256=kTGe7BjByIVRSWEALwFc1D3ZYLioTmKlZ4m76luupoQ,46514
|
38
38
|
openlit/instrumentation/pinecone/__init__.py,sha256=Mv9bElqNs07_JQkYyNnO0wOM3hdbprmw7sttdMeKC7g,2526
|
39
39
|
openlit/instrumentation/pinecone/pinecone.py,sha256=0EhLmtOuvwWVvAKh3e56wyd8wzQq1oaLOmF15SVHxVE,8765
|
40
40
|
openlit/instrumentation/qdrant/__init__.py,sha256=OJIg17-IGmBEvBYVKjCHcJ0hFXuEL7XV_jzUTqkolN8,4799
|
41
41
|
openlit/instrumentation/qdrant/qdrant.py,sha256=4uHKYGvWQtRAEVLUWo3o4joJw7hFm2NxVuBu5YKZKiI,14456
|
42
42
|
openlit/instrumentation/transformers/__init__.py,sha256=9-KLjq-aPTh13gTBYsWltV6hokGwt3mP4759SwsaaCk,1478
|
43
|
-
openlit/instrumentation/transformers/transformers.py,sha256=
|
43
|
+
openlit/instrumentation/transformers/transformers.py,sha256=Kh7WlEDT4ZNGQTMO8V-eYCc45nj-OPrkXXN-Ss4V5no,7584
|
44
44
|
openlit/instrumentation/vertexai/__init__.py,sha256=N3E9HtzefD-zC0fvmfGYiDmSqssoavp_i59wfuYLyMw,6079
|
45
45
|
openlit/instrumentation/vertexai/async_vertexai.py,sha256=PMHYyLf1J4gZpC_-KZ_ZVx1xIHhZDJSNa7mrjNXZ5M0,52372
|
46
46
|
openlit/instrumentation/vertexai/vertexai.py,sha256=UvpNKBHPoV9idVMfGigZnmWuEQiyqSwZn0zK9-U7Lzw,52125
|
47
47
|
openlit/otel/metrics.py,sha256=O7NoaDz0bY19mqpE4-0PcKwEe-B-iJFRgOCaanAuZAc,4291
|
48
48
|
openlit/otel/tracing.py,sha256=vL1ifMbARPBpqK--yXYsCM6y5dSu5LFIKqkhZXtYmUc,3712
|
49
|
-
openlit/semcov/__init__.py,sha256=
|
50
|
-
openlit-1.
|
51
|
-
openlit-1.
|
52
|
-
openlit-1.
|
53
|
-
openlit-1.
|
49
|
+
openlit/semcov/__init__.py,sha256=fZve0UdvbZCcXBBiYhQhwm6gFe9JPkZznyr8W3wiI68,6681
|
50
|
+
openlit-1.12.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
51
|
+
openlit-1.12.0.dist-info/METADATA,sha256=4N0gOurCVrWMv_5yMkqFqLxPFwjeACSF6Tutc2WOOxc,13123
|
52
|
+
openlit-1.12.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
53
|
+
openlit-1.12.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|