fix(tracing): End http.client span on timeout (#3723) · gitcommit90/sentry-python@5e2d2cf · GitHub
Skip to content

Commit 5e2d2cf

Browse files
authored
fix(tracing): End http.client span on timeout (getsentry#3723)
If the http request times out, the http client span never gets finished. So make sure to finish it no matter what.
1 parent 5c5d98a commit 5e2d2cf

2 files changed

Lines changed: 39 additions & 4 deletions

File tree

sentry_sdk/integrations/stdlib.py

Lines changed: 6 additions & 4 deletions

tests/integrations/stdlib/test_httplib.py

Lines changed: 33 additions & 0 deletions

0 commit comments

Comments
 (0)