forked from apache/opendal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow using
prometheus-client
crate with PrometheusClientLayer (
apache#3134) * refactor prometheus layer * add prometheus-client to deps * chore: simplify imports * refactor the metrics into a trait * feat: add implementation with prometheus-client * fix: allow using different trait * cargo fmt * refactor: add a seperate layer * fix: docs * fix typo * fix: cargo fmt * add a prefix * use structed labels * use labels in array * remove the unused metrics * rename stats to metrics * record request duration in wrapper * fix fmt
- Loading branch information
1 parent
f846b6a
commit 30de95e
Showing
4 changed files
with
714 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.