A B C D E F G H I L O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addSpanProcessor(SpanProcessor) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Add a SpanProcessor to the span pipeline that will be built.
- alwaysOff() - Static method in interface io.opentelemetry.sdk.trace.samplers.Sampler
- alwaysOn() - Static method in interface io.opentelemetry.sdk.trace.samplers.Sampler
B
- BatchSpanProcessor - Class in io.opentelemetry.sdk.trace.export
-
Implementation of the
SpanProcessorthat batches spans exported by the SDK then pushes them to the exporter pipeline. - BatchSpanProcessorBuilder - Class in io.opentelemetry.sdk.trace.export
-
Builder class for
BatchSpanProcessor. - build() - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Returns a new
BatchSpanProcessorthat batches, then converts spans to proto and forwards them to the givenspanExporter. - build() - Method in class io.opentelemetry.sdk.trace.samplers.ParentBasedSamplerBuilder
-
Builds the
ParentBasedSampler. - build() - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Create a new TraceSdkProvider instance.
- build() - Method in class io.opentelemetry.sdk.trace.SpanLimitsBuilder
-
Builds and returns a
SpanLimitswith the values of this builder. - builder() - Static method in class io.opentelemetry.sdk.trace.SdkTracerProvider
-
Returns a new
SdkTracerProviderBuilderforSdkTracerProvider. - builder() - Static method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns a new
SpanLimitsBuilderto construct aSpanLimits. - builder(SpanExporter) - Static method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
-
Returns a new Builder for
BatchSpanProcessor.
C
- close() - Method in interface io.opentelemetry.sdk.trace.export.SpanExporter
-
Closes this
SpanExporter, releasing any resources. - close() - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
-
Attempts to stop all the activity for this
Tracer. - close() - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Closes this
SpanProcessorafter processing any remaining spans, releasing any resources. - composite(SpanExporter...) - Static method in interface io.opentelemetry.sdk.trace.export.SpanExporter
-
Returns a
SpanExporterwhich simply delegates all exports to theexportersin order. - composite(SpanProcessor...) - Static method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Returns a
SpanProcessorwhich simply delegates all processing to theprocessorsin order. - composite(Iterable<SpanExporter>) - Static method in interface io.opentelemetry.sdk.trace.export.SpanExporter
-
Returns a
SpanExporterwhich simply delegates all exports to theexportersin order. - composite(Iterable<SpanProcessor>) - Static method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Returns a
SpanProcessorwhich simply delegates all processing to theprocessorsin order. - create(long, String, Attributes) - Static method in interface io.opentelemetry.sdk.trace.data.EventData
-
Returns a new immutable
EventData. - create(long, String, Attributes, int) - Static method in interface io.opentelemetry.sdk.trace.data.EventData
-
Returns a new immutable
EventData. - create(SpanContext) - Static method in interface io.opentelemetry.sdk.trace.data.LinkData
-
Returns a new immutable
LinkData. - create(SpanContext, Attributes) - Static method in interface io.opentelemetry.sdk.trace.data.LinkData
-
Returns a new immutable
LinkData. - create(SpanContext, Attributes, int) - Static method in interface io.opentelemetry.sdk.trace.data.LinkData
-
Returns a new immutable
LinkData. - create(StatusCode, String) - Static method in interface io.opentelemetry.sdk.trace.data.StatusData
- create(SpanExporter) - Static method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
-
Returns a new
SimpleSpanProcessorwhich exports spans to theSpanExportersynchronously. - create(SamplingDecision) - Static method in interface io.opentelemetry.sdk.trace.samplers.SamplingResult
- create(SamplingDecision, Attributes) - Static method in interface io.opentelemetry.sdk.trace.samplers.SamplingResult
-
Returns a
SamplingResultwith the givenattributesandSamplingResult.getDecision()returningdecision.
D
- DROP - io.opentelemetry.sdk.trace.samplers.SamplingDecision
-
Span is dropped.
E
- error() - Static method in interface io.opentelemetry.sdk.trace.data.StatusData
-
Returns a
StatusDataindicating an error occurred. - EventData - Interface in io.opentelemetry.sdk.trace.data
-
Data representation of a event.
- export(Collection<SpanData>) - Method in interface io.opentelemetry.sdk.trace.export.SpanExporter
-
Called to export sampled
Spans.
F
- flush() - Method in interface io.opentelemetry.sdk.trace.export.SpanExporter
-
Exports the collection of sampled
Spans that have not yet been exported. - forceFlush() - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
- forceFlush() - Method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
- forceFlush() - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
-
Requests the active span processor to process all span events that have not yet been processed and returns a
CompletableResultCodewhich is completed when the flush is finished. - forceFlush() - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Processes all span events that have not yet been processed.
G
- generateSpanId() - Method in interface io.opentelemetry.sdk.trace.IdGenerator
-
Generates a new valid
SpanId. - generateTraceId() - Method in interface io.opentelemetry.sdk.trace.IdGenerator
-
Generates a new valid
TraceId. - get(String) - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
- get(String, String) - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
- getAttributes() - Method in interface io.opentelemetry.sdk.trace.data.EventData
-
Return the attributes of the
EventData. - getAttributes() - Method in interface io.opentelemetry.sdk.trace.data.LinkData
-
Returns the set of attributes.
- getAttributes() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the attributes recorded for this
Span. - getAttributes() - Method in interface io.opentelemetry.sdk.trace.samplers.SamplingResult
-
Return tags which will be attached to the span.
- getDecision() - Method in interface io.opentelemetry.sdk.trace.samplers.SamplingResult
-
Return decision on whether a span should be recorded, recorded and sampled or not recorded.
- getDefault() - Static method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns the default
SpanLimits. - getDescription() - Method in interface io.opentelemetry.sdk.trace.data.StatusData
-
Returns the description of this
Statusfor human consumption. - getDescription() - Method in interface io.opentelemetry.sdk.trace.samplers.Sampler
-
Returns the description of this
Sampler. - getDroppedAttributesCount() - Method in interface io.opentelemetry.sdk.trace.data.EventData
-
Returns the dropped attributes count of this event.
- getEndEpochNanos() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the end epoch timestamp in nanos of this
Span. - getEpochNanos() - Method in interface io.opentelemetry.sdk.trace.data.EventData
-
Returns the epoch time in nanos of this event.
- getEvents() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the timed events recorded for this
Span. - getInstrumentationLibraryInfo() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the instrumentation library specified when creating the tracer which produced this
Span. - getInstrumentationLibraryInfo() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
Returns the instrumentation library specified when creating the tracer which produced this span.
- getKind() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the kind of this
Span. - getKind() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
Returns the kind of the span.
- getLatencyNanos() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
Returns the latency of the
Spanin nanos. - getLinks() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns links recorded for this
Span. - getMaxNumberOfAttributes() - Method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns the global default max number of attributes per
Span. - getMaxNumberOfAttributesPerEvent() - Method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns the global default max number of attributes per event.
- getMaxNumberOfAttributesPerLink() - Method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns the global default max number of attributes per link.
- getMaxNumberOfEvents() - Method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns the global default max number of events per
Span. - getMaxNumberOfLinks() - Method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns the global default max number of links per
Span. - getName() - Method in interface io.opentelemetry.sdk.trace.data.EventData
-
Return the name of the
EventData. - getName() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the name of this
Span. - getName() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
Returns the name of the
Span. - getParentSpanContext() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the parent
SpanContext. - getParentSpanId() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the parent
SpanId. - getResource() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the resource of this
Span. - getSampler() - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
-
Returns the configured
Sampler. - getSpanContext() - Method in interface io.opentelemetry.sdk.trace.data.LinkData
-
Returns the
SpanContextof the span thisLinkDatarefers to. - getSpanContext() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the
SpanContextof the Span. - getSpanContext() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
Returns the
SpanContextof theSpan. - getSpanId() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Gets the span id for this span.
- getSpanLimits() - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
-
Returns the
SpanLimitsthat are currently applied to created spans. - getStartEpochNanos() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the start epoch timestamp in nanos of this
Span. - getStatus() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns the
Status. - getStatusCode() - Method in interface io.opentelemetry.sdk.trace.data.StatusData
-
Returns the status code.
- getTotalAttributeCount() - Method in interface io.opentelemetry.sdk.trace.data.EventData
-
The total number of attributes that were recorded on this Event.
- getTotalAttributeCount() - Method in interface io.opentelemetry.sdk.trace.data.LinkData
-
The total number of attributes that were recorded on this Link.
- getTotalAttributeCount() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
The total number of attributes that were recorded on this span.
- getTotalRecordedEvents() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
The total number of
EventDataevents that were recorded on this span. - getTotalRecordedLinks() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
The total number of
LinkDatalinks that were recorded on this span. - getTraceId() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Gets the trace id for this span.
- getUpdatedTraceState(TraceState) - Method in interface io.opentelemetry.sdk.trace.samplers.SamplingResult
-
Return an optionally-updated
TraceState, based on the parent TraceState.
H
- hasEnded() - Method in interface io.opentelemetry.sdk.trace.data.SpanData
-
Returns whether this Span has already been ended.
- hasEnded() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
Returns whether this Span has already been ended.
I
- IdGenerator - Interface in io.opentelemetry.sdk.trace
-
Interface used by the
SdkTracerto generate newSpanIds andTraceIds. - io.opentelemetry.sdk.trace - package io.opentelemetry.sdk.trace
-
The OpenTelemetry SDK implementation of tracing.
- io.opentelemetry.sdk.trace.data - package io.opentelemetry.sdk.trace.data
-
The data format to model traces for export.
- io.opentelemetry.sdk.trace.export - package io.opentelemetry.sdk.trace.export
-
Utilities that allow tracing services to export data for sampled spans, as well as providing in-process span processing APIs.
- io.opentelemetry.sdk.trace.samplers - package io.opentelemetry.sdk.trace.samplers
-
This package contains
Samplers for selecting traces that are recorded and exported. - isEndRequired() - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
- isEndRequired() - Method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
- isEndRequired() - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Returns
trueif thisSpanProcessorrequires end events. - isStartRequired() - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
- isStartRequired() - Method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
- isStartRequired() - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Returns
trueif thisSpanProcessorrequires start events.
L
- LinkData - Interface in io.opentelemetry.sdk.trace.data
-
Data representation of a link.
O
- ok() - Static method in interface io.opentelemetry.sdk.trace.data.StatusData
-
Returns a
StatusDataindicating the operation has been validated by an application developer or operator to have completed successfully. - onEnd(ReadableSpan) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
- onEnd(ReadableSpan) - Method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
- onEnd(ReadableSpan) - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Called when a
Spanis ended, if theSpan.isRecording()returns true. - onStart(Context, ReadWriteSpan) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
- onStart(Context, ReadWriteSpan) - Method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
- onStart(Context, ReadWriteSpan) - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Called when a
Spanis started, if theSpan.isRecording()returns true.
P
- parentBased(Sampler) - Static method in interface io.opentelemetry.sdk.trace.samplers.Sampler
-
Returns a
Samplerthat always makes the same decision as the parentSpanto whether or not to sample. - parentBasedBuilder(Sampler) - Static method in interface io.opentelemetry.sdk.trace.samplers.Sampler
-
Returns a
ParentBasedSamplerBuilderthat enables configuration of the parent-based sampling strategy. - ParentBasedSamplerBuilder - Class in io.opentelemetry.sdk.trace.samplers
-
A builder for creating ParentBased sampler instances.
R
- random() - Static method in interface io.opentelemetry.sdk.trace.IdGenerator
-
Returns a
IdGeneratorthat generates purely random IDs, which is the default for OpenTelemetry. - ReadableSpan - Interface in io.opentelemetry.sdk.trace
-
The extend Span interface used by the SDK.
- ReadWriteSpan - Interface in io.opentelemetry.sdk.trace
-
A combination of the write methods from the
Spaninterface and the read methods from theReadableSpaninterface. - RECORD_AND_SAMPLE - io.opentelemetry.sdk.trace.samplers.SamplingDecision
-
Span is recorded and sampled.
- RECORD_ONLY - io.opentelemetry.sdk.trace.samplers.SamplingDecision
-
Span is recorded only.
S
- Sampler - Interface in io.opentelemetry.sdk.trace.samplers
-
A Sampler is used to make decisions on
Spansampling. - SamplingDecision - Enum in io.opentelemetry.sdk.trace.samplers
-
A decision on whether a span should be recorded, recorded and sampled or dropped.
- SamplingResult - Interface in io.opentelemetry.sdk.trace.samplers
-
Sampling result returned by
Sampler.shouldSample(Context, String, String, SpanKind, Attributes, List). - SdkTracerProvider - Class in io.opentelemetry.sdk.trace
-
Tracerprovider implementation forTracerProvider. - SdkTracerProviderBuilder - Class in io.opentelemetry.sdk.trace
-
Builder of
SdkTracerProvider. - setClock(Clock) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Assign a
Clock. - setExporterTimeout(long, TimeUnit) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Sets the maximum time an export will be allowed to run before being cancelled.
- setExporterTimeout(Duration) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Sets the maximum time an export will be allowed to run before being cancelled.
- setIdGenerator(IdGenerator) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Assign an
IdGenerator. - setLocalParentNotSampled(Sampler) - Method in class io.opentelemetry.sdk.trace.samplers.ParentBasedSamplerBuilder
-
Sets the
Samplerto use when there is a local parent that was not sampled. - setLocalParentSampled(Sampler) - Method in class io.opentelemetry.sdk.trace.samplers.ParentBasedSamplerBuilder
-
Sets the
Samplerto use when there is a local parent that was sampled. - setMaxExportBatchSize(int) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Sets the maximum batch size for every export.
- setMaxNumberOfAttributes(int) - Method in class io.opentelemetry.sdk.trace.SpanLimitsBuilder
-
Sets the global default max number of attributes per
Span. - setMaxNumberOfAttributesPerEvent(int) - Method in class io.opentelemetry.sdk.trace.SpanLimitsBuilder
-
Sets the global default max number of attributes per event.
- setMaxNumberOfAttributesPerLink(int) - Method in class io.opentelemetry.sdk.trace.SpanLimitsBuilder
-
Sets the global default max number of attributes per link.
- setMaxNumberOfEvents(int) - Method in class io.opentelemetry.sdk.trace.SpanLimitsBuilder
-
Sets the global default max number of events per
Span. - setMaxNumberOfLinks(int) - Method in class io.opentelemetry.sdk.trace.SpanLimitsBuilder
-
Sets the global default max number of links per
Span. - setMaxQueueSize(int) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Sets the maximum number of Spans that are kept in the queue before start dropping.
- setRemoteParentNotSampled(Sampler) - Method in class io.opentelemetry.sdk.trace.samplers.ParentBasedSamplerBuilder
-
Sets the
Samplerto use when there is a remote parent that was not sampled. - setRemoteParentSampled(Sampler) - Method in class io.opentelemetry.sdk.trace.samplers.ParentBasedSamplerBuilder
-
Sets the
Samplerto use when there is a remote parent that was sampled. - setResource(Resource) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Assign a
Resourceto be attached to all Spans created by Tracers. - setSampler(Sampler) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Assign a
Samplerto use for sampling traces. - setScheduleDelay(long, TimeUnit) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Sets the delay interval between two consecutive exports.
- setScheduleDelay(Duration) - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder
-
Sets the delay interval between two consecutive exports.
- setSpanLimits(SpanLimits) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Assign an initial
SpanLimitsthat should be used with this SDK. - setSpanLimits(Supplier<SpanLimits>) - Method in class io.opentelemetry.sdk.trace.SdkTracerProviderBuilder
-
Assign a
SupplierofSpanLimits. - shouldSample(Context, String, String, SpanKind, Attributes, List<LinkData>) - Method in interface io.opentelemetry.sdk.trace.samplers.Sampler
-
Called during
Spancreation to make a sampling samplingResult. - shutdown() - Method in class io.opentelemetry.sdk.trace.export.BatchSpanProcessor
- shutdown() - Method in class io.opentelemetry.sdk.trace.export.SimpleSpanProcessor
- shutdown() - Method in interface io.opentelemetry.sdk.trace.export.SpanExporter
-
Called when
SdkTracerProvider.shutdown()is called, if thisSpanExporteris registered to aSdkTracerProviderobject. - shutdown() - Method in class io.opentelemetry.sdk.trace.SdkTracerProvider
-
Attempts to stop all the activity for this
Tracer. - shutdown() - Method in interface io.opentelemetry.sdk.trace.SpanProcessor
-
Processes all span events that have not yet been processed and closes used resources.
- SimpleSpanProcessor - Class in io.opentelemetry.sdk.trace.export
-
An implementation of the
SpanProcessorthat converts theReadableSpantoSpanDataand passes it directly to the configured exporter. - SpanData - Interface in io.opentelemetry.sdk.trace.data
-
Immutable representation of all data collected by the
Spanclass. - SpanExporter - Interface in io.opentelemetry.sdk.trace.export
-
An interface that allows different tracing services to export recorded data for sampled spans in their own format.
- SpanLimits - Class in io.opentelemetry.sdk.trace
-
Class that holds limits enforced during span recording.
- SpanLimits() - Constructor for class io.opentelemetry.sdk.trace.SpanLimits
- SpanLimitsBuilder - Class in io.opentelemetry.sdk.trace
-
Builder for
SpanLimits. - SpanProcessor - Interface in io.opentelemetry.sdk.trace
-
SpanProcessor is the interface
TracerSdkuses to allow synchronous hooks for when aSpanis started or when aSpanis ended. - StatusData - Interface in io.opentelemetry.sdk.trace.data
-
Defines the status of a
Spanby providing a standardStatusCodein conjunction with an optional descriptive message.
T
- toBuilder() - Method in class io.opentelemetry.sdk.trace.SpanLimits
-
Returns a
SpanLimitsBuilderinitialized to the same property values as the current instance. - toSpanData() - Method in interface io.opentelemetry.sdk.trace.ReadableSpan
-
This converts this instance into an immutable SpanData instance, for use in export.
- traceIdRatioBased(double) - Static method in interface io.opentelemetry.sdk.trace.samplers.Sampler
-
Returns a new TraceIdRatioBased
Sampler.
U
- unset() - Static method in interface io.opentelemetry.sdk.trace.data.StatusData
-
Returns the default
StatusData.
V
- valueOf(String) - Static method in enum io.opentelemetry.sdk.trace.samplers.SamplingDecision
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.opentelemetry.sdk.trace.samplers.SamplingDecision
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages