Expand description
§OpenTelemetry Trace SDK
The tracing SDK consist of a few main structs:
- The
Tracerstruct which performs all tracing operations. - The
Spanstruct with is a mutable object storing information about the current operation execution. - The
TracerProviderstruct which configures and producesTracers.
Structs§
- Batch
Config - Batch span processor configuration.
Use
BatchConfigBuilderto configure your own instance ofBatchConfig. - Batch
Config Builder - A builder for creating
BatchConfiginstances. - Batch
Span Processor - A
SpanProcessorthat asynchronously buffers finished spans and reports them at a preconfigured interval. - Batch
Span Processor Builder - A builder for creating
BatchSpanProcessorinstances. - Builder
- Builder for provider attributes.
- Config
- Tracer configuration
- Random
IdGenerator - Default
IdGeneratorimplementation. - Simple
Span Processor - A SpanProcessor that passes finished spans to the configured
SpanExporter, as soon as they are finished, without any batching. This is typically useful for debugging and testing. For scenarios requiring higher performance/throughput, consider using BatchSpanProcessor. - Span
- Single operation within a trace.
- Span
Events - Stores span events along with dropped count.
- Span
Limits - Span limit configuration to keep attributes, events and links to a span in a reasonable number.
- Span
Links - Stores span links along with dropped count.
- Tracer
Tracerimplementation to create and manage spans- Tracer
Provider - Creator and registry of named
Tracerinstances.
Enums§
- Sampler
- Default Sampling options
Traits§
- IdGenerator
- Interface for generating IDs
- Should
Sample - The
ShouldSampleinterface allows implementations to provide samplers which will return a samplingSamplingResultbased on information that is typically available just before theSpanwas created. - Span
Processor SpanProcessoris an interface which allows hooks for span start and end method invocations. The span processors are invoked only when is_recording is true.
Functions§
- config
Deprecated - Default trace configuration