Skip to content

fix: correct exemplar formating#556

Merged
SimenB merged 2 commits intosiimon:nextfrom
voltbit:improve-exemplars-tests
Mar 13, 2023
Merged

fix: correct exemplar formating#556
SimenB merged 2 commits intosiimon:nextfrom
voltbit:improve-exemplars-tests

Conversation

@voltbit
Copy link
Copy Markdown
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
@voltbit voltbit force-pushed the improve-exemplars-tests branch from 2769d58 to be89066 Compare March 12, 2023 22:19
lib/registry.js Outdated
Comment on lines +61 to +62
fullMetricLine = `${metricName}${labelsString} ${getValueAsString(
val.value,
)}`;
Copy link
Copy Markdown
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
@voltbit voltbit force-pushed the improve-exemplars-tests branch from be89066 to 35d9295 Compare March 12, 2023 22:27
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

voltbit commented Mar 13, 2023

It looks good, thanks!

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