Skip to content

Commit dba0bc7

Browse files
committed
feat!(init-tracing-opentelemetry): no longer enable otel=debug in log
1 parent 0c57a9f commit dba0bc7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.mise.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[env]
22
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = "http://127.0.0.1:4317"
3-
# OTEL_EXPORTER_OTLP_TRACES_PROTOCOL = "grpc"
3+
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL = "grpc"
44
OTEL_TRACES_SAMPLER = "always_on"
55
# RUSTC_WRAPPER = "sccache"
66
# RUST_WITHOUT = "rust-docs"
77
ASDF_RUST_PROFILE = "minimal"
8+
# RUST_LOG = "warn,otel::setup=debug"
89

910
[tools]
1011
rust = '1.80.0'

init-tracing-opentelemetry/src/tracing_subscriber_ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ pub fn build_loglevel_filter_layer() -> tracing_subscriber::filter::EnvFilter {
5050
"RUST_LOG",
5151
format!(
5252
// `otel::tracing` should be a level info to emit opentelemetry trace & span
53-
// `otel::setup` set to debug to log detected resources, configuration read and infered
54-
"{},otel::tracing=trace,otel=debug",
53+
// `otel::setup` set to debug to log detected resources, configuration read
54+
"{},otel::tracing=trace",
5555
std::env::var("RUST_LOG")
5656
.or_else(|_| std::env::var("OTEL_LOG_LEVEL"))
5757
.unwrap_or_else(|_| "info".to_string())

0 commit comments

Comments
 (0)