zio / zio-telemetry

ZIO-powered OpenTelemetry library
https://zio.dev/zio-telemetry
Apache License 2.0
113 stars 55 forks source link

Use zio-theseus as a reference to integrate zio-opentelemetry with a doobie, kafka, grpc, etc. #815

Open grouzen opened 7 months ago

grouzen commented 7 months ago

The library: https://github.com/pierangeloc/zio-theseus

Related issues:

grouzen commented 7 months ago

I think the basic idea is to have a separate module for each integration, for example:

Update: I adjusted the module names.

pierangelocecchetto commented 7 months ago

I'll pick this up and move zio-theseus content into separate modules. There will be also a base common module containing the integration algebra

grouzen commented 7 months ago

Great! Thanks for your help! Feel free to create several smaller PRs instead of one big. This is gonna be a huge accomplishment in terms of user experience.

grouzen commented 6 months ago

@pierangelocecchetto Hi! Hope you're doing well! I just wanted to say that I'll be happy to help with any questions you have or pair on something if you need this.

pierangeloc commented 6 months ago

@grouzen I just resumed working on this recently, I think I'll make some progress in these days. One thing I might need help with is using Grafana Tempo/Loki, or the recently release Alloy https://github.com/grafana/alloy/. In particular I'm interested in showing the correlation between logs and spans/traces.

Thanks for offering your help, I'll contact you on Discord to evaluate the options

grouzen commented 6 months ago

In particular I'm interested in showing the correlation between logs and spans/traces.

I also evaluated different options for this and ended up using OTLP JSON logging reporters in the examples for the sake of simplicity. But I agree that it would be great to use graphical representation.

grouzen commented 1 month ago

@pierangeloc Hi! I just want to let you know that I'm ready to cut a "3.0.0" release of zio-telemetry and am keen to start working on integrations with libraries from ZIO and typelevel ecosystem. I'll have a look at your library for inspiration. Thanks for it!

grouzen commented 3 weeks ago

There is ongoing work on adding support for OpenTracing and OpenTelemetry into zio-kafka: https://github.com/zio/zio-kafka/pull/1345