Skip to content

Commit 7174739

Browse files
committed
remove http status code tag
1 parent 751040c commit 7174739

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

MIGRATION_GUIDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
1111

1212
### Removed
1313

14+
- When setting span status, the HTTP status code is no longer automatically added as a tag.
15+
1416
### Deprecated
1517

1618

sentry_sdk/tracing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,10 +1564,6 @@ def set_profiler_id(self, profiler_id):
15641564

15651565
def set_http_status(self, http_status):
15661566
# type: (int) -> None
1567-
self.set_tag(
1568-
"http.status_code", str(http_status)
1569-
) # we keep this for backwards compatibility
1570-
# XXX do we still need this? ^
15711567
self.set_data(SPANDATA.HTTP_STATUS_CODE, http_status)
15721568
self.set_status(get_span_status_from_http_code(http_status))
15731569

0 commit comments

Comments
 (0)