Struct zipkin_types::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]

The randomly generated, unique identifier for a trace, set on all spans within it.

[src]

The logical operation this span represents (e.g. an RPC method).

Leave absent if unknown.

These are lookup labels, so take care to ensure names are low cardinality. For example, do not embed variables into the name.

[src]

The parent span ID, or None if this is the root span in a trace.

[src]

The unique 64 bit identifier for this operation within the trace.

[src]

The "kind" of operation this span represents.

When absent, the span is local or incomplete.

[src]

The start of the span.

[src]

The duration of the critical path, if known.

Durations are recorded in microseconds, and rounded up to a minimum of 1. Durations of children can be longer than their parents due to asynchronous operations.

[src]

Determines if this span is part of a normal or forcibly sampled span.

If true, the span should always be sampled regardless of the sampling configuration.

[src]

Determines if this span was started by another tracer (e.g. on a different host).

[src]

Returns the host that recorded this span, primarily for query by service name.

Instrumentation should always record this. The IP address is usually the site local or advertised service address. When present, the port indicates the listen port.

[src]

Returns the other side of the connection for RPC or messaging spans.

[src]

Returns the annotations associated with this span.

[src]

Returns tags used to give spans context for search, viewing, and analysis.

Trait Implementations

impl Debug for Span
[src]

[src]

Formats the value using the given formatter. Read more

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

impl From<Span> for Builder
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Span

impl Sync for Span