improve code

This commit is contained in:
houseme
2025-04-25 13:35:03 +08:00
parent 7926ac015a
commit 7dae5f8ab7
+2
View File
@@ -238,8 +238,10 @@ pub fn init_telemetry(config: &OtelConfig) -> OtelGuard {
// configure the formatting layer
let enable_color = std::io::stdout().is_terminal();
let fmt_layer = tracing_subscriber::fmt::layer()
.with_target(true)
.with_ansi(enable_color)
.with_thread_names(true)
.with_thread_ids(true)
.with_file(true)
.with_line_number(true)
.with_filter(