Skip to content

Commit 1c549fb

Browse files
remove reason attribute
1 parent b732d86 commit 1c549fb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

sentry_sdk/integrations/stdlib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ def getresponse(self: "HTTPConnection", *args: "Any", **kwargs: "Any") -> "Any":
166166
rv = real_getresponse(self, *args, **kwargs)
167167

168168
if isinstance(span, StreamedSpan):
169-
span.set_attribute("reason", rv.reason)
170-
171169
status_code = int(rv.status)
172170
span.status = "error" if status_code >= 400 else "ok"
173171
span.set_attribute("http.response.status_code", status_code)

0 commit comments

Comments
 (0)