Skip to content

best practices to guard against add_fields panics #83

@zkourouma

Description

@zkourouma

we've run into issues using add_fields in different API contexts because we want to be able to set high level request context for logs deep in the call stack (vs passing down values or setting up convoluted error catching). we've added a forked_log middleware to our axum http router and our grpc service. is there any tooling or practices for protecting against using add_fields too many times outside of a forked telemetry logger?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions