Skip to content

Commit 0c84172

Browse files
authored
feat(tracing): set default OTLP log level to WARN (paradigmxyz#19283)
1 parent 25f0d89 commit 0c84172

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

crates/tracing/src/layers.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ pub type FileWorkerGuard = tracing_appender::non_blocking::WorkerGuard;
2121
/// A boxed tracing [Layer].
2222
pub(crate) type BoxedLayer<S> = Box<dyn Layer<S> + Send + Sync>;
2323

24-
/// Default [directives](Directive) for [`EnvFilter`] which disable high-frequency debug logs from
25-
/// dependencies such as `hyper`, `hickory-resolver`, `hickory_proto`, `discv5`, `jsonrpsee-server`,
26-
/// the `opentelemetry_*` crates, and `hyper_util::client::legacy::pool`.
24+
/// Default [directives](Directive) for [`EnvFilter`] which:
25+
/// 1. Disable high-frequency debug logs from dependencies such as `hyper`, `hickory-resolver`,
26+
/// `hickory_proto`, `discv5`, `jsonrpsee-server`, and `hyper_util::client::legacy::pool`.
27+
/// 2. Set `opentelemetry_*` crates log level to `WARN`, as `DEBUG` is too noisy.
2728
const DEFAULT_ENV_FILTER_DIRECTIVES: [&str; 9] = [
2829
"hyper::proto::h1=off",
2930
"hickory_resolver=off",
3031
"hickory_proto=off",
3132
"discv5=off",
3233
"jsonrpsee-server=off",
33-
"opentelemetry-otlp=off",
34-
"opentelemetry_sdk=off",
35-
"opentelemetry-http=off",
34+
"opentelemetry-otlp=warn",
35+
"opentelemetry_sdk=warn",
36+
"opentelemetry-http=warn",
3637
"hyper_util::client::legacy::pool=off",
3738
];
3839

0 commit comments

Comments
 (0)