Skip to content

Commit 45e02e7

Browse files
ref(stdlib): remove urllib3 workaround (#7283)
1 parent 8e6d73b commit 45e02e7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

sentry_sdk/integrations/stdlib.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,8 @@ def close(self: "HTTPResponse") -> None:
459459
self._sentrysdk_span = None # type: ignore[attr-defined]
460460
_complete_span(span)
461461

462-
HTTPConnection.putrequest = putrequest # type: ignore[method-assign]
463-
# patch `HTTPConnection.putrequest()` first. urllib3 < 1.25.9 inherits it, so
464-
# wrapping AWS classes first would skip URL and span recording. Once boto3-v1.16.63
465-
# support is dropped, we won't have to worry about this issue.
466462
_patch_aws_connection()
463+
HTTPConnection.putrequest = putrequest # type: ignore[method-assign]
467464
HTTPConnection.getresponse = getresponse # type: ignore[method-assign]
468465
HTTPResponse.read = read # type: ignore[method-assign]
469466
HTTPResponse.close = close # type: ignore[assignment,method-assign]

0 commit comments

Comments
 (0)