Skip to content

Commit 7063a1a

Browse files
committed
.
1 parent 2d67d71 commit 7063a1a

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

docs/platforms/python/configuration/options.mdx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Please note that the Sentry server [limits HTTP request body size](https://devel
176176

177177
The number of characters after which the values containing text in the event payload will be truncated.
178178

179-
In SDK versions prior to 2.34.0, the default was 1024.
179+
In SDK versions prior to `2.34.0`, the default was `1024`.
180180

181181
</SdkOption>
182182

@@ -412,3 +412,27 @@ In `trace` mode, the profiler starts and stops automatically based on active spa
412412
A number between `0` and `1`, controlling the percentage chance a given session will be profiled. The sampling decision is evaluated only once at SDK initialization.
413413

414414
</SdkOption>
415+
416+
417+
## Logs Options
418+
419+
<SdkOption name="enable_logs" type='bool' defaultValue='False'>
420+
421+
Enables Sentry structured logs, allowing you to use the `sentry_sdk.logger` APIs
422+
to send logs to Sentry. This option being `True` is also the prerequisite for
423+
automatic capturing of logs from the standard library `logging` module or other
424+
logging integrations.
425+
426+
New in SDK version `2.35.0`. Prior to `2.35.0`, this option was experimental.
427+
428+
</SdkOption>
429+
430+
<SdkOption name="before_send_log" type='Optional[Callable[Log, Hint] -> Optional[Log]]' defaultValue='None'>
431+
432+
A function that will be called for each log. It can be used to modify the log
433+
before it's sent to Sentry or to filter specific logs out altogether (if it returns
434+
`None`).
435+
436+
New in SDK version `2.35.0`. Prior to `2.35.0`, this option was experimental.
437+
438+
</SdkOption>

0 commit comments

Comments
 (0)