openlit 1.34.0__py3-none-any.whl → 1.34.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.
@@ -39,26 +39,34 @@ def async_generate(version, environment, application_name,
39
39
  start_time = time.time()
40
40
  response = await wrapped(*args, **kwargs)
41
41
 
42
- response = process_chat_response(
43
- instance = instance,
44
- response=response,
45
- request_model=request_model,
46
- pricing_info=pricing_info,
47
- server_port=server_port,
48
- server_address=server_address,
49
- environment=environment,
50
- application_name=application_name,
51
- metrics=metrics,
52
- start_time=start_time,
53
- span=span,
54
- args=args,
55
- kwargs=kwargs,
56
- capture_message_content=capture_message_content,
57
- disable_metrics=disable_metrics,
58
- version=version,
59
- )
60
-
61
- return response
42
+ try:
43
+ response = process_chat_response(
44
+ instance = instance,
45
+ response=response,
46
+ request_model=request_model,
47
+ pricing_info=pricing_info,
48
+ server_port=server_port,
49
+ server_address=server_address,
50
+ environment=environment,
51
+ application_name=application_name,
52
+ metrics=metrics,
53
+ start_time=start_time,
54
+ span=span,
55
+ args=args,
56
+ kwargs=kwargs,
57
+ capture_message_content=capture_message_content,
58
+ disable_metrics=disable_metrics,
59
+ version=version,
60
+ )
61
+
62
+ return response
63
+
64
+ except Exception as e:
65
+ handle_exception(span, e)
66
+ logger.error("Error in trace creation: %s", e)
67
+
68
+ # Return original response
69
+ return response
62
70
 
63
71
  return wrapper
64
72
 
@@ -39,26 +39,34 @@ def generate(version, environment, application_name,
39
39
  start_time = time.time()
40
40
  response = wrapped(*args, **kwargs)
41
41
 
42
- response = process_chat_response(
43
- instance = instance,
44
- response=response,
45
- request_model=request_model,
46
- pricing_info=pricing_info,
47
- server_port=server_port,
48
- server_address=server_address,
49
- environment=environment,
50
- application_name=application_name,
51
- metrics=metrics,
52
- start_time=start_time,
53
- span=span,
54
- args=args,
55
- kwargs=kwargs,
56
- capture_message_content=capture_message_content,
57
- disable_metrics=disable_metrics,
58
- version=version,
59
- )
60
-
61
- return response
42
+ try:
43
+ response = process_chat_response(
44
+ instance = instance,
45
+ response=response,
46
+ request_model=request_model,
47
+ pricing_info=pricing_info,
48
+ server_port=server_port,
49
+ server_address=server_address,
50
+ environment=environment,
51
+ application_name=application_name,
52
+ metrics=metrics,
53
+ start_time=start_time,
54
+ span=span,
55
+ args=args,
56
+ kwargs=kwargs,
57
+ capture_message_content=capture_message_content,
58
+ disable_metrics=disable_metrics,
59
+ version=version,
60
+ )
61
+
62
+ return response
63
+
64
+ except Exception as e:
65
+ handle_exception(span, e)
66
+ logger.error("Error in trace creation: %s", e)
67
+
68
+ # Return original response
69
+ return response
62
70
 
63
71
  return wrapper
64
72
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openlit
3
- Version: 1.34.0
3
+ Version: 1.34.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
  License: Apache-2.0
6
6
  Keywords: OpenTelemetry,otel,otlp,llm,tracing,openai,anthropic,claude,cohere,llm monitoring,observability,monitoring,gpt,Generative AI,chatGPT,gpu
@@ -57,8 +57,8 @@ openlit/instrumentation/embedchain/embedchain.py,sha256=f4hyOr1Xr0RC4PNHRu46aV-j
57
57
  openlit/instrumentation/firecrawl/__init__.py,sha256=kyVsAiDBC2djifqT2w1cPRAotiEyEabNvnBeSQxi9N8,1876
58
58
  openlit/instrumentation/firecrawl/firecrawl.py,sha256=4X38UrLYeGm3uez-edYA6qEc0nKC3p77yfKgKBBud0A,3826
59
59
  openlit/instrumentation/google_ai_studio/__init__.py,sha256=d4aDvCSfDtT2geRbwG5yinu62uPTHaj4PtalimuvG-k,2685
60
- openlit/instrumentation/google_ai_studio/async_google_ai_studio.py,sha256=kv8X1c3klmFEPTyxj9kJag2D670_YZxxkBhsIrW7JH4,5501
61
- openlit/instrumentation/google_ai_studio/google_ai_studio.py,sha256=MJQjHF1o6DuXHr1xE2-hp_cgejV65-LpXIGL6bacE4Q,5403
60
+ openlit/instrumentation/google_ai_studio/async_google_ai_studio.py,sha256=eOUrIMsUh2dG8BqMB7oizuQBbntIb4sy2WkYrF3Dzj0,5815
61
+ openlit/instrumentation/google_ai_studio/google_ai_studio.py,sha256=fvwZcWlfjT5eXPmeYA5JMSyPfHfLZKBnzBd0iHQxEec,5717
62
62
  openlit/instrumentation/google_ai_studio/utils.py,sha256=s9-5qnIWfXsq2xjYbWToI0RBAUo5lT0yLPOILc6eY1k,11256
63
63
  openlit/instrumentation/gpt4all/__init__.py,sha256=cO8mi3hhPDXcNwb9AwQ3-wQ_ydnOeBRwb0cptlQmAM4,1805
64
64
  openlit/instrumentation/gpt4all/gpt4all.py,sha256=EYp0njZ1kF56rTAjYZVtufA5W4xTWGzSIntjJ4MEfl4,24185
@@ -130,7 +130,7 @@ openlit/otel/events.py,sha256=VrMjTpvnLtYRBHCiFwJojTQqqNpRCxoD4yJYeQrtPsk,3560
130
130
  openlit/otel/metrics.py,sha256=GM2PDloBGRhBTkHHkYaqmOwIAQkY124ZhW4sEqW1Fgk,7086
131
131
  openlit/otel/tracing.py,sha256=tjV2bEbEDPUB1Z46gE-UsJsb04sRdFrfbhIDkxViZc0,3103
132
132
  openlit/semcov/__init__.py,sha256=ptyo37PY-FHDx_PShEvbdns71cD4YvvXw15bCRXKCKM,13461
133
- openlit-1.34.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
134
- openlit-1.34.0.dist-info/METADATA,sha256=RCozi6Py2qG7G6-x9NlC7T9VYy74W1Ochq2rFKl4PgE,23469
135
- openlit-1.34.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
136
- openlit-1.34.0.dist-info/RECORD,,
133
+ openlit-1.34.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
134
+ openlit-1.34.1.dist-info/METADATA,sha256=c3xokUNDxGsFVnc_XqD9q4_aodyLpYGPYBA6uXNd3do,23469
135
+ openlit-1.34.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
136
+ openlit-1.34.1.dist-info/RECORD,,