ruby-kafka icon indicating copy to clipboard operation
ruby-kafka copied to clipboard

Support Reporting Metrics to OpenTelemetry

Open gfonseca-tc opened this issue 3 years ago • 4 comments

Since OpenTelemetry is being widely adopted it makes sense to support exporting the metrics in OTel format. I'm not really sure how much work that it, but I'm willing to get this issue to solve, if someone can provide me some guidance.

gfonseca-tc avatar Dec 14 '21 14:12 gfonseca-tc

I believe that this is already supported via one of the OpenTelemetry gems: https://github.com/open-telemetry/opentelemetry-ruby/tree/4a0d233c663d7ae1c02ed649a2958ebf47b63cb1/instrumentation/ruby_kafka

tjwp avatar Dec 14 '21 14:12 tjwp

That's great to hear! I will give a try. Thank you for your prompt response!

gfonseca-tc avatar Dec 14 '21 14:12 gfonseca-tc

Hey @tjwp, it seems to be only for traces, or at least I've not seen anything else in the code. According to this doc metrics for ruby is not implemented yet. Do you think it makes sense to implement that there?

gfonseca-tc avatar Dec 14 '21 14:12 gfonseca-tc

You can look at the included Datadog metrics reporter and clone that for OT. I don't think OT is yet at a level where I can make it the only metrics reporter and remove the indirection that's currently put in place.

dasch avatar Dec 27 '21 12:12 dasch

Issue has been marked as stale due to a lack of activity.

github-actions[bot] avatar Jun 17 '23 00:06 github-actions[bot]