Skip to content

Commit 7f77b7b

Browse files
committed
migration guide
1 parent 790bd40 commit 7f77b7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MIGRATION_GUIDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
1818
- The `Span()` constructor does not accept a `hub` parameter anymore.
1919
- `Span.finish()` does not accept a `hub` parameter anymore.
2020
- `Span.finish()` no longer returns the `event_id` if the event is sent to sentry.
21+
- Some integrations were creating spans with `op` `db`. This was changed to `db.query`.
2122
- The `Profile()` constructor does not accept a `hub` parameter anymore.
2223
- A `Profile` object does not have a `.hub` property anymore.
2324
- `MAX_PROFILE_DURATION_NS`, `PROFILE_MINIMUM_SAMPLES`, `Profile`, `Scheduler`, `ThreadScheduler`, `GeventScheduler`, `has_profiling_enabled`, `setup_profiler`, `teardown_profiler` are no longer accessible from `sentry_sdk.profiler`. They're still accessible from `sentry_sdk.profiler.transaction_profiler`.
@@ -30,6 +31,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
3031
- We updated how we handle `ExceptionGroup`s. You will now get more data if ExceptionGroups are appearing in chained exceptions. It could happen that after updating the SDK the grouping of issues change because of this. So eventually you will see the same exception in two Sentry issues (one from before the update, one from after the update)
3132
- 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")])`.
3233
- The `SentrySpanProcessor` and `SentryPropagator` are exported from `sentry_sdk.opentelemetry` instead of `sentry_sdk.integrations.opentelemetry`.
34+
- PyMongo breadcrumb type was changed from `db` to `query`.
3335
- The integration-specific content of the `sampling_context` argument of `traces_sampler` and `profiles_sampler` now looks different.
3436
- The Celery integration doesn't add the `celery_job` dictionary anymore. Instead, the individual keys are now available as:
3537

0 commit comments

Comments
 (0)