Skip to content

Commit 215968b

Browse files
committed
fix: Outdated example in migration guide
1 parent 014c060 commit 215968b

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

MIGRATION_GUIDE.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
116116
- Removed the RedisIntegration `max_data_size` option.
117117
- Removed the possibility to supply a specific client to the LaunchDarklyIntegration.
118118
- The `enable_tracing` option was removed. Use `traces_sample_rate=1.0` instead.
119-
- The `enable_logs` option was removed. Using Sentry's logging API now works without requiring setting `enable_logs=True`. Automatic capture of logs emitted by the `logging` standard library module or Loguru can be turned on by providing the `capture_sentry_logs=True` option to either `LoggingIntegration` or `LoguruIntegration`:
120-
121-
```python
122-
import sentry_sdk
123-
from sentry_sdk.integrations.logging import LoggingIntegration
124-
from sentry_sdk.integrations.loguru import LoguruIntegration
125-
126-
sentry_sdk.init(
127-
integrations=[
128-
LoggingIntegration(capture_sentry_logs=True),
129-
LoguruIntegration(capture_sentry_logs=True),
130-
]
131-
)
132-
```
133-
119+
- The `enable_logs` option was removed. Using Sentry's logging API now works without requiring setting `enable_logs=True`.
134120
- The `enable_metrics` option was removed.
135121
- The deprecated `@ai_track` decorator was removed.
136122
- The deprecated `push_scope` and `configure_scope` APIs have been removed. Use `with new_scope():` to push a new scope and `scope = get_current_scope()` to retrieve the current scope instead.

0 commit comments

Comments
 (0)