Skip to main content

Module trace_handler

Module trace_handler 

Source
Expand description

Trace processing pipeline

handle_traces is called once per batch of TraceObjects received from a connected node. It fans the batch out to every configured output:

  1. File logging โ€” writes each trace to the appropriate log file via LogWriter, one file per (node, logRoot, logFormat) triple.

  2. Journal logging โ€” on Unix/Linux, writes each trace to the systemd journal via /run/systemd/journal/socket using the native journal protocol. On non-Unix platforms JournalMode is silently skipped.

  3. Re-forwarding โ€” if a ReForwarder is configured, passes the (optionally namespace-filtered) batch on to the downstream forwarder.

Functionsยง

handle_traces
Process a batch of received TraceObjects for one node