Skip to content

Commit 56f2113

Browse files
authored
Remove deprecated span description (#3640)
1 parent c6ad235 commit 56f2113

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

MIGRATION_GUIDE.md

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

2222
### Removed
2323

24+
- Spans no longer have a `description`. Use `name` instead.
2425
- Dropped support for Python 3.6.
2526
- `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
2627
- The experimental options `enable_metrics`, `before_emit_metric` and `metric_code_locations` have been removed.

sentry_sdk/integrations/opentelemetry/scope.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import warnings
2-
31
from typing import cast
42
from contextlib import contextmanager
53

@@ -125,13 +123,6 @@ def start_transaction(self, custom_sampling_context=None, **kwargs):
125123

126124
def start_span(self, custom_sampling_context=None, **kwargs):
127125
# type: (Optional[SamplingContext], Any) -> POTelSpan
128-
if kwargs.get("description") is not None:
129-
warnings.warn(
130-
"The `description` parameter is deprecated. Please use `name` instead.",
131-
DeprecationWarning,
132-
stacklevel=2,
133-
)
134-
135126
return POTelSpan(**kwargs, scope=self)
136127

137128

0 commit comments

Comments
 (0)