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

Reinstate exemplar support #7760

Merged
merged 4 commits into from
Oct 10, 2023
Merged

Reinstate exemplar support #7760

merged 4 commits into from
Oct 10, 2023

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Oct 9, 2023

Description

Resolves #7721

In 3.x, Helidon metrics implemented exemplars itself.

In 4.x, we rely on the exemplar support in the Micrometer Prometheus meter registry. We "simply" need to provide a way to obtain the span and trace identification when the Prometheus meter registry wants it, which we do using Contexts which, if tracing is present, contains the span context.

I also revised the example which shows exemplar support slightly to re-enable a disabled test (after fixing a few problems).

Users do nothing different to enable exemplar support; the details are all in our code.

Documentation

Updates are part of this PR.

@tjquinno tjquinno self-assigned this Oct 9, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 9, 2023
@tjquinno tjquinno linked an issue Oct 9, 2023 that may be closed by this pull request
@tjquinno tjquinno requested a review from ljamen October 9, 2023 22:38
Copy link
Member

@barchetta barchetta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tjquinno tjquinno merged commit f520cef into helidon-io:main Oct 10, 2023
12 checks passed
@tjquinno tjquinno deleted the 4.x-exemplars branch October 10, 2023 17:32
dalexandrov pushed a commit to dalexandrov/helidon that referenced this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x Reinstate exemplar support for metrics
2 participants