chore: fix misleading metric description and method name for access control metrics
This commit is contained in:
parent
2f715c3136
commit
bd3e5acd86
|
|
@ -136,7 +136,7 @@ impl Adapter for PgAdapter {
|
||||||
|
|
||||||
self
|
self
|
||||||
.access_control_metrics
|
.access_control_metrics
|
||||||
.record_load_all_policies_in_secs(start.elapsed().as_millis() as u64);
|
.record_load_all_policies_in_ms(start.elapsed().as_millis() as u64);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ impl AccessControlMetrics {
|
||||||
let realtime_registry = registry.sub_registry_with_prefix("ac");
|
let realtime_registry = registry.sub_registry_with_prefix("ac");
|
||||||
realtime_registry.register(
|
realtime_registry.register(
|
||||||
"load_all_polices",
|
"load_all_polices",
|
||||||
"load all polices when server start duration in seconds",
|
"load all polices when server start duration in milliseconds",
|
||||||
metrics.load_all_policies.clone(),
|
metrics.load_all_policies.clone(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ impl AccessControlMetrics {
|
||||||
metrics
|
metrics
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn record_load_all_policies_in_secs(&self, millis: u64) {
|
pub fn record_load_all_policies_in_ms(&self, millis: u64) {
|
||||||
self.load_all_policies.set(millis as i64);
|
self.load_all_policies.set(millis as i64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue