Skip to content

Don't require to pass a registry on MetricsFactory initialization #98

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

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

fabianfett
Copy link
Member

Do not require users to explicitly pass a PrometheusCollectorRegistry on PrometheusMetricsFactory creation.

Comment on lines +27 to +28
/// The underlying ``PrometheusCollectorRegistry`` that is used to generate the swift-metrics handlers
public var registry: PrometheusCollectorRegistry
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want this to be public?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. It should! So that users can access what they got by default.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't mind I guess :)

@ktoso
Copy link
Collaborator

ktoso commented Sep 19, 2023

conflict but LGTM

# Conflicts:
#	Tests/PrometheusTests/PrometheusMetricsFactoryTests.swift
@fabianfett fabianfett force-pushed the ff-use-factory-singleton branch from 3577f9f to f36234d Compare September 19, 2023 06:42
@fabianfett fabianfett merged commit 26e2b29 into swift-server:main Sep 19, 2023
@fabianfett fabianfett deleted the ff-use-factory-singleton branch September 19, 2023 06:47
@fabianfett fabianfett added this to the 2.0 milestone Sep 25, 2023
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