pub trait RuntimeTelemetry: Send + Sync {
// Required method
fn start(
&self,
operation: RuntimeOperation,
) -> Box<dyn RuntimeTelemetryScope>;
// Provided methods
fn is_noop(&self) -> bool { ... }
fn extract_context(
&self,
_carrier: &BTreeMap<String, String>,
) -> Box<dyn RuntimeTelemetryPropagationContext> { ... }
fn flush(&self) { ... }
fn shutdown(&self) { ... }
}Required Methods§
fn start(&self, operation: RuntimeOperation) -> Box<dyn RuntimeTelemetryScope>
Provided Methods§
fn is_noop(&self) -> bool
fn extract_context( &self, _carrier: &BTreeMap<String, String>, ) -> Box<dyn RuntimeTelemetryPropagationContext>
fn flush(&self)
fn shutdown(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".