mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-11 10:23:17 +08:00
This commit adds a small log handler that reads the trace id out of the context, if present, and includes it as a log attribute. Addionally, ateom is integrated with tracing (although it has no exporter because it has no network connectivity). This allows easy correlation of logs from a single parent request across ate-api-server, atelet, and ateom. I have also fixed the potential for log tearing from the ateom runsc log exporter by having it reuse the same slog.Handler as the main program.