cloudflare / cloudflare/foundations

best practices to guard against add_fields panics

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.7k
Forks
133
Avg merge
1d 5h
Merged PRs (30d)
11

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.