openlit 1.28.0__py3-none-any.whl → 1.29.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/gpu/__init__.py +7 -2
- {openlit-1.28.0.dist-info → openlit-1.29.0.dist-info}/METADATA +1 -1
- {openlit-1.28.0.dist-info → openlit-1.29.0.dist-info}/RECORD +5 -5
- {openlit-1.28.0.dist-info → openlit-1.29.0.dist-info}/LICENSE +0 -0
- {openlit-1.28.0.dist-info → openlit-1.29.0.dist-info}/WHEEL +0 -0
@@ -132,13 +132,18 @@ class GPUInstrumentor(BaseInstrumentor):
|
|
132
132
|
gpu_index, e)
|
133
133
|
return 0
|
134
134
|
|
135
|
+
def safe_decode(byte_string):
|
136
|
+
if isinstance(byte_string, bytes):
|
137
|
+
return byte_string.decode('utf-8')
|
138
|
+
return byte_string
|
139
|
+
|
135
140
|
attributes = {
|
136
141
|
TELEMETRY_SDK_NAME: "openlit",
|
137
142
|
SemanticConvetion.GEN_AI_APPLICATION_NAME: application_name,
|
138
143
|
SemanticConvetion.GEN_AI_ENVIRONMENT: environment,
|
139
144
|
SemanticConvetion.GPU_INDEX: str(gpu_index),
|
140
|
-
SemanticConvetion.GPU_UUID: pynvml.nvmlDeviceGetUUID(handle)
|
141
|
-
SemanticConvetion.GPU_NAME: pynvml.nvmlDeviceGetName(handle)
|
145
|
+
SemanticConvetion.GPU_UUID: safe_decode(pynvml.nvmlDeviceGetUUID(handle)),
|
146
|
+
SemanticConvetion.GPU_NAME: safe_decode(pynvml.nvmlDeviceGetName(handle))
|
142
147
|
}
|
143
148
|
yield Observation(get_metric_value(handle, metric_name), attributes)
|
144
149
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: openlit
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.29.0
|
4
4
|
Summary: OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, 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,gpu
|
@@ -34,7 +34,7 @@ openlit/instrumentation/google_ai_studio/async_google_ai_studio.py,sha256=20MHsp
|
|
34
34
|
openlit/instrumentation/google_ai_studio/google_ai_studio.py,sha256=vIJjzl5Fkgsf3vfaqmxhtSFvOpXK-wGC-JFhEXGP50M,13636
|
35
35
|
openlit/instrumentation/gpt4all/__init__.py,sha256=-59CP2B3-HGZJ_vC-fI9Dt-0BuQXRhSCWCjnaGeU15Q,1802
|
36
36
|
openlit/instrumentation/gpt4all/gpt4all.py,sha256=dbxqZeuTrv_y6wyDOIEmC8-Dc4iCGgLpj3l5JiodLMI,18787
|
37
|
-
openlit/instrumentation/gpu/__init__.py,sha256=
|
37
|
+
openlit/instrumentation/gpu/__init__.py,sha256=niMQS-tmVcHSFPGC39JWOnQK306Ve6GhsOUCMneOC88,11076
|
38
38
|
openlit/instrumentation/groq/__init__.py,sha256=uW_0G6HSanQyK2dIXYhzR604pDiyPQfybzc37DsfSew,1911
|
39
39
|
openlit/instrumentation/groq/async_groq.py,sha256=myob-d9V66YiNmkFd9rtmMaXjlLiSMVHi_US16L-rZw,20011
|
40
40
|
openlit/instrumentation/groq/groq.py,sha256=m4gFPbYzjUUIgjXZ0Alu2Zy1HcO5takCFA2XFnkcGVo,19975
|
@@ -71,7 +71,7 @@ openlit/instrumentation/vllm/vllm.py,sha256=lDzM7F5pgxvh8nKL0dcKB4TD0Mc9wXOWeXOs
|
|
71
71
|
openlit/otel/metrics.py,sha256=FYAk4eBAmNtFKUIp4hbRbpdq4LME6MapyCQOIeuhmEg,4337
|
72
72
|
openlit/otel/tracing.py,sha256=2kSj7n7uXSkRegcGFDC8IbnDOxqWTA8dGODs__Yn_yA,3719
|
73
73
|
openlit/semcov/__init__.py,sha256=xPsw1aPonDSGYVuga-ZdoGt4yyA16wNFi5AEc7_xIrQ,8114
|
74
|
-
openlit-1.
|
75
|
-
openlit-1.
|
76
|
-
openlit-1.
|
77
|
-
openlit-1.
|
74
|
+
openlit-1.29.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
75
|
+
openlit-1.29.0.dist-info/METADATA,sha256=8uukJaCeePRMe0rFpdEQWACsNdD0SakudmVc6wPxkU0,20806
|
76
|
+
openlit-1.29.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
77
|
+
openlit-1.29.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|