Skip to content

Commit ea97172

Browse files
committed
Document failed_request_status_codes option better
1 parent 5d6caaf commit ea97172

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/platforms/python/integrations/fastapi/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ You can pass the following keyword arguments to `StarletteIntegration()` and `Fa
134134

135135
A `set` of integers that will determine which status codes should be reported to Sentry.
136136

137+
The `failed_request_status_codes` option only controls whether [`HTTPException`](https://www.starlette.io/exceptions/#httpexception) exceptions should be
138+
reported to Sentry. Other unhandled exceptions, which do not have a `status_code` attribute, are always reported to Sentry.
139+
137140
Examples of valid `failed_request_status_codes`:
138141

139142
- `{500}` will only send events on HTTP 500.

docs/platforms/python/integrations/starlette/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ You can pass the following keyword arguments to `StarletteIntegration()`:
9191

9292
A `set` of integers that will determine which status codes should be reported to Sentry.
9393

94+
The `failed_request_status_codes` option only controls whether [`HTTPException`](https://www.starlette.io/exceptions/#httpexception) exceptions should be
95+
reported to Sentry. Other unhandled exceptions, which do not have a `status_code` attribute, are always reported to Sentry.
96+
9497
Examples of valid `failed_request_status_codes`:
9598

9699
- `{500}` will only send events on HTTP 500.

0 commit comments

Comments
 (0)