Module opentelemetry::sdk::trace

source ·
Expand description

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

Enums

  • Messages sent between application thread and batch span processor’s work thread.
  • Default Sampling options

Traits

  • Interface for generating IDs
  • 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.
  • SpanProcessor is an interface which allows hooks for span start and end method invocations. The span processors are invoked only when is_recording is true.

Functions

  • Default trace configuration