Skip to content

Commit

Permalink
fix: change log span formatting event to 'ACTIVE'
Browse files Browse the repository at this point in the history
  ACTIVE means that we log one event per span, but it logs only when all fields on the span have been defined.

Signed-off-by: KtorZ <matthias.benkort@gmail.com>
  • Loading branch information
KtorZ committed Feb 7, 2025
1 parent c154258 commit 4bf8c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/amaru/src/bin/amaru/observability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl TracingSubscriber<Registry> {
pub fn init(self) {
let log_format = || tracing_subscriber::fmt::format().with_ansi(true).compact();
let log_writer = || io::stderr as fn() -> io::Stderr;
let log_events = || FmtSpan::ENTER;
let log_events = || FmtSpan::ACTIVE;
let log_filter = || default_filter(AMARU_LOG_VAR, DEFAULT_AMARU_LOG_FILTER);

match self {
Expand Down

0 comments on commit 4bf8c4c

Please sign in to comment.