diff --git a/src/common/runtime/src/runtime.rs b/src/common/runtime/src/runtime.rs index aeba46f24f..cec201bc25 100644 --- a/src/common/runtime/src/runtime.rs +++ b/src/common/runtime/src/runtime.rs @@ -210,7 +210,7 @@ impl BuilderBuild for Builder { } #[cfg(tokio_unstable)] -pub fn register_collector(name: String, handle: &Handle) { +pub fn register_collector(name: String, handle: &tokio::runtime::Handle) { let name = name.replace("-", "_"); let monitor = tokio_metrics::RuntimeMonitor::new(handle); let collector = tokio_metrics_collector::RuntimeCollector::new(monitor, name);