Skip to content

Commit 1ecd559

Browse files
committed
fix(litellm): properly propagating exception in error callback
1 parent 2b8a007 commit 1ecd559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/litellm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _failure_callback(kwargs, exception, start_time, end_time):
179179
sentry_sdk.capture_event(event, hint=hint)
180180
finally:
181181
# Always finish the span and clean up
182-
span.__exit__(None, None, None)
182+
span.__exit__(type(exception), exception, None)
183183

184184

185185
class LiteLLMIntegration(Integration):

0 commit comments

Comments
 (0)