openlit 1.30.0__py3-none-any.whl → 1.30.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.
@@ -36,9 +36,9 @@ def crew_wrap(gen_ai_endpoint, version, environment, application_name,
36
36
  gen_ai_endpoint: Endpoint identifier for logging and tracing.
37
37
  version: Version of the monitoring package.
38
38
  environment: Deployment environment (e.g., production, staging).
39
- application_name: Name of the application using the OpenAI API.
39
+ application_name: Name of the application using the CrewAI Agent.
40
40
  tracer: OpenTelemetry tracer for creating spans.
41
- pricing_info: Information used for calculating the cost of OpenAI usage.
41
+ pricing_info: Information used for calculating the cost of CrewAI usage.
42
42
  trace_content: Flag indicating whether to trace the actual content.
43
43
 
44
44
  Returns:
@@ -70,9 +70,9 @@ def crew_wrap(gen_ai_endpoint, version, environment, application_name,
70
70
  # Set base span attribues
71
71
  span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
72
72
  span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
73
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI)
73
+ SemanticConvetion.GEN_AI_SYSTEM_CREWAI)
74
74
  span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
75
- SemanticConvetion.GEN_AI_TYPE_CHAT)
75
+ SemanticConvetion.GEN_AI_TYPE_AGENT)
76
76
  span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
77
77
  gen_ai_endpoint)
78
78
 
@@ -26,9 +26,9 @@ def acompletion(gen_ai_endpoint, version, environment, application_name,
26
26
  gen_ai_endpoint: Endpoint identifier for logging and tracing.
27
27
  version: Version of the monitoring package.
28
28
  environment: Deployment environment (e.g., production, staging).
29
- application_name: Name of the application using the OpenAI API.
29
+ application_name: Name of the application using the LiteLLM SDK.
30
30
  tracer: OpenTelemetry tracer for creating spans.
31
- pricing_info: Information used for calculating the cost of OpenAI usage.
31
+ pricing_info: Information used for calculating the cost of LiteLLM usage.
32
32
  trace_content: Flag indicating whether to trace the actual content.
33
33
 
34
34
  Returns:
@@ -38,7 +38,6 @@ def acompletion(gen_ai_endpoint, version, environment, application_name,
38
38
  class TracedAsyncStream:
39
39
  """
40
40
  Wrapper for streaming responses to collect metrics and trace data.
41
- Wraps the 'openai.AsyncStream' response to collect message IDs and aggregated response.
42
41
 
43
42
  This class implements the '__aiter__' and '__anext__' methods that
44
43
  handle asynchronous streaming responses.
@@ -125,7 +124,7 @@ def acompletion(gen_ai_endpoint, version, environment, application_name,
125
124
  # Set Span attributes
126
125
  self._span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
127
126
  self._span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
128
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI)
127
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM)
129
128
  self._span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
130
129
  SemanticConvetion.GEN_AI_TYPE_CHAT)
131
130
  self._span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
@@ -185,7 +184,7 @@ def acompletion(gen_ai_endpoint, version, environment, application_name,
185
184
  SemanticConvetion.GEN_AI_APPLICATION_NAME:
186
185
  application_name,
187
186
  SemanticConvetion.GEN_AI_SYSTEM:
188
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI,
187
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM,
189
188
  SemanticConvetion.GEN_AI_ENVIRONMENT:
190
189
  environment,
191
190
  SemanticConvetion.GEN_AI_TYPE:
@@ -268,7 +267,7 @@ def acompletion(gen_ai_endpoint, version, environment, application_name,
268
267
  # Set base span attribues
269
268
  span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
270
269
  span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
271
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI)
270
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM)
272
271
  span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
273
272
  SemanticConvetion.GEN_AI_TYPE_CHAT)
274
273
  span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
@@ -379,7 +378,7 @@ def acompletion(gen_ai_endpoint, version, environment, application_name,
379
378
  SemanticConvetion.GEN_AI_APPLICATION_NAME:
380
379
  application_name,
381
380
  SemanticConvetion.GEN_AI_SYSTEM:
382
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI,
381
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM,
383
382
  SemanticConvetion.GEN_AI_ENVIRONMENT:
384
383
  environment,
385
384
  SemanticConvetion.GEN_AI_TYPE:
@@ -26,9 +26,9 @@ def completion(gen_ai_endpoint, version, environment, application_name,
26
26
  gen_ai_endpoint: Endpoint identifier for logging and tracing.
27
27
  version: Version of the monitoring package.
28
28
  environment: Deployment environment (e.g., production, staging).
29
- application_name: Name of the application using the OpenAI API.
29
+ application_name: Name of the application using the LiteLLM SDK.
30
30
  tracer: OpenTelemetry tracer for creating spans.
31
- pricing_info: Information used for calculating the cost of OpenAI usage.
31
+ pricing_info: Information used for calculating the cost of LiteLLM usage.
32
32
  trace_content: Flag indicating whether to trace the actual content.
33
33
 
34
34
  Returns:
@@ -38,7 +38,6 @@ def completion(gen_ai_endpoint, version, environment, application_name,
38
38
  class TracedSyncStream:
39
39
  """
40
40
  Wrapper for streaming responses to collect metrics and trace data.
41
- Wraps the 'openai.AsyncStream' response to collect message IDs and aggregated response.
42
41
 
43
42
  This class implements the '__aiter__' and '__anext__' methods that
44
43
  handle asynchronous streaming responses.
@@ -125,7 +124,7 @@ def completion(gen_ai_endpoint, version, environment, application_name,
125
124
  # Set Span attributes
126
125
  self._span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
127
126
  self._span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
128
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI)
127
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM)
129
128
  self._span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
130
129
  SemanticConvetion.GEN_AI_TYPE_CHAT)
