Struct zipkin_types::span::Builder [] [src]

pub struct Builder { /* fields omitted */ }

A builder for Spans.

Methods

impl Builder
[src]

[src]

Sets the trace ID of the span.

[src]

Sets the name of the span.

Defaults to None.

[src]

Sets the ID of the span's parent.

Defaults to None.

[src]

Sets the ID of the span.

[src]

Sets the kind of the span.

Defaults to None.

[src]

Sets the time of the beginning of the span.

Defaults to None.

[src]

Sets the duration of the span.

Defaults to None.

[src]

Sets the debug state of the span.

Defaults to false.

[src]

Sets the shared state of the span.

Defaults to false.

[src]

Sets the local endpoint of the span.

Defaults to None.

[src]

Sets the remote endpoint of the span.

Defaults to None.

[src]

Adds an annotation to the span.

[src]

Adds multiple annotations to the span.

[src]

Adds a tag to the span.

[src]

As multiple tags to the span.

[src]

Constructs a Span.

Panics

Panics if trace_id or id was not set.

Trait Implementations

impl From<Span> for Builder
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Builder

impl Sync for Builder