pub struct RemoteStore { /* private fields */ }Expand description
A Store backed by another tael-server’s REST API over HTTP.
Implementations§
Trait Implementations§
Source§impl Store for RemoteStore
impl Store for RemoteStore
fn insert_spans(&self, _spans: &[Span]) -> Result<()>
fn query_traces(&self, query: &TraceQuery) -> Result<Vec<Span>>
fn get_trace(&self, trace_id: &str) -> Result<Vec<Span>>
fn list_services(&self) -> Result<Vec<ServiceInfo>>
fn add_comment( &self, trace_id: &str, span_id: Option<&str>, author: &str, body: &str, ) -> Result<TraceComment>
fn get_comments(&self, trace_id: &str) -> Result<Vec<TraceComment>>
fn insert_logs(&self, _logs: &[LogRecord]) -> Result<()>
fn query_logs(&self, query: &LogQuery) -> Result<Vec<LogRecord>>
fn insert_metrics(&self, _metrics: &[MetricPoint]) -> Result<()>
fn query_metrics(&self, query: &MetricQuery) -> Result<Vec<MetricPoint>>
fn query_summary( &self, last_seconds: i64, service: Option<&str>, ) -> Result<SummaryReport>
fn query_anomalies( &self, current_seconds: i64, baseline_seconds: i64, service: Option<&str>, ) -> Result<AnomalyReport>
fn query_correlate(&self, trace_id: &str) -> Result<Option<CorrelateReport>>
Source§fn query_sql(&self, sql: &str) -> Result<Vec<Value>>
fn query_sql(&self, sql: &str) -> Result<Vec<Value>>
Read-only SQL query surface (
SELECT/WITH) over the telemetry tables,
returning rows as JSON objects.Source§fn health(&self) -> Result<()>
fn health(&self) -> Result<()>
Readiness probe —
Ok(()) when this store can serve requests. Backs the
REST /readyz endpoint (docs/tael-server-scaling-ha.md §5.4). The
default is Ok(()): an embedded backend that constructed successfully
and holds its file locks is, by definition, ready. Backends that depend
on the network (e.g. RemoteStore, FanoutStore)
override this to probe their dependencies.Source§fn flush(&self) -> Result<()>
fn flush(&self) -> Result<()>
Flush durable buffered state ahead of a graceful shutdown. The WAL fsync
on the write path is the real durability boundary, so this is
best-effort: it tightens the hot tier’s on-disk state so a restart or
standby replays less WAL (§5.4 “flush the hot tier”). Default is a no-op.
Source§fn apply_framed_wal(&self, _framed: &[u8]) -> Result<()>
fn apply_framed_wal(&self, _framed: &[u8]) -> Result<()>
Standby entrypoint for WAL replication: durably accept a framed WAL
record shipped from a leader and bring local state up to it
(
docs/tael-server-scaling-ha.md §5.1). Backs the
POST /internal/wal/records endpoint. Default: rejected — only the
tael-backend engine, which owns a WAL, can act as a standby.Auto Trait Implementations§
impl !RefUnwindSafe for RemoteStore
impl !UnwindSafe for RemoteStore
impl Freeze for RemoteStore
impl Send for RemoteStore
impl Sync for RemoteStore
impl Unpin for RemoteStore
impl UnsafeUnpin for RemoteStore
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.