zio / zio-telemetry

ZIO-powered OpenTelemetry library
https://zio.dev/zio-telemetry
Apache License 2.0
110 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 4 months ago

grouzen commented 4 months ago

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

Related issues:

grouzen commented 4 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 4 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 4 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 3 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 3 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 3 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.