You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
9
9
### Changed
10
10
11
11
- The SDK now supports Python 3.7 and higher.
12
+
- The default of `traces_sample_rate` changed to `0`. Meaning: Incoming traces will be continued by default. For example, if your frontend sends a `sentry-trace/baggage` headers pair, your SDK will create Spans and send them to Sentry. (The default used to be `None` meaning by default no Spans where created, no matter what headers the frontend sent to your project.) See also: https://docs.sentry.io/platforms/python/configuration/options/#traces_sample_rate
12
13
-`sentry_sdk.start_span` now only takes keyword arguments.
13
14
-`sentry_sdk.start_transaction`/`sentry_sdk.start_span` no longer takes the following arguments: `span`, `parent_sampled`, `trace_id`, `span_id` or `parent_span_id`.
14
15
- You can no longer change the sampled status of a span with `span.sampled = False` after starting it.
@@ -131,7 +132,6 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
131
132
132
133
### Removed
133
134
134
-
- Spans no longer have a `description`. Use `name` instead.
135
135
- Dropped support for Python 3.6.
136
136
- The `enable_tracing``init` option has been removed. Configure `traces_sample_rate` directly.
137
137
- The `propagate_traces``init` option has been removed. Use `trace_propagation_targets` instead.
@@ -157,18 +157,23 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
157
157
-`profiles_sample_rate` and `profiler_mode` were removed from options available via `_experiments`. Use the top-level `profiles_sample_rate` and `profiler_mode` options instead.
158
158
-`Transport.capture_event` has been removed. Use `Transport.capture_envelope` instead.
159
159
- Function transports are no longer supported. Subclass the `Transport` instead.
160
+
-`start_transaction` (`start_span`) no longer takes the following arguments:
161
+
-`trace_id`, `baggage`: use `continue_trace` for propagation from headers or environment variables
162
+
-`same_process_as_parent`
163
+
-`span_id`
164
+
-`parent_span_id`: you can supply a `parent_span` instead
160
165
- Setting `Scope.transaction` directly is no longer supported. Use `Scope.set_transaction_name()` instead.
161
166
- Passing a list or `None` for `failed_request_status_codes` in the Starlette integration is no longer supported. Pass a set of integers instead.
162
167
- The `span` argument of `Scope.trace_propagation_meta` is no longer supported.
163
168
- Setting `Scope.user` directly is no longer supported. Use `Scope.set_user()` instead.
164
-
-`start_transaction` (`start_span`) no longer takes a `baggage` argument. Use the `continue_trace()` context manager instead to propagate baggage.
165
169
- Dropped support for Django versions below 2.0.
166
170
- Dropped support for trytond versions below 5.0.
167
171
- Dropped support for Falcon versions below 3.0.
168
172
169
173
### Deprecated
170
174
171
-
-`sentry_sdk.start_transaction` is deprecated. Use `sentry_sdk.start_span` instead.
175
+
-`sentry_sdk.start_transaction()` is deprecated. Use `sentry_sdk.start_span()` instead.
176
+
-`Span.set_data()` is deprecated. Use `Span.set_attribute()` instead.
0 commit comments