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

Avoid exemplar labels such as {} #3266

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Avoid exemplar labels such as {} #3266

merged 1 commit into from
Aug 16, 2021

Conversation

tjquinno
Copy link
Member

Resolves #3230

There can be cases in which a tracing span context exists but returns an empty label/trace ID.

In such cases, Helidon would create an exemplar with labels {} (normally they look like {trace_id="xyz"} and that would cause errors in Prometheus.

This PR detects when none of the exemplar services (only tracing provides them currently) delivers a non-empty label, and in that case suppresses the empty label expression.

Signed-off-by: tim.quinn@oracle.com tim.quinn@oracle.com

…empty string instead

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
@tjquinno tjquinno self-assigned this Aug 12, 2021
@tjquinno tjquinno merged commit 27a3bfb into helidon-io:master Aug 16, 2021
@tjquinno tjquinno deleted the exemplar-bug branch August 16, 2021 17:43
tjquinno added a commit that referenced this pull request Aug 17, 2021
…empty string instead (#3266) (#3281)

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
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.

exemplar use causes unexpected "MNAME" error from prometheus
2 participants