You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this might be tricky since we don't alert based on status codes in some frameworks, but rather internal exceptions happening in request handlers.
Failed request status codes
failed_request_status_codes is a list of status code ranges, where a status code range is one of:
single number
a sequence with a __contains__ method (so that we can check whether a code is in the sequence with in)
The following are examples of valid failed_request_status_codes:
[500]
[403, range(500, 599)]
[{500, 501, 502, 503}]
The text was updated successfully, but these errors were encountered:
Note that this might be tricky since we don't alert based on status codes in some frameworks, but rather internal exceptions happening in request handlers.
We will first implement this feature for any frameworks where we do alert based on status codes, before moving onto frameworks where we capture the exceptions
We started supporting
failed_request_status_code
for Starlette/FastAPI in #3008. We should add the option to other web frameworks as well.failed_request_status_codes
#3535failed_request_status_codes
#3576Note that this might be tricky since we don't alert based on status codes in some frameworks, but rather internal exceptions happening in request handlers.
Failed request status codes
failed_request_status_codes
is a list of status code ranges, where a status code range is one of:__contains__
method (so that we can check whether a code is in the sequence within
)The following are examples of valid
failed_request_status_codes
:[500]
[403, range(500, 599)]
[{500, 501, 502, 503}]
The text was updated successfully, but these errors were encountered: