pub type BoxedLayer = Box<dyn Layer<Registry> + Send + Sync + 'static>;Expand description
A boxed tracing layer that can be added to the default subscriber.
Use this type with Builder::with_layer() to add custom tracing layers
(e.g., for OpenTelemetry, Sentry, or custom logging integrations) to the
plugin-managed subscriber.
§Example
use tauri_plugin_tracing::{Builder, BoxedLayer};
use tracing_subscriber::Layer;
// Create a custom layer (e.g., from another crate) and box it
let my_layer: BoxedLayer = tracing_subscriber::fmt::layer().boxed();
Builder::new()
.with_layer(my_layer)
.with_default_subscriber()
.build::<tauri::Wry>();Aliased Type§
pub struct BoxedLayer(/* private fields */);