This package implements a log flight recorder backend compatible with the logr interface. Please check the design document for more details
The package is used mostly in conjunction Kubernetes' klog in the kubernetes ecosystem, but is meant to be generic and working with any logr-based solution.
Let's borrow a great concise description from the go blog:
Suppose you work on a web service and an RPC took a very long time.
You couldn’t start tracing at the point you knew the RPC was already taking a while, because the root cause of the slow request already happened and wasn’t recorded.
[...]
The insight with flight recording is to have tracing on continuously and always keep the most recent trace data around, just in case.
Then, once something interesting happens, the program can just write out whatever it has!
This package wants to offer the same functionality but for logs, to enable (better) review, auditing, support of the program decisions.
This is a ALPHA grade implementation.
Apache v2