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
{{ message }}
Repository navigation
HTTP 409 responses get the invalid_argument span status in the Actix and Tower integrations #1352
sentry-actix and sentry-tower (with the http feature), current master (0.49.3).
Steps to reproduce
Use sentry_actix::Sentry or sentry_tower::SentryHttpLayer with transactions enabled.
Return a 409 Conflict response from a handler.
Expected result
The transaction's span status is already_exists, which is what the StatusCode::CONFLICT => SpanStatus::AlreadyExists arm in map_status intends.
Actual result
The span status is invalid_argument. In both sentry-actix/src/lib.rs and sentry-tower/src/http.rs, the CONFLICT arm comes after the status if status.is_client_error() guard, so the guard matches 409 first and the CONFLICT arm is unreachable:
status if status.is_client_error() => protocol::SpanStatus::InvalidArgument,// ...StatusCode::CONFLICT => protocol::SpanStatus::AlreadyExists,
Activity
linear-code commentedon Oct 18, 2026
RUST-290
fix: Map 409 Conflict responses to `already_exists` span status (#1353)