Hacker News new | ask | show | jobs
by caust1c 946 days ago
Curious about the code implemented for logs! Hopefully that's something that can be shared at some point. Also curious if it integrates with `log/slog` :-)

Congrats too! As I understand it from stories I've heard from others, migrating to OTel is no easy undertaking.

1 comments

Thanks! For logs, we actually use github.com/segmentio/events and just implemented a handler for that library that batches logs and periodically flushes them out to our collector using the underlying protocol buffer interface. We plan on migrating to log/slog soon, and once we do that we'll adapt our handler and can share the code.
Awesome! Great work and thanks for sharing your experience!