TimelessPhoenix.LoggerPropagator (timeless_phoenix v1.5.12)

Copy Markdown View Source

Propagates OpenTelemetry trace context into Elixir Logger metadata.

Attaches a Telemetry handler to Phoenix lifecycle events that reads the current OTel span context and sets trace_id and span_id as Logger metadata. This means any Logger.info/warning/error call during a Phoenix request will automatically include these fields, enabling cross-signal linking between logs and traces.

Summary

Functions

attach()

handle_event(event, measurements, metadata, config)