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

Add missing call to label customization closure for meter #111

Merged

Conversation

simonjbeaumont
Copy link
Contributor

Motivation

The PrometheusMetricsFactory has a nameAndLabelSanitizer closure property to customize the name and labels used by callers of the Swift Metrics API. This wasn't being called in makeMeter.

Modifications

Call nameAndLabelSanitzer in makeMeter, like in the other factory methods.

Result

All factory methods use the customization closure, nameAndLabelSanitizer.

@ktoso
Copy link
Collaborator

ktoso commented Mar 7, 2024

@swift-server-bot test this please

@ktoso ktoso enabled auto-merge (squash) March 7, 2024 21:38
@ktoso ktoso added this to the 1.0.3 milestone Mar 7, 2024
@ktoso ktoso merged commit 5cd1a0f into swift-server:main Mar 8, 2024
5 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.

None yet

3 participants