Skip to content

Bad interaction with tracing-error #36

@asonix

Description

@asonix

Hey, I'm encountering an issue when trying to integrate tracing-error into my code with actix-web-tracing. Since my error types are now capturing span information, which it accesses in the impl Display, when actix-web-tracing goes to log the error, both the error and the middleware are accessing span information simultaneously, and it's causing a panic with rwlock read lock would result in deadlock

I don't really know what to do about this other than "not use tracing-error" which would be a shame

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions