-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: add custom metrics, and an initial cache size metric #1254
Conversation
dbf75b0
to
8a22968
Compare
@@ -141,19 +131,14 @@ pub fn init_tracing(name: &str, tracing: Tracing) { | |||
INIT.call_once(init_no_tracing); | |||
} | |||
Tracing::Enabled => { | |||
init_otlp(name); | |||
init_otlp_tracing(name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
➕
@jcrossley3 fixed that annoying logs for actix-web-prom #335 without actix-web-prom we can remove that as well 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
let graph_cache = graph_cache.clone(); | ||
meter | ||
.u64_observable_gauge("cache_size") | ||
.with_callback(move |inst| inst.observe(graph_cache.size_used(), &[])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice.
Closes: #1255