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
+1-15Lines changed: 1 addition & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,21 +116,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
116
116
- Removed the RedisIntegration `max_data_size` option.
117
117
- Removed the possibility to supply a specific client to the LaunchDarklyIntegration.
118
118
- 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`.
134
120
- The `enable_metrics` option was removed.
135
121
- The deprecated `@ai_track` decorator was removed.
136
122
- 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