Uses of Interface
io.opentelemetry.api.trace.SpanContext
-
Packages that use SpanContext Package Description io.opentelemetry.api.incubator.trace io.opentelemetry.api.internal Interfaces and implementations that are internal to OpenTelemetry.io.opentelemetry.api.trace API for distributed tracing.io.opentelemetry.api.trace.propagation Default OpenTelemetry remote trace propagators.io.opentelemetry.exporter.internal.otlp.metrics Marshaling of OTLP metrics.io.opentelemetry.sdk.logs The OpenTelemetry SDK implementation of logging.io.opentelemetry.sdk.logs.data The data format to model logs for export.io.opentelemetry.sdk.metrics.data Classes which form the in-memory representation of the OpenTelemetry metrics data model.io.opentelemetry.sdk.metrics.internal.data The data format to model metrics for export.io.opentelemetry.sdk.metrics.internal.exemplar Metric exemplar extension points.io.opentelemetry.sdk.trace The OpenTelemetry SDK implementation of tracing.io.opentelemetry.sdk.trace.data 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 SpanContext Modifier and Type Field Description private SpanContext
ExtendedDefaultTracer.NoopSpanBuilder. spanContext
Methods in io.opentelemetry.api.incubator.trace with parameters of type SpanContext Modifier and Type Method Description ExtendedDefaultTracer.NoopSpanBuilder
ExtendedDefaultTracer.NoopSpanBuilder. addLink(SpanContext spanContext)
ExtendedDefaultTracer.NoopSpanBuilder
ExtendedDefaultTracer.NoopSpanBuilder. addLink(SpanContext spanContext, Attributes attributes)
ExtendedSpanBuilder
ExtendedSpanBuilder. addLink(SpanContext spanContext)
Adds a link to the newly createdSpan
.ExtendedSpanBuilder
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 SpanContext Modifier and Type Class Description (package private) class
AutoValue_ImmutableSpanContext
class
ImmutableSpanContext
This class is internal and is hence not for public use.Fields in io.opentelemetry.api.internal declared as SpanContext Modifier and Type Field Description static SpanContext
ImmutableSpanContext. INVALID
Methods in io.opentelemetry.api.internal that return SpanContext Modifier and Type Method Description static SpanContext
ImmutableSpanContext. create(java.lang.String traceIdHex, java.lang.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 SpanContext Modifier and Type Field Description private SpanContext
DefaultTracer.NoopSpanBuilder. spanContext
private SpanContext
PropagatedSpan. spanContext
Methods in io.opentelemetry.api.trace that return SpanContext Modifier and Type Method Description static SpanContext
SpanContext. create(java.lang.String traceIdHex, java.lang.String spanIdHex, TraceFlags traceFlags, TraceState traceState)
Creates a newSpanContext
with the given identifiers and options.static SpanContext
SpanContext. createFromRemoteParent(java.lang.String traceIdHex, java.lang.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.SpanContext
PropagatedSpan. getSpanContext()
SpanContext
Span. getSpanContext()
Returns theSpanContext
associated with thisSpan
.Methods in io.opentelemetry.api.trace with parameters of type SpanContext Modifier and Type Method Description DefaultTracer.NoopSpanBuilder
DefaultTracer.NoopSpanBuilder. addLink(SpanContext spanContext)
DefaultTracer.NoopSpanBuilder
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
SpanBuilder. addLink(SpanContext spanContext)
Adds a link to the newly createdSpan
.SpanBuilder
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 Constructor Description PropagatedSpan(SpanContext spanContext)
-
Uses of SpanContext in io.opentelemetry.api.trace.propagation
Methods in io.opentelemetry.api.trace.propagation that return SpanContext Modifier and Type Method Description private static SpanContext
W3CTraceContextPropagator. extractContextFromTraceParent(java.lang.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 SpanContext Modifier and Type Field Description private SpanContext
ExemplarMarshaler. spanContext
Methods in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type SpanContext Modifier and Type Method Description private 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 SpanContext Constructor Description 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 SpanContext Modifier and Type Field Description private SpanContext
AutoValue_SdkLogRecordData. spanContext
private SpanContext
SdkReadWriteLogRecord. spanContext
Methods in io.opentelemetry.sdk.logs that return SpanContext Modifier and Type Method Description SpanContext
AutoValue_SdkLogRecordData. getSpanContext()
Methods in io.opentelemetry.sdk.logs with parameters of type SpanContext Modifier and Type Method Description (package private) static SdkLogRecordData
SdkLogRecordData. create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, java.lang.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, java.lang.String severityText, Value<?> body, AttributesMap attributes)
Create the log record with the given configuration.Constructors in io.opentelemetry.sdk.logs with parameters of type SpanContext Constructor Description AutoValue_SdkLogRecordData(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Attributes attributes, int totalAttributeCount, Value<?> bodyValue)
SdkReadWriteLogRecord(LogLimits logLimits, Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long timestampEpochNanos, long observedTimestampEpochNanos, SpanContext spanContext, Severity severity, java.lang.String severityText, Value<?> body, AttributesMap attributes)
-
Uses of SpanContext in io.opentelemetry.sdk.logs.data
Methods in io.opentelemetry.sdk.logs.data that return SpanContext Modifier and Type Method Description SpanContext
LogRecordData. 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 SpanContext Modifier and Type Method Description SpanContext
ExemplarData. 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 SpanContext Modifier and Type Field Description private SpanContext
AutoValue_ImmutableDoubleExemplarData. spanContext
private SpanContext
AutoValue_ImmutableLongExemplarData. spanContext
Methods in io.opentelemetry.sdk.metrics.internal.data that return SpanContext Modifier and Type Method Description SpanContext
AutoValue_ImmutableDoubleExemplarData. getSpanContext()
SpanContext
AutoValue_ImmutableLongExemplarData. getSpanContext()
Methods in io.opentelemetry.sdk.metrics.internal.data with parameters of type SpanContext Modifier and Type Method Description static 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 SpanContext Constructor Description AutoValue_ImmutableDoubleExemplarData(Attributes filteredAttributes, long epochNanos, SpanContext spanContext, double value)
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 Modifier and Type Field Description private SpanContext
ReservoirCell. spanContext
-
Uses of SpanContext in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as SpanContext Modifier and Type Field Description private SpanContext
SdkSpan. context
private SpanContext
SdkSpan. parentSpanContext
Methods in io.opentelemetry.sdk.trace that return SpanContext Modifier and Type Method Description SpanContext
ReadableSpan. getParentSpanContext()
SpanContext
SdkSpan. getParentSpanContext()
SpanContext
SpanWrapper. getParentSpanContext()
SpanContext
ReadableSpan. getSpanContext()
Returns theSpanContext
of theSpan
.SpanContext
SdkSpan. getSpanContext()
SpanContext
SpanWrapper. getSpanContext()
Methods in io.opentelemetry.sdk.trace with parameters of type SpanContext Modifier and Type Method Description Span
SdkSpan. addLink(SpanContext spanContext, Attributes attributes)
ExtendedSpanBuilder
SdkSpanBuilder. addLink(SpanContext spanContext)
ExtendedSpanBuilder
SdkSpanBuilder. addLink(SpanContext spanContext, Attributes attributes)
(package private) static SdkSpan
SdkSpan. startSpan(SpanContext context, java.lang.String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, Span parentSpan, Context parentContext, SpanLimits spanLimits, SpanProcessor spanProcessor, Clock tracerClock, Resource resource, AttributesMap attributes, java.util.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 SpanContext Constructor Description SdkSpan(SpanContext context, java.lang.String name, InstrumentationScopeInfo instrumentationScopeInfo, SpanKind kind, SpanContext parentSpanContext, SpanLimits spanLimits, SpanProcessor spanProcessor, AnchoredClock clock, Resource resource, AttributesMap attributes, java.util.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 SpanContext Modifier and Type Field Description private SpanContext
AutoValue_ImmutableLinkData. spanContext
Methods in io.opentelemetry.sdk.trace.data that return SpanContext Modifier and Type Method Description SpanContext
DelegatingSpanData. getParentSpanContext()
SpanContext
SpanData. getParentSpanContext()
Returns the parentSpanContext
.SpanContext
AutoValue_ImmutableLinkData. getSpanContext()
SpanContext
DelegatingSpanData. getSpanContext()
SpanContext
LinkData. getSpanContext()
Returns theSpanContext
of the span thisLinkData
refers to.SpanContext
SpanData. getSpanContext()
Returns theSpanContext
of the Span.Methods in io.opentelemetry.sdk.trace.data with parameters of type SpanContext Modifier and Type Method Description (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 SpanContext Constructor Description AutoValue_ImmutableLinkData(SpanContext spanContext, Attributes attributes, int totalAttributeCount)
-