Skip to content
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

Implement "Prometheus mode" for better micrometer->OTel->Prometheus support #5537

Merged

Conversation

mateuszrzeszutek
Copy link
Member

This is another part of the solution to #5292. It does not completely fix that issue, there are still two problems remaining:

  • Micrometer histogram buckets should be translated into hints, once the metric hint API is available. For now, users will have to configure SDK views to get their desired buckets.
  • LongTaskTimer does not really match any OTel instrument well - we're not using an OTel histogram for it (because OTel histogram is for finished records, while this one is supposed to show the ones still inflight). This one instrument would benefit from Bogdan's MetricProducer idea, but that's almost impossible to implement as javaagent instrumentation. I don't really have any good idea on how to handle that, so for now we'll have to accept that it's not a perfect shim.

I'll copy that PR over to the SDK repo once open-telemetry/opentelemetry-java#4258 is merged.

@mateuszrzeszutek mateuszrzeszutek requested a review from a team March 10, 2022 11:59
@mateuszrzeszutek mateuszrzeszutek merged commit ab587a9 into open-telemetry:main Mar 18, 2022
@mateuszrzeszutek mateuszrzeszutek deleted the prometheus-mode branch March 18, 2022 12:03
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…upport (open-telemetry#5537)

* Implement "Prometheus mode" for better micrometer->OTel->Prometheus support

* code review comments

* forgot about README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants