feat(tvix/tracing): filter indicatif.pb_show fields in all cases
Change-Id: I688cec79cefeae340872945c35743fae892cd053 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12688 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: yuka <yuka@yuka.dev> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
7dd895c258
commit
3695f57d84
1 changed files with 7 additions and 1 deletions
|
@ -2,7 +2,9 @@ use indicatif::ProgressStyle;
|
|||
use std::sync::LazyLock;
|
||||
use tokio::sync::{mpsc, oneshot};
|
||||
use tracing::Level;
|
||||
use tracing_indicatif::{filter::IndicatifFilter, writer, IndicatifLayer, IndicatifWriter};
|
||||
use tracing_indicatif::{
|
||||
filter::IndicatifFilter, util::FilteredFormatFields, writer, IndicatifLayer, IndicatifWriter,
|
||||
};
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilter, Layer};
|
||||
|
||||
#[cfg(feature = "otlp")]
|
||||
|
@ -205,6 +207,10 @@ impl TracingBuilder {
|
|||
)
|
||||
.with(
|
||||
tracing_subscriber::fmt::Layer::new()
|
||||
.fmt_fields(FilteredFormatFields::new(
|
||||
tracing_subscriber::fmt::format::DefaultFields::new(),
|
||||
|field| field.name() != "indicatif.pb_show",
|
||||
))
|
||||
.with_writer(indicatif_layer.get_stderr_writer())
|
||||
.compact(),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue