Uses of Interface
io.opentelemetry.api.trace.SpanContext
Packages that use SpanContext
Package
Description
Interfaces and implementations that are internal to OpenTelemetry.
API for distributed tracing.
Default OpenTelemetry remote trace propagators.
Marshaling of OTLP metrics.
The OpenTelemetry SDK implementation of logging.
The data format to model logs for export.
Classes which form the in-memory representation of the OpenTelemetry metrics data model.
The data format to model metrics for export.
Metric exemplar extension points.
The OpenTelemetry SDK implementation of tracing.
The data format to model traces for export.
-
Uses of SpanContext in io.opentelemetry.api.incubator.trace
Fields in io.opentelemetry.api.incubator.trace declared as SpanContextModifier and TypeFieldDescriptionprivate SpanContext
ExtendedDefaultTracer.NoopSpanBuilder.spanContext
Methods in io.opentelemetry.api.incubator.trace with parameters of type SpanContextModifier and TypeMethodDescriptionExtendedDefaultTracer.NoopSpanBuilder.addLink
(SpanContext spanContext) ExtendedDefaultTracer.NoopSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) ExtendedSpanBuilder.addLink
(SpanContext spanContext) Adds a link to the newly createdSpan
.ExtendedSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) Adds a link to the newly createdSpan
. -
Uses of SpanContext in io.opentelemetry.api.internal
Classes in io.opentelemetry.api.internal that implement SpanContextModifier and TypeClassDescription(package private) final class
class
This class is internal and is hence not for public use.Fields in io.opentelemetry.api.internal declared as SpanContextMethods in io.opentelemetry.api.internal that return SpanContextModifier and TypeMethodDescriptionstatic SpanContext
ImmutableSpanContext.create
(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean skipIdValidation) Creates a newSpanContext
with the given identifiers and options. -
Uses of SpanContext in io.opentelemetry.api.trace
Fields in io.opentelemetry.api.trace declared as SpanContextModifier and TypeFieldDescriptionprivate SpanContext
DefaultTracer.NoopSpanBuilder.spanContext
private final SpanContext
PropagatedSpan.spanContext
Methods in io.opentelemetry.api.trace that return SpanContextModifier and TypeMethodDescriptionstatic SpanContext
SpanContext.create
(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState) Creates a newSpanContext
with the given identifiers and options.static SpanContext
SpanContext.createFromRemoteParent
(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState) Creates a newSpanContext
that was propagated from a remote parent, with the given identifiers and options.static SpanContext
SpanContext.getInvalid()
Returns the invalidSpanContext
that can be used for no-op operations.PropagatedSpan.getSpanContext()
Span.getSpanContext()
Returns theSpanContext
associated with thisSpan
.Methods in io.opentelemetry.api.trace with parameters of type SpanContextModifier and TypeMethodDescriptionDefaultTracer.NoopSpanBuilder.addLink
(SpanContext spanContext) DefaultTracer.NoopSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) default Span
Span.addLink
(SpanContext spanContext) Adds a link to thisSpan
.default Span
Span.addLink
(SpanContext spanContext, Attributes attributes) Adds a link to thisSpan
.SpanBuilder.addLink
(SpanContext spanContext) Adds a link to the newly createdSpan
.SpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) Adds a link to the newly createdSpan
.(package private) static Span
PropagatedSpan.create
(SpanContext spanContext) static Span
Span.wrap
(SpanContext spanContext) Returns a non-recordingSpan
that holds the providedSpanContext
but has no functionality.Constructors in io.opentelemetry.api.trace with parameters of type SpanContext -
Uses of SpanContext in io.opentelemetry.api.trace.propagation
Methods in io.opentelemetry.api.trace.propagation that return SpanContextModifier and TypeMethodDescriptionprivate static SpanContext
W3CTraceContextPropagator.extractContextFromTraceParent
(String traceparent) private static <C> SpanContext
W3CTraceContextPropagator.extractImpl
(C carrier, TextMapGetter<C> getter) -
Uses of SpanContext in io.opentelemetry.exporter.internal.otlp.metrics
Fields in io.opentelemetry.exporter.internal.otlp.metrics declared as SpanContextMethods in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type SpanContextModifier and TypeMethodDescriptionprivate static int
ExemplarMarshaler.calculateSize
(long timeUnixNano, ProtoFieldInfo valueField, ExemplarData value, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) Constructors in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type SpanContextModifierConstructorDescriptionprivate
ExemplarMarshaler
(long timeUnixNano, ExemplarData value, ProtoFieldInfo valueField, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) -
Uses of SpanContext in io.opentelemetry.sdk.logs
Fields in io.opentelemetry.sdk.logs declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
AutoValue_SdkLogRecordData.spanContext
private final SpanContext
SdkReadWriteLogRecord.spanContext
Methods in io.opentelemetry.sdk.logs that return SpanContextMethods in io.opentelemetry.sdk.logs with parameters of type SpanContextModifier and TypeMethodDescription(package private) static SdkLogRecordData
SdkLogRecordData.create
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, Attributes attributes, int totalAttributeCount) (package private) static SdkReadWriteLogRecord
SdkReadWriteLogRecord.create
(LogLimits logLimits, Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, AttributesMap attributes) Create the log record with the given configuration.Constructors in io.opentelemetry.sdk.logs with parameters of type SpanContextModifierConstructorDescription(package private)
AutoValue_SdkLogRecordData
(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue) private
SdkReadWriteLogRecord
(LogLimits logLimits, Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, AttributesMap attributes) -
Uses of SpanContext in io.opentelemetry.sdk.logs.data
Methods in io.opentelemetry.sdk.logs.data that return SpanContextModifier and TypeMethodDescriptionLogRecordData.getSpanContext()
Return the span context for this log, orgetInvalid()
if unset. -
Uses of SpanContext in io.opentelemetry.sdk.metrics.data
Methods in io.opentelemetry.sdk.metrics.data that return SpanContextModifier and TypeMethodDescriptionExemplarData.getSpanContext()
Returns theSpanContext
associated with this exemplar. -
Uses of SpanContext in io.opentelemetry.sdk.metrics.internal.data
Fields in io.opentelemetry.sdk.metrics.internal.data declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
AutoValue_ImmutableDoubleExemplarData.spanContext
private final SpanContext
AutoValue_ImmutableLongExemplarData.spanContext
Methods in io.opentelemetry.sdk.metrics.internal.data that return SpanContextModifier and TypeMethodDescriptionAutoValue_ImmutableDoubleExemplarData.getSpanContext()
AutoValue_ImmutableLongExemplarData.getSpanContext()
Methods in io.opentelemetry.sdk.metrics.internal.data with parameters of type SpanContextModifier and TypeMethodDescriptionstatic DoubleExemplarData
ImmutableDoubleExemplarData.create
(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, double value) Construct a new exemplar.static LongExemplarData
ImmutableLongExemplarData.create
(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, long value) Construct a new exemplar.Constructors in io.opentelemetry.sdk.metrics.internal.data with parameters of type SpanContextModifierConstructorDescription(package private)
AutoValue_ImmutableDoubleExemplarData
(Attributes filteredAttributes, long epochNanos, SpanContext spanContext, double value) (package private)
AutoValue_ImmutableLongExemplarData
(Attributes filteredAttributes, long epochNanos, SpanContext spanContext, long value) -
Uses of SpanContext in io.opentelemetry.sdk.metrics.internal.exemplar
Fields in io.opentelemetry.sdk.metrics.internal.exemplar declared as SpanContext -
Uses of SpanContext in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
SdkSpan.context
private final SpanContext
SdkSpan.parentSpanContext
Methods in io.opentelemetry.sdk.trace that return SpanContextModifier and TypeMethodDescriptionReadableSpan.getParentSpanContext()
SdkSpan.getParentSpanContext()
SpanWrapper.getParentSpanContext()
ReadableSpan.getSpanContext()
Returns theSpanContext
of theSpan
.SdkSpan.getSpanContext()
SpanWrapper.getSpanContext()
Methods in io.opentelemetry.sdk.trace with parameters of type SpanContextModifier and TypeMethodDescriptionSdkSpan.addLink
(SpanContext spanContext, Attributes attributes) SdkSpanBuilder.addLink
(SpanContext spanContext) SdkSpanBuilder.addLink
(SpanContext spanContext, Attributes attributes) (package private) static SdkSpan
SdkSpan.startSpan
(SpanContext context, String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, Span parentSpan, Context parentContext, SpanLimits spanLimits, SpanProcessor spanProcessor, Clock tracerClock, Resource resource, AttributesMap attributes, List<LinkData> links, int totalRecordedLinks, long userStartEpochNanos) Creates and starts a span with the given configuration.Constructors in io.opentelemetry.sdk.trace with parameters of type SpanContextModifierConstructorDescriptionprivate
SdkSpan
(SpanContext context, String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, SpanContext parentSpanContext, SpanLimits spanLimits, SpanProcessor spanProcessor, AnchoredClock clock, Resource resource, AttributesMap attributes, List<LinkData> links, int totalRecordedLinks, long startEpochNanos) -
Uses of SpanContext in io.opentelemetry.sdk.trace.data
Fields in io.opentelemetry.sdk.trace.data declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
AutoValue_ImmutableLinkData.spanContext
Methods in io.opentelemetry.sdk.trace.data that return SpanContextModifier and TypeMethodDescriptionDelegatingSpanData.getParentSpanContext()
SpanData.getParentSpanContext()
Returns the parentSpanContext
.AutoValue_ImmutableLinkData.getSpanContext()
DelegatingSpanData.getSpanContext()
LinkData.getSpanContext()
Returns theSpanContext
of the span thisLinkData
refers to.SpanData.getSpanContext()
Returns theSpanContext
of the Span.Methods in io.opentelemetry.sdk.trace.data with parameters of type SpanContextModifier and TypeMethodDescription(package private) static LinkData
ImmutableLinkData.create
(SpanContext spanContext) (package private) static LinkData
ImmutableLinkData.create
(SpanContext spanContext, Attributes attributes) (package private) static LinkData
ImmutableLinkData.create
(SpanContext spanContext, Attributes attributes, int totalAttributeCount) static LinkData
LinkData.create
(SpanContext spanContext) Returns a new immutableLinkData
.static LinkData
LinkData.create
(SpanContext spanContext, Attributes attributes) Returns a new immutableLinkData
.static LinkData
LinkData.create
(SpanContext spanContext, Attributes attributes, int totalAttributeCount) Returns a new immutableLinkData
.Constructors in io.opentelemetry.sdk.trace.data with parameters of type SpanContextModifierConstructorDescription(package private)
AutoValue_ImmutableLinkData
(SpanContext spanContext, Attributes attributes, int totalAttributeCount)