Skip to content

Commit 11e1961

Browse files
committed
Remove set_tag stuff
1 parent f02c204 commit 11e1961

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

MIGRATION_GUIDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
2424

2525
- Spans no longer have a `description`. Use `name` instead.
2626
- Dropped support for Python 3.6.
27+
- The PyMongo integration no longer sets tags. The data is still accessible via `data`.
2728
- `sentry_sdk.metrics` and associated metrics APIs have been removed as Sentry no longer accepts metrics data in this form. See https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics
2829
- The experimental options `enable_metrics`, `before_emit_metric` and `metric_code_locations` have been removed.
2930
- When setting span status, the HTTP status code is no longer automatically added as a tag.

sentry_sdk/integrations/pymongo.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ def started(self, event):
163163
)
164164

165165
for tag, value in tags.items():
166-
# set the tag for backwards-compatibility.
167-
# TODO: remove the set_tag call in the next major release!
168-
span.set_tag(tag, value)
169-
170166
span.set_data(tag, value)
171167

172168
for key, value in data.items():

0 commit comments

Comments
 (0)