diff --git a/Cargo.lock b/Cargo.lock index 567f993c3813..6c7e56398e4b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2351,6 +2351,8 @@ dependencies = [ "snafu 0.8.5", "tempfile", "tokio", + "tokio-metrics", + "tokio-metrics-collector", "tokio-test", "tokio-util", ] @@ -12619,9 +12621,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.40.0" +version = "1.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" dependencies = [ "backtrace", "bytes", @@ -12657,6 +12659,31 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "tokio-metrics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eace09241d62c98b7eeb1107d4c5c64ca3bd7da92e8c218c153ab3a78f9be112" +dependencies = [ + "futures-util", + "pin-project-lite", + "tokio", + "tokio-stream", +] + +[[package]] +name = "tokio-metrics-collector" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8092b7a97ed5dac2f44892db190eca8f476ede0fa585bc87664de4151cd0b64" +dependencies = [ + "lazy_static", + "parking_lot 0.12.3", + "prometheus", + "tokio", + "tokio-metrics", +] + [[package]] name = "tokio-postgres" version = "0.7.12" diff --git a/src/common/runtime/Cargo.toml b/src/common/runtime/Cargo.toml index 7a12a03ba9cd..7540b03197cb 100644 --- a/src/common/runtime/Cargo.toml +++ b/src/common/runtime/Cargo.toml @@ -39,3 +39,7 @@ tokio-util.workspace = true [dev-dependencies] tokio-test = "0.4" + +[target.'cfg(tokio_unstable)'.dependencies] +tokio-metrics = { version = "0.3" } +tokio-metrics-collector = { version = "0.2" }