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

[draft] Rework metrics to use metrics crate #361

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Mar 15, 2025

This simplifies metrics a lot by using the metrics crate. The metrics crate functions similar to the log crate in that libraries just call counter!, gauge! or histogram! to record metrics, and the user of the library can decide where to send the metrics by installing an appropriate recorder/exporter.

TODO: track error by code&message like before. Track function calls by name and count. Rename static strings. Consider whether to always emit metrics

@ludfjig ludfjig marked this pull request as draft March 15, 2025 04:04
@ludfjig ludfjig changed the title Rework metrics to use metrics crate [draft] Rework metrics to use metrics crate Mar 15, 2025
@ludfjig ludfjig added kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. kind/bugfix For PRs that fix bugs kind/refactor For PRs that restructure or remove code without adding new functionality. kind/dependencies For PRs that update dependencies or related components and removed kind/bugfix For PRs that fix bugs kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. kind/refactor For PRs that restructure or remove code without adding new functionality. kind/dependencies For PRs that update dependencies or related components labels Mar 17, 2025
Signed-off-by: Ludvig Liljenberg <[email protected]>
@ludfjig ludfjig added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant