Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

best practices to guard against add_fields panics #83

Open
zkourouma opened this issue Oct 25, 2024 · 0 comments
Open

best practices to guard against add_fields panics #83

zkourouma opened this issue Oct 25, 2024 · 0 comments

Comments

@zkourouma
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant