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
Set level based on status code for HTTP client breadcrumbs (#4004)
- add logic to `maybe_create_breadcrumbs_from_span` to set the `level`
of the breadcrumb to `warning` for the client error range (4xx) and to
`error` for server errors (5xx)
- add functionality to the simple HTTP server that we use in some tests
to respond with a specific error code
- we were (and are) still "using" `responses` in multiple places, but
they're not actually active (the `activate` decorator is missing) and
we're making actual requests outside -- we should clean this up
- we also can't use `responses` for stdlib/requests tests since they
patch something that we patch
- add `httpx`, `stdlib`, `requests`, `aiohttp` tests for the new
behavior
- restrict the `requests` tests to 3.7+ since in 3.6, the span is
finished before the HTTP status is set for some reason...
Closes#4000
0 commit comments