Skip to content

Commit 5cbb5d9

Browse files
authored
Remove duplicate OTEL meter for the Tokio runtime (#4473)
2 parents 79bf027 + dec4c03 commit 5cbb5d9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

crates/cli/src/telemetry/tokio.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ pub fn observe(metrics: RuntimeMetrics) {
4242
.build();
4343
}
4444

45-
{
46-
let metrics = metrics.clone();
47-
METER
48-
.u64_observable_gauge("tokio_runtime.global_queue_depth")
49-
.with_description(
50-
"The number of tasks currently scheduled in the runtime’s global queue",
51-
)
52-
.with_unit("{task}")
53-
.with_callback(move |instrument| {
54-
instrument.observe(
55-
metrics.global_queue_depth().try_into().unwrap_or(u64::MAX),
56-
&[],
57-
);
58-
})
59-
.build();
60-
}
61-
6245
#[cfg(tokio_unstable)]
6346
{
6447
let metrics = metrics.clone();

0 commit comments

Comments
 (0)