News for hackers. Stuff that matters.
Re:Migrating to OpenTelemetry by caust1c on Thursday November 16, 2023 @01:03PM (#38293056)
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.

Re:Migrating to OpenTelemetry by bhyolken on Thursday November 16, 2023 @01:58PM (#38293763)
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.
Re:Migrating to OpenTelemetry by caust1c on Thursday November 16, 2023 @02:06PM (#38293877)
Awesome! Great work and thanks for sharing your experience!