Skip to content

Don't capture client errors in Actix Web integration #876

@lcian

Description

@lcian

Due to this code path, when polling the future returns an error, we capture it only based on capture_server_errors.

This can happen, for example, when a middleware processes the request after ours, and returns a actix_web::error::Error.
The problem is that the middleware could be, for instance, an authentication middleware, that returns 401 (a client error).
We would capture this error because we don't check if it's a client or server error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingRustSDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions