pub struct QueryOptions {
pub parent: Option<String>,
pub aggregated: bool,
pub sort: SortMode,
pub search: Option<String>,
pub max_depth: u32,
pub depth: u32,
pub page: usize,
pub page_size: Option<usize>,
}Expand description
Options for querying spans from the trace store.
Fields§
§parent: Option<String>Optional parent span ID (as produced by SpanInfo::id).
None means root level.
aggregated: boolWhen true, aggregate child spans with the same name.
sort: SortModeHow to sort the results.
search: Option<String>Optional substring search query.
Matches the parent’s entire subtree, not just its direct children. Each
result’s id is the full path from parent down to the match, so it
can be passed straight back as parent.
Cost scales with the size of that subtree, so a root search on a large
trace walks everything. Setting parent, or lowering max_depth,
bounds it.
max_depth: u32Maximum depth to descend below parent when search is set, or when
depth requests a nested subtree. Clamped to DEFAULT_SEARCH_MAX_DEPTH.
depth: u32When greater than 1, each returned span carries this many levels of
descendants inline in children.
page: usize1-based page number.
page_size: Option<usize>Number of spans per page. Clamped to MAX_PAGE_SIZE; None uses
DEFAULT_PAGE_SIZE.
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more