Skip to content

k8stopologyawareschedwg/logtracr

Repository files navigation

Logtracr: a go-logr flight recorder backend

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.

What is a log flight recorder

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.

Maturity

This is a ALPHA grade implementation.

LICENSE

Apache v2

About

logtracr is a log flight record backend compatible with logr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages