Skip to content

Commit acb7d36

Browse files
authored
feat(python): Add enable_logs, before_send_log to 3.x migration guide (#14512)
We'll be changing this in 3.0, adding to migration guide.
1 parent 5b3f314 commit acb7d36

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/platforms/python/migration/2.x-to-3.x.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ The `profiles_sample_rate` and `profiler_mode` options previously nested under `
5757
)
5858
```
5959

60+
The `enable_logs` and `before_send_log` options previously nested under `_experiments` have been removed. They're replaced by top-level options of the same name:
61+
62+
```python diff
63+
64+
def my_before_send_log(log, hint):
65+
...
66+
67+
sentry_sdk.init(
68+
- _experiments={
69+
- "enable_logs": True,
70+
- "before_send_log": my_before_send_log,
71+
- },
72+
+ enable_logs=True,
73+
+ before_send_log=my_before_send_log,
74+
)
75+
```
76+
6077
## API Changes
6178

6279
`add_attachment()` is now a part of the top-level level API and should be imported and used directly from `sentry_sdk`.

0 commit comments

Comments
 (0)