Struct zipkin::tracer::OpenSpan
[−]
[src]
pub struct OpenSpan { /* fields omitted */ }
An open span.
This is a guard object - the span will be finished and reported when it falls out of scope.
Methods
impl OpenSpan
[src]
pub fn context(&self) -> TraceContext
[src]
Returns the context associated with this span.
pub fn name(&mut self, name: &str)
[src]
Sets the name of this span.
pub fn kind(&mut self, kind: Kind)
[src]
Sets the kind of this span.
pub fn remote_endpoint(&mut self, remote_endpoint: Endpoint)
[src]
Sets the remote endpoint of this span.
pub fn annotate(&mut self, value: &str)
[src]
Attaches an annotation to this span.
pub fn tag(&mut self, key: &str, value: &str)
[src]
Attaches a tag to this span.