Struct zipkin::Span [] [src]

pub struct Span { /* fields omitted */ }

A Span represents a single operation over some range of time.

Multiple spans make up a single "trace" of a distributed computation, and spans can be nested. A new trace is created with a "root" span, and subsections of that computation are recorded in individual spans.

For spans tracing a remote service call, two records will typically be generated, one from the client and the other from the server. The client is responsible for recording the timestamp and duration associated with the span, and the server span should omit that information. The client and server may both add their own annotations and binary annotations the span - they will be merged.

Methods

impl Span
[src]

[src]

Returns a builder used to construct a Span.

[src]

Returns the trace ID associated with this span.

[src]

Returns the name of this span.

[src]

Returns the ID of this span.

[src]

Returns the ID of the parent of this span, if one exists.

[src]

Returns the time of the beginning of this span, if known.

[src]

Returns the duration of this span, if known.

[src]

Returns the annotations associated with this span.

[src]

Returns the binary annotations associated with this span.

Trait Implementations

impl Debug for Span
[src]

[src]

Formats the value using the given formatter.

impl Clone for Span
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more