Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions sentry_sdk/integrations/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,8 @@ def close(self: "HTTPResponse") -> None:
self._sentrysdk_span = None # type: ignore[attr-defined]
_complete_span(span)

HTTPConnection.putrequest = putrequest # type: ignore[method-assign]
# patch `HTTPConnection.putrequest()` first. urllib3 < 1.25.9 inherits it, so
# wrapping AWS classes first would skip URL and span recording. Once boto3-v1.16.63
# support is dropped, we won't have to worry about this issue.
_patch_aws_connection()
HTTPConnection.putrequest = putrequest # type: ignore[method-assign]
Comment thread
pabloDeputter marked this conversation as resolved.
HTTPConnection.getresponse = getresponse # type: ignore[method-assign]
HTTPResponse.read = read # type: ignore[method-assign]
HTTPResponse.close = close # type: ignore[assignment,method-assign]
Expand Down
Loading