pub struct ProfileSpanNode {
pub label: String,
pub self_ms: f64,
pub inclusive_ms: f64,
pub self_pct: f64,
pub file: Option<String>,
pub line: Option<u32>,
}Expand description
单个 span 节点(JSONL 用)
Fields§
§label: String展示名
self_ms: f64self 毫秒
inclusive_ms: f64inclusive 毫秒
self_pct: f64self 占墙钟百分比
file: Option<String>源码文件
line: Option<u32>源码行号
Trait Implementations§
Source§impl Clone for ProfileSpanNode
impl Clone for ProfileSpanNode
Source§fn clone(&self) -> ProfileSpanNode
fn clone(&self) -> ProfileSpanNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileSpanNode
impl Debug for ProfileSpanNode
Auto Trait Implementations§
impl Freeze for ProfileSpanNode
impl RefUnwindSafe for ProfileSpanNode
impl Send for ProfileSpanNode
impl Sync for ProfileSpanNode
impl Unpin for ProfileSpanNode
impl UnsafeUnpin for ProfileSpanNode
impl UnwindSafe for ProfileSpanNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request