Package io.opentelemetry.api.trace
@ParametersAreNonnullByDefault
package io.opentelemetry.api.trace
API for distributed tracing.
Distributed tracing, also called distributed request tracing, is a technique that helps debugging distributed applications.
Trace represents a tree of spans. A trace has a root span that encapsulates all the spans from start to end, and the children spans being the distinct calls invoked in between.
Span
represents a single operation within a trace.
Spans
are propagated in-process in the Context
and between process using one of the wire propagation formats
supported in the opentelemetry.trace.propagation
package.
-
ClassDescriptionAn interface that represents a span.
SpanBuilder
is used to constructSpan
instances which define arbitrary scopes of code that are sampled for distributed tracing as a single atomic unit.A class that represents a span context.Helper methods for dealing with a span identifier.Type ofSpan
.The set of canonical status codes.A valid trace flags is a byte or 2 character lowercase hex (base16) String.Helper methods for dealing with a trace identifier.Tracer is the interface forSpan
creation and interaction with the in-process context.Builder class for creatingTracer
instances.A registry for creating namedTracer
s.Carries tracing-system specific context in a list of key-value pairs.A builder ofTraceState
.