foundations icon indicating copy to clipboard operation
foundations copied to clipboard

Add option to collect log lines emitted in traced contexts in span logs

Open LloydW93 opened this issue 7 months ago • 1 comments

Example use case:

An HTTP service, for which some requests are sampled through distributed tracing, whilst its syslogs are sampled/rate limited in collection - so for a traced request with a failure, it's possible the log information from that error has been dropped, or if it is, exists in some separate system.

Instead, as foundations already provides both a logging and tracing module, the logging module could be configurable to additionally send log entries over to the tracing module. Unlike other drains and pipelines, this would not be heavily filtered and sampled - so the logs that are most useful for the requests we have traced information for are the ones we know we will have retained, right where we need to see them.

LloydW93 avatar Jul 30 '24 16:07 LloydW93