pub trait SpanExt {
// Required methods
fn record_exception(&self, error: &dyn Error);
fn set_status(&self, status: SpanStatus);
fn add_event(&self, event: SpanEvent);
}Expand description
Span 扩展功能
Required Methods§
Sourcefn record_exception(&self, error: &dyn Error)
fn record_exception(&self, error: &dyn Error)
记录异常
Sourcefn set_status(&self, status: SpanStatus)
fn set_status(&self, status: SpanStatus)
设置状态