You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get tracing to send its spans to jaeger (working) while printing only events to stdout similar to how log does. That is a single line only containing the event msg and no span info.
I can not use .with_span_list(false) or .with_current_span(false) as including those gives the compile error:
1. no method named `with_span_list` found for struct `FmtSubscriber<_>` in the current scope
the method was found for
- `FmtSubscriber<C, JsonFields, tracing_subscriber::fmt::format::Format<Json, T>, W>`
2. no method named `with_span_list` found for struct `FmtSubscriber<_>` in the current scope
the method was found for
- `FmtSubscriber<C, JsonFields, tracing_subscriber::fmt::format::Format<tracing_subscriber::fmt::format::Json, T>, W>`
I have both the json and fmt feature for tracing_subscriber enabled. Only using with_span_eventsNONE still prints the entire span on each event.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am trying to get tracing to send its spans to jaeger (working) while printing only events to stdout similar to how log does. That is a single line only containing the event msg and no span info.
I have the following setup function:
I can not use
.with_span_list(false)
or.with_current_span(false)
as including those gives the compile error:I have both the
json
andfmt
feature fortracing_subscriber
enabled. Only usingwith_span_events
NONE
still prints the entire span on each event.Does anyone have advice how to proceed?
Beta Was this translation helpful? Give feedback.
All reactions