[][src]Module opentelemetry::sdk::trace

OpenTelemetry Trace SDK

The tracing SDK consist of a few main structs:

  • The Tracer struct which performs all tracing operations.
  • The Span struct with is a mutable object storing information about the current operation execution.
  • The TracerProvider struct which configures and produces Tracers.

Structs

BatchConfig

Batch span processor configuration

BatchSpanProcessor

A SpanProcessor that asynchronously buffers finished spans and reports them at a preconfigured interval.

BatchSpanProcessorBuilder

A builder for creating BatchSpanProcessor instances.

Builder

Builder for provider attributes.

Config

Tracer configuration

EvictedHashMap

A hash map with a capped number of attributes that retains the most recently set entries.

EvictedQueue

This queue maintains an ordered list of elements, and a count of dropped elements. Elements are removed from the queue in a first in first out fashion.

IdGenerator

Default [api::IdGenerator] implementation. Generates Trace and Span ids using a random number generator.

SamplingResult

The result of sampling logic for a given Span.

SimpleSpanProcessor

A SpanProcessor that exports synchronously when spans are finished.

Span

Single operation within a trace.

Tracer

Tracer implementation to create and manage spans

TracerProvider

Creator and registry of named Tracer instances.

XrayIdGenerator

Generates AWS X-Ray compliant Trace and Span ids.

Enums

Sampler

Sampling options

SamplingDecision

Decision about whether or not to sample

Traits

ShouldSample

The ShouldSample interface allows implementations to provide samplers which will return a sampling SamplingResult based on information that is typically available just before the Span was created.

Functions

config

Default trace configuration