131
130
  self._span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
@@ -185,7 +184,7 @@ def completion(gen_ai_endpoint, version, environment, application_name,
185
184
  SemanticConvetion.GEN_AI_APPLICATION_NAME:
186
185
  application_name,
187
186
  SemanticConvetion.GEN_AI_SYSTEM:
188
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI,
187
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM,
189
188
  SemanticConvetion.GEN_AI_ENVIRONMENT:
190
189
  environment,
191
190
  SemanticConvetion.GEN_AI_TYPE:
@@ -268,7 +267,7 @@ def completion(gen_ai_endpoint, version, environment, application_name,
268
267
  # Set base span attribues
269
268
  span.set_attribute(TELEMETRY_SDK_NAME, "openlit")
270
269
  span.set_attribute(SemanticConvetion.GEN_AI_SYSTEM,
271
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI)
270
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM)
272
271
  span.set_attribute(SemanticConvetion.GEN_AI_TYPE,
273
272
  SemanticConvetion.GEN_AI_TYPE_CHAT)
274
273
  span.set_attribute(SemanticConvetion.GEN_AI_ENDPOINT,
@@ -379,7 +378,7 @@ def completion(gen_ai_endpoint, version, environment, application_name,
379
378
  SemanticConvetion.GEN_AI_APPLICATION_NAME:
380
379
  application_name,
381
380
  SemanticConvetion.GEN_AI_SYSTEM:
382
- SemanticConvetion.GEN_AI_SYSTEM_OPENAI,
381
+ SemanticConvetion.GEN_AI_SYSTEM_LITELLM,
383
382
  SemanticConvetion.GEN_AI_ENVIRONMENT:
384
383
  environment,
385
384
  SemanticConvetion.GEN_AI_TYPE:
@@ -88,6 +88,7 @@ class SemanticConvetion:
88
88
  GEN_AI_TYPE_FINETUNING = "fine_tuning"
89
89
  GEN_AI_TYPE_VECTORDB = "vectordb"
90
90
  GEN_AI_TYPE_FRAMEWORK = "framework"
91
+ GEN_AI_TYPE_AGENT = "agent"
91
92
 
92
93
  GEN_AI_SYSTEM_HUGGING_FACE = "huggingface"
93
94
  GEN_AI_SYSTEM_OPENAI = "openai"
@@ -108,6 +109,8 @@ class SemanticConvetion:
108
109
  GEN_AI_SYSTEM_LLAMAINDEX = "llama_index"
109
110
  GEN_AI_SYSTEM_HAYSTACK = "haystack"
110
111
  GEN_AI_SYSTEM_EMBEDCHAIN = "embedchain"
112
+ GEN_AI_SYSTEM_LITELLM = "litellm"
113
+ GEN_AI_SYSTEM_CREWAI = "crewai"
111
114
 
112
115
  # Vector DB
113
116
  DB_REQUESTS = "db.total.requests"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openlit
3
- Version: 1.30.0
3
+ Version: 1.30.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
@@ -25,7 +25,7 @@ openlit/instrumentation/chroma/chroma.py,sha256=E80j_41UeZi8RzTsHbpvi1izOA_n-0-3
25
25
  openlit/instrumentation/cohere/__init__.py,sha256=PC5T1qIg9pwLNocBP_WjG5B_6p_z019s8quk_fNLAMs,1920
26
26
  openlit/instrumentation/cohere/cohere.py,sha256=62-P2K39v6pIJme6vTVViLJ9PP8q_UWkTv2l3Wa2gHA,21217
27
27
  openlit/instrumentation/crewai/__init__.py,sha256=cETkkwnKYEMAKlMrHbZ9-RvcRUPYaSNqNIhy2-vCDK8,1794
28
- openlit/instrumentation/crewai/crewai.py,sha256=xiyWqYv2euyIhjuw4kM_jacH4MuVTlac6lCqzjnAbmM,6914
28
+ openlit/instrumentation/crewai/crewai.py,sha256=V0ZAlNf6vPL6nZs_XvQYG2DqpgfbX_37yMnScAu3dsk,6917
29
29
  openlit/instrumentation/elevenlabs/__init__.py,sha256=BZjAe-kzFJpKxT0tKksXVfZgirvgEp8qM3SfegWU5co,2631
30
30
  openlit/instrumentation/elevenlabs/async_elevenlabs.py,sha256=yMYACh95SFr5EYklKnXw2DrPFa3iIgM4qQMWjO1itMU,5690
31
31
  openlit/instrumentation/elevenlabs/elevenlabs.py,sha256=mFnD7sgT47OxaXJz0Vc1nrNjXEpcGQDj5run3gA48Lw,6089
@@ -45,8 +45,8 @@ openlit/instrumentation/haystack/haystack.py,sha256=oQIZiDhdp3gnJnhYQ1OouJMc9YT0
45
45
  openlit/instrumentation/langchain/__init__.py,sha256=0AI2Dnqw81IcJw3jM--gGkv_HRh2GtosOGJjvOpw7Zk,3431
46
46
  openlit/instrumentation/langchain/langchain.py,sha256=g3HDKPq498KitHuQxxfQzvRq9MKAZaR0jStQYTLx_-M,35592
47
47
  openlit/instrumentation/litellm/__init__.py,sha256=XV3PxqhlZYoJ3FbVr9MiWPogrE3_HOAv-BvOObylU4M,1866
48
- openlit/instrumentation/litellm/async_litellm.py,sha256=wsi9GLfp4h4gu2128YMmkgBlnPqPvG5GUdHVddZfPkI,21919
49
- openlit/instrumentation/litellm/litellm.py,sha256=ayKFyxX8hu9P-FdA-Nn4cf-ewXJD1FCygv3ota35Xe4,21832
48
+ openlit/instrumentation/litellm/async_litellm.py,sha256=fmOpzjhfnYubFdlJYA7R0n2rxxrO78FBb6q1iCf2_HQ,21829
49
+ openlit/instrumentation/litellm/litellm.py,sha256=zO-L8-Yai0uqDl4J7i7Y8ETL87EpozevfgQdGMLsu4Y,21742
50
50
  openlit/instrumentation/llamaindex/__init__.py,sha256=vPtK65G6b-TwJERowVRUVl7f_nBSlFdwPBtpg8dOGos,1977
51
51
  openlit/instrumentation/llamaindex/llamaindex.py,sha256=uiIigbwhonSbJWA7LpgOVI1R4kxxPODS1K5wyHIQ4hM,4048
52
52
  openlit/instrumentation/milvus/__init__.py,sha256=qi1yfmMrvkDtnrN_6toW8qC9BRL78bq7ayWpObJ8Bq4,2961
@@ -76,8 +76,8 @@ openlit/instrumentation/vllm/__init__.py,sha256=OVWalQ1dXvip1DUsjUGaHX4J-2FrSp-T
76
76
  openlit/instrumentation/vllm/vllm.py,sha256=lDzM7F5pgxvh8nKL0dcKB4TD0Mc9wXOWeXOsOGN7Wd8,6527
77
77
  openlit/otel/metrics.py,sha256=FYAk4eBAmNtFKUIp4hbRbpdq4LME6MapyCQOIeuhmEg,4337
78
78
  openlit/otel/tracing.py,sha256=2kSj7n7uXSkRegcGFDC8IbnDOxqWTA8dGODs__Yn_yA,3719
79
- openlit/semcov/__init__.py,sha256=FhaEFY7nStofZsdwHPtZbnNDCAs3i0NMvp80R_HEBAc,9031
80
- openlit-1.30.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
81
- openlit-1.30.0.dist-info/METADATA,sha256=9jdPX05oWaVYZ5lMtfkR4Yyzbt4zYC_ZUZza_MBxseA,20841
82
- openlit-1.30.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
83
- openlit-1.30.0.dist-info/RECORD,,
79
+ openlit/semcov/__init__.py,sha256=_IjU498Sc0Rjz55y9S3dUelgRalmrzzBgFglPzOlIfk,9137
80
+ openlit-1.30.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
81
+ openlit-1.30.1.dist-info/METADATA,sha256=Q83fnSGICFk7AgR8xiVKGFN8bHcq3V9vmCG8UrJW0Hk,20841
82
+ openlit-1.30.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
83
+ openlit-1.30.1.dist-info/RECORD,,