openlit 1.27.0__tar.gz → 1.27.1__tar.gz

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.
Files changed (77) hide show
  1. {openlit-1.27.0 → openlit-1.27.1}/PKG-INFO +2 -1
  2. {openlit-1.27.0 → openlit-1.27.1}/pyproject.toml +2 -1
  3. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/__init__.py +3 -3
  4. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/otel/metrics.py +4 -4
  5. {openlit-1.27.0 → openlit-1.27.1}/LICENSE +0 -0
  6. {openlit-1.27.0 → openlit-1.27.1}/README.md +0 -0
  7. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/__helpers.py +0 -0
  8. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/evals/__init__.py +0 -0
  9. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/evals/all.py +0 -0
  10. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/evals/bias_detection.py +0 -0
  11. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/evals/hallucination.py +0 -0
  12. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/evals/toxicity.py +0 -0
  13. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/evals/utils.py +0 -0
  14. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/guard/__init__.py +0 -0
  15. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/guard/all.py +0 -0
  16. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/guard/prompt_injection.py +0 -0
  17. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/guard/restrict_topic.py +0 -0
  18. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/guard/sensitive_topic.py +0 -0
  19. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/guard/utils.py +0 -0
  20. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/anthropic/__init__.py +0 -0
  21. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/anthropic/anthropic.py +0 -0
  22. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/anthropic/async_anthropic.py +0 -0
  23. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/azure_ai_inference/__init__.py +0 -0
  24. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/azure_ai_inference/async_azure_ai_inference.py +0 -0
  25. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/azure_ai_inference/azure_ai_inference.py +0 -0
  26. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/bedrock/__init__.py +0 -0
  27. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/bedrock/bedrock.py +0 -0
  28. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/chroma/__init__.py +0 -0
  29. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/chroma/chroma.py +0 -0
  30. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/cohere/__init__.py +0 -0
  31. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/cohere/cohere.py +0 -0
  32. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/elevenlabs/__init__.py +0 -0
  33. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/elevenlabs/async_elevenlabs.py +0 -0
  34. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/elevenlabs/elevenlabs.py +0 -0
  35. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/embedchain/__init__.py +0 -0
  36. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/embedchain/embedchain.py +0 -0
  37. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/google_ai_studio/__init__.py +0 -0
  38. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/google_ai_studio/async_google_ai_studio.py +0 -0
  39. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/google_ai_studio/google_ai_studio.py +0 -0
  40. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/gpt4all/__init__.py +0 -0
  41. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/gpt4all/gpt4all.py +0 -0
  42. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/gpu/__init__.py +0 -0
  43. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/groq/__init__.py +0 -0
  44. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/groq/async_groq.py +0 -0
  45. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/groq/groq.py +0 -0
  46. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/haystack/__init__.py +0 -0
  47. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/haystack/haystack.py +0 -0
  48. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/langchain/__init__.py +0 -0
  49. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/langchain/langchain.py +0 -0
  50. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/llamaindex/__init__.py +0 -0
  51. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/llamaindex/llamaindex.py +0 -0
  52. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/milvus/__init__.py +0 -0
  53. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/milvus/milvus.py +0 -0
  54. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/mistral/__init__.py +0 -0
  55. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/mistral/async_mistral.py +0 -0
  56. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/mistral/mistral.py +0 -0
  57. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/ollama/__init__.py +0 -0
  58. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/ollama/async_ollama.py +0 -0
  59. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/ollama/ollama.py +0 -0
  60. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/openai/__init__.py +0 -0
  61. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/openai/async_azure_openai.py +0 -0
  62. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/openai/async_openai.py +0 -0
  63. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/openai/azure_openai.py +0 -0
  64. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/openai/openai.py +0 -0
  65. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/pinecone/__init__.py +0 -0
  66. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/pinecone/pinecone.py +0 -0
  67. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/qdrant/__init__.py +0 -0
  68. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/qdrant/qdrant.py +0 -0
  69. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/transformers/__init__.py +0 -0
  70. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/transformers/transformers.py +0 -0
  71. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/vertexai/__init__.py +0 -0
  72. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/vertexai/async_vertexai.py +0 -0
  73. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/vertexai/vertexai.py +0 -0
  74. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/vllm/__init__.py +0 -0
  75. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/instrumentation/vllm/vllm.py +0 -0
  76. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/otel/tracing.py +0 -0
  77. {openlit-1.27.0 → openlit-1.27.1}/src/openlit/semcov/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openlit
3
- Version: 1.27.0
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,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openlit"
3
- version = "1.27.0"
3
+ version = "1.27.1"
4
4
  description = "OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, facilitating the integration of observability into your GenAI-driven projects"
5
5
  authors = ["OpenLIT"]
6
6
  repository = "https://github.com/openlit/openlit/tree/main/openlit/python"
@@ -13,6 +13,7 @@ python = "^3.7.1"
13
13
  requests = "^2.26.0"
14
14
  schedule = "^1.2.2"
15
15
  tiktoken = "^0.7.0"
16
+ pydantic = "^2.0.0"
16
17
  gpustat = "^1.1.1"
17
18
  boto3 = "^1.34.0"
18
19
  botocore = "^1.34.0"
@@ -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 not metrics_dict:
267
- logger.error("openLIT metrics setup failed. Metrics will not be available.")
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.
@@ -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=bare-except
108
- except:
109
- return None
107
+ # pylint: disable=broad-exception-caught
108
+ except Exception as err:
109
+ return None, err
File without changes
File without changes