Skip to content

Commit cb64799

Browse files
feat(python): Document trace_ignore_status_codes option
1 parent 38382a6 commit cb64799

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/platforms/python/configuration/options.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,16 @@ The threshold in milliseconds for adding the source location to database queries
409409

410410
</SdkOption>
411411

412+
<SdkOption name="trace_ignore_status_codes" type='bool' defaultValue='frozenset()'>
413+
414+
An optional property that disables tracing for HTTP requests with certain status codes.
415+
416+
Requests are not traced if the status code is contained in the provided set.
417+
418+
If `trace_ignore_status_codes` is not provided, requests with any status code may be traced.
419+
420+
</SdkOption>
421+
412422
<SdkOption name="custom_repr" type='function' defaultValue='None'>
413423

414424
A custom [repr](https://docs.python.org/3/library/functions.html#repr) function to run while serializing an object. Use this to control how your custom objects and classes are visible in Sentry.

0 commit comments

Comments
 (0)