pub struct OperationTrace {Show 18 fields
pub trace_id: String,
pub correlation_id: String,
pub operation: i32,
pub transport: String,
pub backend: Option<String>,
pub admission_class: Option<String>,
pub tenant_id: Option<String>,
pub namespace: Option<String>,
pub principal: Option<String>,
pub store_span_id: Option<String>,
pub planning_trace_id: Option<String>,
pub started_at_unix_ms: u64,
pub completed_at_unix_ms: u64,
pub latency_ms: u64,
pub status: i32,
pub status_message: Option<String>,
pub summary: Option<OperationTraceSummary>,
pub recall_explanation: Option<RecallExplanation>,
}Fields§
§trace_id: String§correlation_id: String§operation: i32§transport: String§backend: Option<String>§admission_class: Option<String>§tenant_id: Option<String>§namespace: Option<String>§principal: Option<String>§store_span_id: Option<String>§planning_trace_id: Option<String>§started_at_unix_ms: u64§completed_at_unix_ms: u64§latency_ms: u64§status: i32§status_message: Option<String>§summary: Option<OperationTraceSummary>§recall_explanation: Option<RecallExplanation>Implementations§
Source§impl OperationTrace
impl OperationTrace
Sourcepub fn operation(&self) -> TraceOperationKind
pub fn operation(&self) -> TraceOperationKind
Returns the enum value of operation, or the default if the field is set to an invalid enum value.
Sourcepub fn set_operation(&mut self, value: TraceOperationKind)
pub fn set_operation(&mut self, value: TraceOperationKind)
Sets operation to the provided enum value.
Sourcepub fn tenant_id(&self) -> &str
pub fn tenant_id(&self) -> &str
Returns the value of tenant_id, or the default value if tenant_id is unset.
Sourcepub fn namespace(&self) -> &str
pub fn namespace(&self) -> &str
Returns the value of namespace, or the default value if namespace is unset.
Sourcepub fn principal(&self) -> &str
pub fn principal(&self) -> &str
Returns the value of principal, or the default value if principal is unset.
Sourcepub fn status(&self) -> TraceStatus
pub fn status(&self) -> TraceStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: TraceStatus)
pub fn set_status(&mut self, value: TraceStatus)
Sets status to the provided enum value.
Sourcepub fn status_message(&self) -> &str
pub fn status_message(&self) -> &str
Returns the value of status_message, or the default value if status_message is unset.
Sourcepub fn backend(&self) -> &str
pub fn backend(&self) -> &str
Returns the value of backend, or the default value if backend is unset.
Sourcepub fn admission_class(&self) -> &str
pub fn admission_class(&self) -> &str
Returns the value of admission_class, or the default value if admission_class is unset.
Sourcepub fn store_span_id(&self) -> &str
pub fn store_span_id(&self) -> &str
Returns the value of store_span_id, or the default value if store_span_id is unset.
Sourcepub fn planning_trace_id(&self) -> &str
pub fn planning_trace_id(&self) -> &str
Returns the value of planning_trace_id, or the default value if planning_trace_id is unset.
Trait Implementations§
Source§impl Clone for OperationTrace
impl Clone for OperationTrace
Source§fn clone(&self) -> OperationTrace
fn clone(&self) -> OperationTrace
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OperationTrace
impl Debug for OperationTrace
Source§impl Default for OperationTrace
impl Default for OperationTrace
Source§impl Message for OperationTrace
impl Message for OperationTrace
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for OperationTrace
impl PartialEq for OperationTrace
Source§fn eq(&self, other: &OperationTrace) -> bool
fn eq(&self, other: &OperationTrace) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationTrace
Auto Trait Implementations§
impl Freeze for OperationTrace
impl RefUnwindSafe for OperationTrace
impl Send for OperationTrace
impl Sync for OperationTrace
impl Unpin for OperationTrace
impl UnsafeUnpin for OperationTrace
impl UnwindSafe for OperationTrace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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