pub trait ObservabilityBuilder {
type Plugin: ObservabilityPlugin;
// Required methods
fn build(self) -> ObservabilityResult<Self::Plugin>;
fn with_name(self, name: impl Into<String>) -> Self;
fn enabled(self, enabled: bool) -> Self;
}Expand description
Builder trait for creating observability plugins
Required Associated Types§
Required Methods§
Sourcefn build(self) -> ObservabilityResult<Self::Plugin>
fn build(self) -> ObservabilityResult<Self::Plugin>
Build the plugin with the current configuration
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.