3 ms·
Sorry in advance for shoehorning Rust into a separate conversation... The new meta in Rust is to lift out loggers and replace the concept with tracing. There i
by fnord123 5y ago
Sorry in advance for shoehorning Rust into a separate conversation...
The new meta in Rust is to lift out loggers and replace the concept with tracing. There is a `tracing` package where you can setup spans like in OpenTelemetry but it also supports the logger macros so you can attach log messages to the spans.
To consume this you add a subscriber configured at server startup to send structured logging to a Json logger, or ship them to a Jaeger endpoint. Or sentry, as suggested in the article.
https://www.lpalmieri.com/posts/2020-09-27-zero-to-production-4-are-we-observable-yet/ https://www.lpalmieri.com/posts/2020-09-27-zero-to-productio...