chore(rust): set opentelemetry to INFO (#9146)

This is currently spammy on DEBUG for all platforms where we don't
collect metrics.
This commit is contained in:
Thomas Eizinger
2025-05-15 10:23:01 +10:00
committed by GitHub
parent 28283a82c4
commit 14cabafa6a

View File

@@ -94,7 +94,7 @@ fn parse_filter(directives: &str) -> Result<EnvFilter, ParseError> {
/// By prepending this directive to the active log filter, a simple directive like `debug` actually produces useful logs.
/// If necessary, you can still activate logs from these crates by restating them in your directive with a lower filter, i.e. `netlink_proto=debug`.
const IRRELEVANT_CRATES: &str =
"netlink_proto=warn,os_info=warn,rustls=warn,opentelemetry_sdk=info";
"netlink_proto=warn,os_info=warn,rustls=warn,opentelemetry_sdk=info,opentelemetry=info";
let env_filter = if directives.is_empty() {
EnvFilter::try_new(IRRELEVANT_CRATES)?