Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions crates/cli/src/telemetry/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,6 @@ pub fn observe(metrics: RuntimeMetrics) {
.build();
}

{
let metrics = metrics.clone();
METER
.u64_observable_gauge("tokio_runtime.global_queue_depth")
.with_description(
"The number of tasks currently scheduled in the runtime’s global queue",
)
.with_unit("{task}")
.with_callback(move |instrument| {
instrument.observe(
metrics.global_queue_depth().try_into().unwrap_or(u64::MAX),
&[],
);
})
.build();
}

#[cfg(tokio_unstable)]
{
let metrics = metrics.clone();
Expand Down
Loading