Skip to content

Commit 3f5a5bb

Browse files
remove type check for http.response.status_code
1 parent 6285feb commit 3f5a5bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sentry_sdk/tracing.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,11 +1047,7 @@ def finish(
10471047
super().finish(scope, end_timestamp)
10481048

10491049
status_code = self._data.get(SPANDATA.HTTP_STATUS_CODE)
1050-
if status_code is not None and not isinstance(status_code, int):
1051-
logger.warning(
1052-
f"Invalid type for http.response.status_code; is {status_code!r} of type {type(status_code)}, expected an int."
1053-
)
1054-
elif (
1050+
if (
10551051
status_code is not None
10561052
and status_code in client.options["trace_ignore_status_codes"]
10571053
):

0 commit comments

Comments
 (0)