pub struct CorrelationQuery {
pub tenant: Arc<str>,
pub trace_id: Option<TraceId>,
pub resource_id: Option<ResourceContextId>,
pub scope_id: Option<ScopeContextId>,
pub attributes: Arc<Vec<AttributeFingerprint>>,
pub labels: Arc<Vec<(Arc<str>, Arc<str>)>>,
pub signal: Option<TelemetrySignal>,
pub start_time_unix_nanos: Option<u64>,
pub end_time_unix_nanos: Option<u64>,
pub after: Option<TelemetryRecordRef>,
pub limit: usize,
}Expand description
Cross-signal lookup constraints combined with AND semantics.
Fields§
§tenant: Arc<str>Authenticated tenant.
trace_id: Option<TraceId>Optional trace link shared by spans, logs, and metric exemplars.
resource_id: Option<ResourceContextId>Optional exact resource context.
scope_id: Option<ScopeContextId>Optional exact instrumentation scope.
attributes: Arc<Vec<AttributeFingerprint>>Exact typed metadata key/value identities.
labels: Arc<Vec<(Arc<str>, Arc<str>)>>String labels rendered by compatibility APIs and matched across signal scopes.
signal: Option<TelemetrySignal>Optional signal restriction.
start_time_unix_nanos: Option<u64>Inclusive lower event-time bound.
end_time_unix_nanos: Option<u64>Inclusive upper event-time bound.
after: Option<TelemetryRecordRef>Exclusive stable continuation point.
limit: usizeMaximum record references returned.
Implementations§
Source§impl CorrelationQuery
impl CorrelationQuery
Sourcepub fn new(tenant: impl Into<Arc<str>>) -> Self
pub fn new(tenant: impl Into<Arc<str>>) -> Self
Creates an unconstrained, bounded query for one tenant.
Sourcepub const fn with_trace_id(self, trace_id: TraceId) -> Self
pub const fn with_trace_id(self, trace_id: TraceId) -> Self
Requires an exact trace link.
Sourcepub const fn with_resource_id(self, resource_id: ResourceContextId) -> Self
pub const fn with_resource_id(self, resource_id: ResourceContextId) -> Self
Requires an exact resource context.
Sourcepub const fn with_scope_id(self, scope_id: ScopeContextId) -> Self
pub const fn with_scope_id(self, scope_id: ScopeContextId) -> Self
Requires an exact instrumentation scope.
Sourcepub fn with_attribute(self, attribute: &TelemetryAttribute) -> Self
pub fn with_attribute(self, attribute: &TelemetryAttribute) -> Self
Requires one exact typed metadata key/value.
Sourcepub fn with_label(
self,
key: impl Into<Arc<str>>,
value: impl Into<Arc<str>>,
) -> Self
pub fn with_label( self, key: impl Into<Arc<str>>, value: impl Into<Arc<str>>, ) -> Self
Requires one exact string label wherever that key/value is attached.
Sourcepub const fn for_signal(self, signal: TelemetrySignal) -> Self
pub const fn for_signal(self, signal: TelemetrySignal) -> Self
Restricts results to one signal.
Sourcepub const fn after(self, record_ref: TelemetryRecordRef) -> Self
pub const fn after(self, record_ref: TelemetryRecordRef) -> Self
Continues strictly after a record reference returned by a prior page.
Sourcepub const fn with_limit(self, limit: usize) -> Self
pub const fn with_limit(self, limit: usize) -> Self
Sets the bounded result count.
Trait Implementations§
Source§impl Clone for CorrelationQuery
impl Clone for CorrelationQuery
Source§impl Debug for CorrelationQuery
impl Debug for CorrelationQuery
impl Eq for CorrelationQuery
Source§impl PartialEq for CorrelationQuery
impl PartialEq for CorrelationQuery
impl StructuralPartialEq for CorrelationQuery
Auto Trait Implementations§
impl Freeze for CorrelationQuery
impl RefUnwindSafe for CorrelationQuery
impl Send for CorrelationQuery
impl Sync for CorrelationQuery
impl Unpin for CorrelationQuery
impl UnsafeUnpin for CorrelationQuery
impl UnwindSafe for CorrelationQuery
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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>
T in a tonic::Request