openlit 1.27.0__py3-none-any.whl → 1.27.1__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/__init__.py +3 -3
- openlit/otel/metrics.py +4 -4
- {openlit-1.27.0.dist-info → openlit-1.27.1.dist-info}/METADATA +2 -1
- {openlit-1.27.0.dist-info → openlit-1.27.1.dist-info}/RECORD +6 -6
- {openlit-1.27.0.dist-info → openlit-1.27.1.dist-info}/LICENSE +0 -0
- {openlit-1.27.0.dist-info → openlit-1.27.1.dist-info}/WHEEL +0 -0
openlit/__init__.py
CHANGED
@@ -255,7 +255,7 @@ def init(environment="default", application_name="default", tracer=None, otlp_en
|
|
255
255
|
return
|
256
256
|
|
257
257
|
# Setup meter and receive metrics_dict instead of meter.
|
258
|
-
metrics_dict = setup_meter(
|
258
|
+
metrics_dict, err = setup_meter(
|
259
259
|
application_name=application_name,
|
260
260
|
environment=environment,
|
261
261
|
meter=meter,
|
@@ -263,8 +263,8 @@ def init(environment="default", application_name="default", tracer=None, otlp_en
|
|
263
263
|
otlp_headers=otlp_headers,
|
264
264
|
)
|
265
265
|
|
266
|
-
if
|
267
|
-
logger.error("
|
266
|
+
if err:
|
267
|
+
logger.error("OpenLIT metrics setup failed. Metrics will not be available: %s", err)
|
268
268
|
return
|
269
269
|
|
270
270
|
# Update global configuration with the provided settings.
|
openlit/otel/metrics.py
CHANGED
@@ -102,8 +102,8 @@ def setup_meter(application_name, environment, meter, otlp_endpoint, otlp_header
|
|
102
102
|
),
|
103
103
|
}
|
104
104
|
|
105
|
-
return metrics_dict
|
105
|
+
return metrics_dict, None
|
106
106
|
|
107
|
-
# pylint: disable=
|
108
|
-
except:
|
109
|
-
return None
|
107
|
+
# pylint: disable=broad-exception-caught
|
108
|
+
except Exception as err:
|
109
|
+
return None, err
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: openlit
|
3
|
-
Version: 1.27.
|
3
|
+
Version: 1.27.1
|
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
|
@@ -22,6 +22,7 @@ Requires-Dist: opentelemetry-api (>=1.27.0,<2.0.0)
|
|
22
22
|
Requires-Dist: opentelemetry-exporter-otlp (>=1.27.0,<2.0.0)
|
23
23
|
Requires-Dist: opentelemetry-instrumentation (>=0.48b0,<0.49)
|
24
24
|
Requires-Dist: opentelemetry-sdk (>=1.27.0,<2.0.0)
|
25
|
+
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
|
25
26
|
Requires-Dist: requests (>=2.26.0,<3.0.0)
|
26
27
|
Requires-Dist: schedule (>=1.2.2,<2.0.0)
|
27
28
|
Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
openlit/__helpers.py,sha256=H-8uJKs_CP9Y2HL4lz5n0AgN60wwZ675hlWHMDO143A,5936
|
2
|
-
openlit/__init__.py,sha256=
|
2
|
+
openlit/__init__.py,sha256=dboS_trymEQ2zubonTuMSRqiFIhy0A9tK0PAktEHc08,19329
|
3
3
|
openlit/evals/__init__.py,sha256=nJe99nuLo1b5rf7pt9U9BCdSDedzbVi2Fj96cgl7msM,380
|
4
4
|
openlit/evals/all.py,sha256=oWrue3PotE-rB5WePG3MRYSA-ro6WivkclSHjYlAqGs,7154
|
5
5
|
openlit/evals/bias_detection.py,sha256=mCdsfK7x1vX7S3psC3g641IMlZ-7df3h-V6eiICj5N8,8154
|
@@ -68,10 +68,10 @@ openlit/instrumentation/vertexai/async_vertexai.py,sha256=8JwSwLPPA4lAatf4w_5kJ5
|
|
68
68
|
openlit/instrumentation/vertexai/vertexai.py,sha256=R6dDQfC3YFoZDygxU2fkflcMsqIv8AVoU3XOwWSvpwA,54951
|
69
69
|
openlit/instrumentation/vllm/__init__.py,sha256=OVWalQ1dXvip1DUsjUGaHX4J-2FrSp-T-qCVOfw7OZo,1495
|
70
70
|
openlit/instrumentation/vllm/vllm.py,sha256=lDzM7F5pgxvh8nKL0dcKB4TD0Mc9wXOWeXOsOGN7Wd8,6527
|
71
|
-
openlit/otel/metrics.py,sha256
|
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.27.
|
75
|
-
openlit-1.27.
|
76
|
-
openlit-1.27.
|
77
|
-
openlit-1.27.
|
74
|
+
openlit-1.27.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
75
|
+
openlit-1.27.1.dist-info/METADATA,sha256=A5el-uDDg_yZPRFEuYiNrpl1vTJX7tT2ETY6rio1GEA,20790
|
76
|
+
openlit-1.27.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
77
|
+
openlit-1.27.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|