-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attach openTelemetry metrics to zio.metric.Histogram #423
Comments
What's described in the proposal won't work due to the following:
It doesn't make sense due to the fact we will need to call .record
If we want to instrument the Metric.histogram() method, we don't have a way of passing the histogram.Boundaries to the HistogramConfigurer (it will be already invoked). That problem could be mitigated with passing a proper config during agent startup that would allow users defining the boundaries for otel instruments. This however is not good user experience. I'm currently looking for ways of attaching the synchronous histogram not to the histogram constructor but to the update function (otel's "record" equivalent). |
Proposal Link with code snippets on how to do that (see Part 2): here
ZIO defines Histograms internally (eg fibersStarted up/down counter). Similarily to Gauges and Counters we should collect histogram data. The caveat is that there is no async version of a histogram in opentelemetry yet, so periodic collection has to be implemented too (see proposal).
Goals:
NON-goals:
The text was updated successfully, but these errors were encountered: