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

Include metric name in exception message #131

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

vlahanas
Copy link
Contributor

The method escapeAllLabels throws a runtime exception when labels of a metric cannot be combined. However, this exception lacks a very important piece of information, the name of the metric that caused the error to happen.

@vlahanas vlahanas force-pushed the include-metric-name-in-exception branch 2 times, most recently from f6cd682 to 265dd43 Compare October 11, 2023 12:51
Add metric name in the runtime exception message which is thrown when escapeAllLabels fails to combine labels.

Signed-off-by: vlahanas <v.lahanas@ferryhopper.com>
@vlahanas vlahanas force-pushed the include-metric-name-in-exception branch from 265dd43 to aa31cc0 Compare October 11, 2023 12:54
Copy link
Member

@LKaemmerling LKaemmerling left a comment

Choose a reason for hiding this comment

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

Good idea! Thank you!

@LKaemmerling LKaemmerling merged commit 7e70ceb into PromPHP:main Nov 24, 2023
31 checks passed
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.

2 participants