pub trait TracingConfig {
// Required method
async fn set_filter(&self, filter: String);
}Expand description
Service for configuring tracing in plugins.
The plugin implements this, the host calls it via RPC to push filter config. This allows the host to be the single source of truth for log filtering.
Required Methods§
Sourceasync fn set_filter(&self, filter: String)
async fn set_filter(&self, filter: String)
Set the tracing filter.
The filter string uses the same format as RUST_LOG (e.g., “info,mymodule=debug”). The plugin should apply this filter to all subsequent tracing calls.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.