Struct hadean::tracer::Tracer[][src]

pub struct Tracer { /* fields omitted */ }
Expand description

Represents a tracer which is used to create spans.

Notes

All spans are created under the trace id that was passed to Tracer::new.

Implementations

Creates a new tracer.

Arguments

  • trace_id - The trace id of the tracer. Usually this should be set to hadean::trace_id.
  • name - The name of the tracer.

Starts a new span with a given name.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.