TracingConfig

Trait TracingConfig 

Source
pub trait TracingConfig {
    // Required method
    fn set_filter(&self, filter: String) -> impl Future<Output = ()> + Send + '_;
}
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§

Source

fn set_filter(&self, filter: String) -> impl Future<Output = ()> + Send + '_

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.

Implementors§