pub struct TracesQuery {Show 13 fields
pub trace_id: Option<String>,
pub service: Option<String>,
pub resource: Option<String>,
pub search: Option<String>,
pub session_id: Option<String>,
pub conversation_id: Option<String>,
pub model: Option<String>,
pub attrs: Option<String>,
pub query: Option<String>,
pub start_time: Option<i64>,
pub end_time: Option<i64>,
pub limit: usize,
pub offset: usize,
}Expand description
Query parameters for trace listing
Fields§
§trace_id: Option<String>Filter by trace ID
service: Option<String>Filter by service name
resource: Option<String>Filter by resource attribute (format: key=value)
search: Option<String>Full-text search in span names
session_id: Option<String>Filter by session ID (session.id attribute)
conversation_id: Option<String>Filter by gen_ai.conversation.id attribute
model: Option<String>Filter by model (matches gen_ai.request.model)
attrs: Option<String>JSON-encoded list of attribute filters: [{“key”:“x”,“op”:“=”,“value”:“y”}, …] Supported ops: “=” (Equal), “!=” (NotEqual)
query: Option<String>Structured query predicate; multiple predicates joined with &&,
e.g. name = "claude_code.llm_request" && attributes.attempt >= 2.
A malformed expression returns 400.
start_time: Option<i64>Start time (Unix timestamp in nanoseconds)
end_time: Option<i64>End time (Unix timestamp in nanoseconds)
limit: usizeMaximum number of results (default: 100, max: 1000)
offset: usizeOffset for pagination
Trait Implementations§
Source§impl Debug for TracesQuery
impl Debug for TracesQuery
Source§impl<'de> Deserialize<'de> for TracesQuery
impl<'de> Deserialize<'de> for TracesQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoParams for TracesQuery
impl IntoParams for TracesQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Auto Trait Implementations§
impl Freeze for TracesQuery
impl RefUnwindSafe for TracesQuery
impl Send for TracesQuery
impl Sync for TracesQuery
impl Unpin for TracesQuery
impl UnsafeUnpin for TracesQuery
impl UnwindSafe for TracesQuery
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