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

Move core metrics registration into a new metriken-core crate #96

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

swlynch99
Copy link
Contributor

Part of the issue with how metriken is designed is that there can only be a single copy of metriken within the whole dependency tree. This is not great since it makes a major version update rather painful.

The solution I am adding here is to extract the core trait and linker shenanigans into a separate metriken-core crate. The goal here is that the metriken-core crate will never have a major version bump while the metriken crate can have new versions when necessary.

To further that goal, I have made sure that the metriken-core API exposes no types from any other crate.

Part of the issue with how metriken is designed is that there can only
be a single copy of metriken within the whole dependency tree. This is
not great since it makes a major version update rather painful.

The solution I am adding here is to extract the core trait and linker
shenanigans into a separate metriken-core crate. The goal here is that
the metriken-core crate will never have a major version bump while the
metriken crate can have new versions when necessary.

To further that goal, I have made sure that the metriken-core API exposes
no types from any other crate.
@swlynch99 swlynch99 requested a review from brayniac January 17, 2024 21:27
@swlynch99 swlynch99 merged commit 8b39b4c into pelikan-io:main Jan 17, 2024
15 checks passed
@swlynch99 swlynch99 deleted the metriken-core branch January 17, 2024 22:30
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