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
With logs_level_enabled feature, the appender-tracing returns false on event_enabled if it has no interest in the event. But this causes other layers, like a fmt layer to also miss the events. Lack of interest for otel layer should not influence other layers.
Haven't tested this, but I believe the effect of event_enabled returning false is localized to the layer where it is implemented, which in this case is OpenTelemetryTracingBridge. It should only effect the processing of event in this layer. Other layers in the stack might still process it if their implementations of event_enabled return true or if they do not provide an event_enabled implementation at all.
I believe the effect of event_enabled returning false is localized to the layer where it is implemented
Well, that is not the case! Any layer returning false would affect entire layers! (or the first layer that returns false, would cause the rest of the layers to be bypassed completely)
With
logs_level_enabled
feature, the appender-tracing returns false onevent_enabled
if it has no interest in the event. But this causes other layers, like afmt
layer to also miss the events. Lack of interest for otel layer should not influence other layers.I believe the solution should be to rewrite the
logs_level_enabled
to use https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/index.html#per-layer-filteringThe text was updated successfully, but these errors were encountered: