pub struct OtlpHttpLogsClient { /* private fields */ }Expand description
HTTP client for querying the agent’s OTLP log store.
Sends GET requests to /api/otlp/logs/query, /api/otlp/labels,
and /api/otlp/health endpoints on the agent daemon.
Implementations§
Trait Implementations§
Source§impl LogsClient for OtlpHttpLogsClient
impl LogsClient for OtlpHttpLogsClient
Source§fn query_logs(&self, query: LogsQuery, ctx: &Context) -> Promise<LogsResult>
fn query_logs(&self, query: LogsQuery, ctx: &Context) -> Promise<LogsResult>
Execute a logs query (non-blocking). Read more
Source§fn fetch_streams(&self, ctx: &Context) -> Promise<StreamsResult>
fn fetch_streams(&self, ctx: &Context) -> Promise<StreamsResult>
Fetch all available log streams/labels from the backend. Read more
Source§fn backend_type(&self) -> &'static str
fn backend_type(&self) -> &'static str
Get the backend type identifier (e.g., “loki”, “elasticsearch”).
Source§fn health_check(&self, ctx: &Context) -> Promise<HealthCheckResult>
fn health_check(&self, ctx: &Context) -> Promise<HealthCheckResult>
Check backend health and connectivity. Read more
Auto Trait Implementations§
impl Freeze for OtlpHttpLogsClient
impl !RefUnwindSafe for OtlpHttpLogsClient
impl Send for OtlpHttpLogsClient
impl Sync for OtlpHttpLogsClient
impl Unpin for OtlpHttpLogsClient
impl UnsafeUnpin for OtlpHttpLogsClient
impl !UnwindSafe for OtlpHttpLogsClient
Blanket Implementations§
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