Skip to content

Commit 6dba431

Browse files
committed
Add workspace_filter to telemetry layer to exclude libp2p traces.
1 parent c1a50bb commit 6dba431

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lighthouse/src/main.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ fn run<E: EthSpec>(
652652
logging_layers.push(
653653
file_logging_layer
654654
.with_filter(logger_config.logfile_debug_level)
655-
.with_filter(workspace_filter)
655+
.with_filter(workspace_filter.clone())
656656
.boxed(),
657657
);
658658
}
@@ -692,7 +692,11 @@ fn run<E: EthSpec>(
692692
.build();
693693

694694
let tracer = provider.tracer("lighthouse");
695-
Ok::<_, String>(tracing_opentelemetry::layer().with_tracer(tracer))
695+
Ok::<_, String>(
696+
tracing_opentelemetry::layer()
697+
.with_tracer(tracer)
698+
.with_filter(workspace_filter),
699+
)
696700
})?;
697701

698702
logging_layers.push(telemetry_layer.boxed());

0 commit comments

Comments
 (0)