Problem
Stdout logs are lost if a container restarts or if the host disk rotates logs. To properly analyze system behavior, logs should be treated as a first-class telemetry signal, just like traces.
Proposed Solution
- Add support for an OTLP log exporter (using a library like slogotel).
- Configure the application to fan-out logs: stdout for local development and OTLP for the SigNoz Collector in production.
- For local development, use slog-multi to provide a "pretty-print" (non-JSON) format for humans while maintaining JSON for machines.
Alternatives Considered
None
Additional Context
None
Problem
Stdout logs are lost if a container restarts or if the host disk rotates logs. To properly analyze system behavior, logs should be treated as a first-class telemetry signal, just like traces.
Proposed Solution
Alternatives Considered
None
Additional Context
None