pub trait ObservabilityQueryPort: Send + Sync {
// Required method
fn query<'a>(
&'a self,
query: ObservabilityQuery,
) -> Pin<Box<dyn Future<Output = Result<ObservabilityProjection, PortError>> + Send + 'a>>;
// Provided method
fn available_series(&self) -> Vec<String> { ... }
}Expand description
Application seam for persisted local observations and remote telemetry backends. Renderers compose these values; they do not reinterpret them.
Required Methods§
fn query<'a>( &'a self, query: ObservabilityQuery, ) -> Pin<Box<dyn Future<Output = Result<ObservabilityProjection, PortError>> + Send + 'a>>
Provided Methods§
Sourcefn available_series(&self) -> Vec<String>
fn available_series(&self) -> Vec<String>
Exact series names this reader can resolve without inventing aliases. Readers backed by a dynamic remote catalog may leave this empty until they can expose that capability explicitly.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".