ObservabilityBackendLoader

Trait ObservabilityBackendLoader 

Source
pub trait ObservabilityBackendLoader {
    // Required method
    fn load_observability_backend(
        &mut self,
        config: &ServerConfiguration,
        global_config: Option<&ServerConfiguration>,
        secondary_runtime: &Runtime,
    ) -> Result<Arc<dyn ObservabilityBackend + Send + Sync>, Box<dyn Error + Send + Sync>>;

    // Provided methods
    fn get_requirements(&self) -> Vec<&'static str> { ... }
    fn validate_configuration(
        &self,
        config: &ServerConfiguration,
        used_properties: &mut HashSet<String>,
    ) -> Result<(), Box<dyn Error + Send + Sync>> { ... }
}
Expand description

A trait that defines an observability backend loader

Required Methods§

Source

fn load_observability_backend( &mut self, config: &ServerConfiguration, global_config: Option<&ServerConfiguration>, secondary_runtime: &Runtime, ) -> Result<Arc<dyn ObservabilityBackend + Send + Sync>, Box<dyn Error + Send + Sync>>

Loads an observability backend according to specific configuration

Provided Methods§

Source

fn get_requirements(&self) -> Vec<&'static str>

Determines configuration properties required to load an observability backend

Source

fn validate_configuration( &self, config: &ServerConfiguration, used_properties: &mut HashSet<String>, ) -> Result<(), Box<dyn Error + Send + Sync>>

Validates the server configuration

Implementors§