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§
Sourcefn 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>>
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§
Sourcefn get_requirements(&self) -> Vec<&'static str>
fn get_requirements(&self) -> Vec<&'static str>
Determines configuration properties required to load an observability backend