Skip to content

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
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