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 SpanContextExtendedDefaultTracer.NoopSpanBuilder.spanContextMethods 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 classclassThis 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
Fields in io.opentelemetry.api.trace declared as SpanContextModifier and TypeFieldDescriptionprivate SpanContextDefaultTracer.NoopSpanBuilder.spanContextprivate final SpanContextPropagatedSpan.spanContextMethods 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.PropagatedSpan.getSpanContext()Span.getSpanContext()Returns theSpanContextassociated 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 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.(package private) static SpanPropagatedSpan.create(SpanContext spanContext) static SpanSpan.wrap(SpanContext spanContext) Returns a non-recordingSpanthat holds the providedSpanContextbut 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 SpanContextW3CTraceContextPropagator.extractContextFromTraceParent(String traceparent) private static <C> SpanContextW3CTraceContextPropagator.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 intExemplarMarshaler.calculateSize(long timeUnixNano, ProtoFieldInfo valueField, ExemplarData value, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) Constructors in io.opentelemetry.exporter.internal.otlp.metrics with parameters of type SpanContextModifierConstructorDescriptionprivateExemplarMarshaler(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 SpanContextAutoValue_SdkLogRecordData.spanContextprivate final SpanContextSdkReadWriteLogRecord.spanContextMethods in io.opentelemetry.sdk.logs that return SpanContextMethods in io.opentelemetry.sdk.logs with parameters of type SpanContextModifier and TypeMethodDescription(package private) static SdkLogRecordDataSdkLogRecordData.create(Resource resource, InstrumentationScopeInfo instrumentationScopeInfo, long epochNanos, long observedEpochNanos, SpanContext spanContext, Severity severity, String severityText, Value<?> body, Attributes attributes, int totalAttributeCount) (package private) static SdkReadWriteLogRecordSdkReadWriteLogRecord.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) privateSdkReadWriteLogRecord(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, 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
Fields in io.opentelemetry.sdk.metrics.internal.data declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContextAutoValue_ImmutableDoubleExemplarData.spanContextprivate final SpanContextAutoValue_ImmutableLongExemplarData.spanContextMethods 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 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.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 SpanContextSdkSpan.contextprivate final SpanContextSdkSpan.parentSpanContextMethods in io.opentelemetry.sdk.trace that return SpanContextModifier and TypeMethodDescriptionReadableSpan.getParentSpanContext()SdkSpan.getParentSpanContext()SpanWrapper.getParentSpanContext()ReadableSpan.getSpanContext()Returns theSpanContextof 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 SdkSpanSdkSpan.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 SpanContextModifierConstructorDescriptionprivateSdkSpan(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 SpanContextAutoValue_ImmutableLinkData.spanContextMethods 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 theSpanContextof the span thisLinkDatarefers to.SpanData.getSpanContext()Returns theSpanContextof the Span.Methods in io.opentelemetry.sdk.trace.data with parameters of type SpanContextModifier and TypeMethodDescription(package private) static LinkDataImmutableLinkData.create(SpanContext spanContext) (package private) static LinkDataImmutableLinkData.create(SpanContext spanContext, Attributes attributes) (package private) static LinkDataImmutableLinkData.create(SpanContext spanContext, Attributes attributes, int totalAttributeCount) static 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.Constructors in io.opentelemetry.sdk.trace.data with parameters of type SpanContextModifierConstructorDescription(package private)AutoValue_ImmutableLinkData(SpanContext spanContext, Attributes attributes, int totalAttributeCount)