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.
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.
The OpenTelemetry SDK implementation of tracing.
The data format to model traces for export.
-
Uses of SpanContext in io.opentelemetry.api.incubator.trace
Methods in io.opentelemetry.api.incubator.trace with parameters of type SpanContextModifier and TypeMethodDescriptionExtendedSpanBuilder.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 TypeClassDescriptionclassThis 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 SpanContextImmutableSpanContext.create(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean skipIdValidation) Creates a newSpanContextwith the given identifiers and options. -
Uses of SpanContext in io.opentelemetry.api.trace
Methods in io.opentelemetry.api.trace that return SpanContextModifier and TypeMethodDescriptionstatic SpanContextSpanContext.create(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState) Creates a newSpanContextwith the given identifiers and options.static SpanContextSpanContext.createFromRemoteParent(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState) Creates a newSpanContextthat was propagated from a remote parent, with the given identifiers and options.static SpanContextSpanContext.getInvalid()Returns the invalidSpanContextthat can be used for no-op operations.Span.getSpanContext()Returns theSpanContextassociated with thisSpan.Methods in io.opentelemetry.api.trace with parameters of type SpanContextModifier and TypeMethodDescriptiondefault SpanSpan.addLink(SpanContext spanContext) Adds a link to thisSpan.default SpanSpan.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.static SpanSpan.wrap(SpanContext spanContext) Returns a non-recordingSpanthat holds the providedSpanContextbut has no functionality. -
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, orSpanContext.getInvalid()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 theSpanContextassociated with this exemplar. -
Uses of SpanContext in io.opentelemetry.sdk.metrics.internal.data
Methods in io.opentelemetry.sdk.metrics.internal.data with parameters of type SpanContextModifier and TypeMethodDescriptionstatic DoubleExemplarDataImmutableDoubleExemplarData.create(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, double value) Construct a new exemplar.static LongExemplarDataImmutableLongExemplarData.create(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, long value) Construct a new exemplar. -
Uses of SpanContext in io.opentelemetry.sdk.trace
Methods in io.opentelemetry.sdk.trace that return SpanContextModifier and TypeMethodDescriptionReadableSpan.getParentSpanContext()ReadableSpan.getSpanContext()Returns theSpanContextof theSpan. -
Uses of SpanContext in io.opentelemetry.sdk.trace.data
Methods in io.opentelemetry.sdk.trace.data that return SpanContextModifier and TypeMethodDescriptionDelegatingSpanData.getParentSpanContext()SpanData.getParentSpanContext()Returns the parentSpanContext.DelegatingSpanData.getSpanContext()LinkData.getSpanContext()Returns theSpanContextof the span thisLinkDatarefers to.SpanData.getSpanContext()Returns theSpanContextof the Span.Methods in io.opentelemetry.sdk.trace.data with parameters of type SpanContextModifier and TypeMethodDescriptionstatic LinkDataLinkData.create(SpanContext spanContext) Returns a new immutableLinkData.static LinkDataLinkData.create(SpanContext spanContext, Attributes attributes) Returns a new immutableLinkData.static LinkDataLinkData.create(SpanContext spanContext, Attributes attributes, int totalAttributeCount) Returns a new immutableLinkData.