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
We don't use the `client` parameter in the `Scope`'s constructor,
perhaps we can remove it and simplify the API. It is still possible to
set the client with `Scope.set_client`.
BREAKING CHANGE: `sentry_sdk.Scope` no longer has a `client` parameter.
<!-- Describe your PR here -->
---
Thank you for contributing to `sentry-python`! Please add tests to
validate your changes, and lint your code using `tox -e linters`.
Running the test suite on your PR might require maintainer approval.
Copy file name to clipboardExpand all lines: MIGRATION_GUIDE.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
16
16
-`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`.
17
17
- You can no longer change the sampled status of a span with `span.sampled = False` after starting it.
18
18
- The `Span()` constructor does not accept a `hub` parameter anymore.
19
+
- The `sentry_sdk.Scope()` constructor no longer accepts a `client` parameter.
19
20
-`Span.finish()` does not accept a `hub` parameter anymore.
20
21
-`Span.finish()` no longer returns the `event_id` if the event is sent to sentry.
21
22
- The `Profile()` constructor does not accept a `hub` parameter anymore.
@@ -31,6 +32,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
31
32
- The integration for Python `logging` module does not send Sentry issues by default anymore when calling `logging.error()`, `logging.critical()` or `logging.exception()`. If you want to preserve the old behavior use `sentry_sdk.init(integrations=[LoggingIntegration(event_level="ERROR")])`.
32
33
- The `SentrySpanProcessor` and `SentryPropagator` are exported from `sentry_sdk.opentelemetry` instead of `sentry_sdk.integrations.opentelemetry`.
33
34
- The integration-specific content of the `sampling_context` argument of `traces_sampler` and `profiles_sampler` now looks different.
35
+
34
36
- The Celery integration doesn't add the `celery_job` dictionary anymore. Instead, the individual keys are now available as:
35
37
36
38
| Dictionary keys | Sampling context key | Example |
@@ -133,7 +135,6 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
0 commit comments