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

fix: correct exemplar formating #556

Merged
merged 2 commits into from
Mar 13, 2023
Merged

Conversation

voltbit
Copy link
Contributor

@voltbit voltbit commented Mar 12, 2023

Fix exemplar formating

  • Fixed improper formating of exemplars
  • Added snapshot test for exemplars

Fixes #554

@voltbit voltbit changed the base branch from master to next March 12, 2023 21:42
@voltbit voltbit force-pushed the improve-exemplars-tests branch 2 times, most recently from b010e69 to 2769d58 Compare March 12, 2023 22:10
@voltbit voltbit changed the title Add snapshot for exemplar tests Fix exemplar formating Mar 12, 2023
@voltbit voltbit changed the title Fix exemplar formating fix: correct exemplar formating Mar 12, 2023
lib/registry.js Outdated
Comment on lines 61 to 62
fullMetricLine = `${metricName}${labelsString} ${getValueAsString(
val.value,
)}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: why did you declare it above? Should be fine to just let fullMetricLine = ... here.

- Fixed improper formating of exemplars
- Added snapshot test for exemplars
Copy link
Collaborator

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

wonderful, thanks!

@SimenB SimenB merged commit 3742508 into siimon:next Mar 13, 2023
SimenB pushed a commit that referenced this pull request Mar 13, 2023
@SimenB
Copy link
Collaborator

SimenB commented Mar 13, 2023

I cherry-picked this onto master via 4a800f4. I think I applied the diff correctly 😅

@voltbit voltbit deleted the improve-exemplars-tests branch March 13, 2023 08:45
@voltbit
Copy link
Contributor Author

voltbit commented Mar 13, 2023

It looks good, thanks!

This pull request was closed.
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