diff --git a/docs/platforms/python/integrations/fastapi/index.mdx b/docs/platforms/python/integrations/fastapi/index.mdx index 4235e97c77f15..1f466ecb111d8 100644 --- a/docs/platforms/python/integrations/fastapi/index.mdx +++ b/docs/platforms/python/integrations/fastapi/index.mdx @@ -134,6 +134,9 @@ You can pass the following keyword arguments to `StarletteIntegration()` and `Fa A `set` of integers that will determine which status codes should be reported to Sentry. + The `failed_request_status_codes` option determines whether [`HTTPException`](https://fastapi.tiangolo.com/reference/exceptions/?h=httpexception) exceptions should be + reported to Sentry. Unhandled exceptions that don't have a `status_code` attribute will always be reported to Sentry. + Examples of valid `failed_request_status_codes`: - `{500}` will only send events on HTTP 500. diff --git a/docs/platforms/python/integrations/starlette/index.mdx b/docs/platforms/python/integrations/starlette/index.mdx index d370efa1f2dcc..396de6001989a 100644 --- a/docs/platforms/python/integrations/starlette/index.mdx +++ b/docs/platforms/python/integrations/starlette/index.mdx @@ -91,6 +91,9 @@ You can pass the following keyword arguments to `StarletteIntegration()`: A `set` of integers that will determine which status codes should be reported to Sentry. + The `failed_request_status_codes` option determines whether [`HTTPException`](https://www.starlette.io/exceptions/#httpexception) exceptions should be + reported to Sentry. Unhandled exceptions that don't have a `status_code` attribute will always be reported to Sentry. + Examples of valid `failed_request_status_codes`: - `{500}` will only send events on HTTP 500.