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 with_name(self, name: &str) -> OpenSpan
[src]
A builder-style version of name
.
pub fn kind(&mut self, kind: Kind)
[src]
Sets the kind of this span.
pub fn with_kind(self, kind: Kind) -> OpenSpan
[src]
A builder-style version of kind
.
pub fn remote_endpoint(&mut self, remote_endpoint: Endpoint)
[src]
Sets the remote endpoint of this span.
pub fn with_remote_endpoint(self, remote_endpoint: Endpoint) -> OpenSpan
[src]
A builder-style version of remote_endpoint
.
pub fn annotate(&mut self, value: &str)
[src]
Attaches an annotation to this span.
pub fn with_annotation(self, value: &str) -> OpenSpan
[src]
A builder-style version of annotate
.
pub fn tag(&mut self, key: &str, value: &str)
[src]
Attaches a tag to this span.
pub fn with_tag(self, key: &str, value: &str) -> OpenSpan
[src]
A builder-style version of tag
.