Uses of Interface
io.opentelemetry.context.Context
-
Packages that use Context Package Description io.opentelemetry.api.baggage API for associating entries with scoped operations.io.opentelemetry.api.baggage.propagation Default OpenTelemetry remote baggage propagators.io.opentelemetry.api.incubator.events io.opentelemetry.api.incubator.logs io.opentelemetry.api.incubator.metrics io.opentelemetry.api.incubator.propagation io.opentelemetry.api.incubator.trace io.opentelemetry.api.internal Interfaces and implementations that are internal to OpenTelemetry.io.opentelemetry.api.logs API for writing log appenders.io.opentelemetry.api.metrics This package describes the Metrics API that can be used to record application Metrics.io.opentelemetry.api.trace API for distributed tracing.io.opentelemetry.api.trace.propagation Default OpenTelemetry remote trace propagators.io.opentelemetry.context A context propagation mechanism which can carry scoped-values across API boundaries and between threads.io.opentelemetry.context.propagation Interfaces for definingContextPropagators
for allowing context propagation across process boundaries, for example when sending context to a remote server.io.opentelemetry.exporter.internal Internal utilities for exporters.io.opentelemetry.sdk.logs The OpenTelemetry SDK implementation of logging.io.opentelemetry.sdk.logs.export Log exporters.io.opentelemetry.sdk.logs.internal io.opentelemetry.sdk.metrics The SDK implementation of metrics.io.opentelemetry.sdk.metrics.internal.aggregator Metric aggregators.io.opentelemetry.sdk.metrics.internal.exemplar Metric exemplar extension points.io.opentelemetry.sdk.metrics.internal.state io.opentelemetry.sdk.metrics.internal.view View related internal classes.io.opentelemetry.sdk.trace The OpenTelemetry SDK implementation of tracing.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 This package containsSampler
s for selecting traces that are recorded and exported. -
-
Uses of Context in io.opentelemetry.api.baggage
Methods in io.opentelemetry.api.baggage that return Context Modifier and Type Method Description default Context
Baggage. storeInContext(Context context)
Methods in io.opentelemetry.api.baggage with parameters of type Context Modifier and Type Method Description static Baggage
Baggage. fromContext(Context context)
static Baggage
Baggage. fromContextOrNull(Context context)
default Context
Baggage. storeInContext(Context context)
-
Uses of Context in io.opentelemetry.api.baggage.propagation
Methods in io.opentelemetry.api.baggage.propagation that return Context Modifier and Type Method Description <C> Context
W3CBaggagePropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
Methods in io.opentelemetry.api.baggage.propagation with parameters of type Context Modifier and Type Method Description <C> Context
W3CBaggagePropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> void
W3CBaggagePropagator. inject(Context context, C carrier, TextMapSetter<C> setter)
-
Uses of Context in io.opentelemetry.api.incubator.events
Methods in io.opentelemetry.api.incubator.events with parameters of type Context Modifier and Type Method Description EventBuilder
DefaultEventLogger.NoOpEventBuilder. setContext(Context context)
EventBuilder
EventBuilder. setContext(Context context)
Set the context. -
Uses of Context in io.opentelemetry.api.incubator.logs
Methods in io.opentelemetry.api.incubator.logs with parameters of type Context Modifier and Type Method Description LogRecordBuilder
ExtendedDefaultLogger.NoopLogRecordBuilder. setContext(Context context)
-
Uses of Context in io.opentelemetry.api.incubator.metrics
Methods in io.opentelemetry.api.incubator.metrics with parameters of type Context Modifier and Type Method Description void
ExtendedDefaultMeter.NoopDoubleCounter. add(double value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopDoubleUpDownCounter. add(double value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopLongCounter. add(long value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopLongUpDownCounter. add(long value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopDoubleHistogram. record(double value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopLongHistogram. record(long value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopDoubleGauge. set(double value, Attributes attributes, Context context)
void
ExtendedDefaultMeter.NoopLongGauge. set(long value, Attributes attributes, Context context)
-
Uses of Context in io.opentelemetry.api.incubator.propagation
Methods in io.opentelemetry.api.incubator.propagation that return Context Modifier and Type Method Description <C> Context
PassThroughPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
static Context
ExtendedContextPropagators. extractTextMapPropagationContext(java.util.Map<java.lang.String,java.lang.String> carrier, ContextPropagators propagators)
Extract the context from a string map, which you get from HTTP headers of the metadata of a message you're processing.Methods in io.opentelemetry.api.incubator.propagation with parameters of type Context Modifier and Type Method Description <C> Context
PassThroughPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> void
PassThroughPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)
-
Uses of Context in io.opentelemetry.api.incubator.trace
Methods in io.opentelemetry.api.incubator.trace with parameters of type Context Modifier and Type Method Description ExtendedDefaultTracer.NoopSpanBuilder
ExtendedDefaultTracer.NoopSpanBuilder. setParent(Context context)
ExtendedSpanBuilder
ExtendedSpanBuilder. setParent(Context context)
Sets the parent to use from the specifiedContext
. -
Uses of Context in io.opentelemetry.api.internal
Methods in io.opentelemetry.api.internal with parameters of type Context Modifier and Type Method Description static boolean
InstrumentationUtil. shouldSuppressInstrumentation(Context context)
Checks if an automatic instrumentation should be suppressed with the provided Context. -
Uses of Context in io.opentelemetry.api.logs
Methods in io.opentelemetry.api.logs with parameters of type Context Modifier and Type Method Description LogRecordBuilder
DefaultLogger.NoopLogRecordBuilder. setContext(Context context)
LogRecordBuilder
LogRecordBuilder. setContext(Context context)
Set the context. -
Uses of Context in io.opentelemetry.api.metrics
Methods in io.opentelemetry.api.metrics with parameters of type Context Modifier and Type Method Description void
DefaultMeter.NoopDoubleCounter. add(double value, Attributes attributes, Context context)
void
DefaultMeter.NoopDoubleUpDownCounter. add(double value, Attributes attributes, Context context)
void
DefaultMeter.NoopLongCounter. add(long value, Attributes attributes, Context context)
void
DefaultMeter.NoopLongUpDownCounter. add(long value, Attributes attributes, Context context)
void
DoubleCounter. add(double value, Attributes attributes, Context context)
Records a value with a set of attributes.void
DoubleUpDownCounter. add(double value, Attributes attributes, Context context)
Records a value with a set of attributes.void
LongCounter. add(long value, Attributes attributes, Context context)
Records a value with a set of attributes.void
LongUpDownCounter. add(long value, Attributes attributes, Context context)
Records a value with a set of attributes.void
DefaultMeter.NoopDoubleHistogram. record(double value, Attributes attributes, Context context)
void
DefaultMeter.NoopLongHistogram. record(long value, Attributes attributes, Context context)
void
DoubleHistogram. record(double value, Attributes attributes, Context context)
Records a value with a set of attributes.void
LongHistogram. record(long value, Attributes attributes, Context context)
Records a value with a set of attributes.void
DefaultMeter.NoopDoubleGauge. set(double value, Attributes attributes, Context context)
void
DefaultMeter.NoopLongGauge. set(long value, Attributes attributes, Context context)
void
DoubleGauge. set(double value, Attributes attributes, Context context)
Records a value with a set of attributes.void
LongGauge. set(long value, Attributes attributes, Context context)
Records a value with a set of attributes. -
Uses of Context in io.opentelemetry.api.trace
Methods in io.opentelemetry.api.trace that return Context Modifier and Type Method Description default Context
Span. storeInContext(Context context)
Methods in io.opentelemetry.api.trace with parameters of type Context Modifier and Type Method Description static Span
Span. fromContext(Context context)
static Span
Span. fromContextOrNull(Context context)
DefaultTracer.NoopSpanBuilder
DefaultTracer.NoopSpanBuilder. setParent(Context context)
SpanBuilder
SpanBuilder. setParent(Context context)
Sets the parent to use from the specifiedContext
.default Context
Span. storeInContext(Context context)
-
Uses of Context in io.opentelemetry.api.trace.propagation
Methods in io.opentelemetry.api.trace.propagation that return Context Modifier and Type Method Description <C> Context
W3CTraceContextPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
Methods in io.opentelemetry.api.trace.propagation with parameters of type Context Modifier and Type Method Description <C> Context
W3CTraceContextPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> void
W3CTraceContextPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)
-
Uses of Context in io.opentelemetry.context
Classes in io.opentelemetry.context that implement Context Modifier and Type Class Description (package private) class
ArrayBasedContext
Fields in io.opentelemetry.context declared as Context Modifier and Type Field Description private Context
ThreadLocalContextStorage.ScopeImpl. beforeAttach
private Context
ContextExecutorService. context
(package private) Context
StrictContextStorage.CallerStackTrace. context
private static Context
ArrayBasedContext. ROOT
private Context
ThreadLocalContextStorage.ScopeImpl. toAttach
Fields in io.opentelemetry.context with type parameters of type Context Modifier and Type Field Description private static java.lang.ThreadLocal<Context>
ThreadLocalContextStorage. THREAD_LOCAL_STORAGE
Methods in io.opentelemetry.context that return Context Modifier and Type Method Description (package private) Context
ContextExecutorService. context()
static Context
Context. current()
Return the context associated with the currentScope
.Context
ContextStorage. current()
Returns the currentContext
.Context
StrictContextStorage. current()
Context
ThreadLocalContextStorage. current()
(package private) static Context
ArrayBasedContext. root()
static Context
Context. root()
default Context
ContextStorage. root()
Context
ImplicitContextKeyed. storeInContext(Context context)
<V> Context
ArrayBasedContext. with(ContextKey<V> key, V value)
<V> Context
Context. with(ContextKey<V> k1, V v1)
Returns a new context with the given key value set.default Context
Context. with(ImplicitContextKeyed value)
Returns a newContext
with the givenImplicitContextKeyed
set.Methods in io.opentelemetry.context with parameters of type Context Modifier and Type Method Description Scope
ContextStorage. attach(Context toAttach)
Scope
StrictContextStorage. attach(Context context)
Scope
ThreadLocalContextStorage. attach(Context toAttach)
Context
ImplicitContextKeyed. storeInContext(Context context)
protected static <T> java.util.Collection<? extends java.util.concurrent.Callable<T>>
ForwardingExecutorService. wrap(Context context, java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks)
Constructors in io.opentelemetry.context with parameters of type Context Constructor Description CallerStackTrace(Context context)
ContextExecutorService(Context context, java.util.concurrent.ExecutorService delegate)
ContextScheduledExecutorService(Context context, java.util.concurrent.ScheduledExecutorService delegate)
ScopeImpl(Context beforeAttach, Context toAttach)
-
Uses of Context in io.opentelemetry.context.propagation
Methods in io.opentelemetry.context.propagation that return Context Modifier and Type Method Description <C> Context
MultiTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> Context
NoopTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> Context
TextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
Extracts data from upstream.Methods in io.opentelemetry.context.propagation with parameters of type Context Modifier and Type Method Description <C> Context
MultiTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> Context
NoopTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
<C> Context
TextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)
Extracts data from upstream.<C> void
MultiTextMapPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)
<C> void
NoopTextMapPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)
<C> void
TextMapPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)
Injects data for downstream consumers, for example as HTTP headers. -
Uses of Context in io.opentelemetry.exporter.internal
Methods in io.opentelemetry.exporter.internal with parameters of type Context Modifier and Type Method Description static boolean
InstrumentationUtil. shouldSuppressInstrumentation(Context context)
Deprecated.Checks if an automatic instrumentation should be suppressed with the provided Context. -
Uses of Context in io.opentelemetry.sdk.logs
Fields in io.opentelemetry.sdk.logs declared as Context Modifier and Type Field Description private Context
SdkLogRecordBuilder. context
Methods in io.opentelemetry.sdk.logs with parameters of type Context Modifier and Type Method Description void
LogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)
Called when aLogger
LogRecordBuilder.emit()
s a log record.void
MultiLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)
void
NoopLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)
SdkLogRecordBuilder
SdkLogRecordBuilder. setContext(Context context)
-
Uses of Context in io.opentelemetry.sdk.logs.export
Methods in io.opentelemetry.sdk.logs.export with parameters of type Context Modifier and Type Method Description void
BatchLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)
void
SimpleLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)
-
Uses of Context in io.opentelemetry.sdk.logs.internal
Methods in io.opentelemetry.sdk.logs.internal with parameters of type Context Modifier and Type Method Description EventBuilder
SdkEventBuilder. setContext(Context context)
-
Uses of Context in io.opentelemetry.sdk.metrics
Methods in io.opentelemetry.sdk.metrics with parameters of type Context Modifier and Type Method Description void
SdkDoubleCounter. add(double increment, Attributes attributes, Context context)
void
SdkDoubleUpDownCounter. add(double increment, Attributes attributes, Context context)
void
SdkLongCounter. add(long increment, Attributes attributes, Context context)
void
SdkLongUpDownCounter. add(long increment, Attributes attributes, Context context)
void
SdkDoubleHistogram. record(double value, Attributes attributes, Context context)
void
SdkLongHistogram. record(long value, Attributes attributes, Context context)
void
SdkMeter.MultiWritableMetricStorage. recordDouble(double value, Attributes attributes, Context context)
void
SdkMeter.MultiWritableMetricStorage. recordLong(long value, Attributes attributes, Context context)
void
SdkDoubleGauge. set(double value, Attributes attributes, Context context)
void
SdkLongGauge. set(long value, Attributes attributes, Context context)
-
Uses of Context in io.opentelemetry.sdk.metrics.internal.aggregator
Methods in io.opentelemetry.sdk.metrics.internal.aggregator with parameters of type Context Modifier and Type Method Description void
AggregatorHandle. recordDouble(double value, Attributes attributes, Context context)
void
AggregatorHandle. recordLong(long value, Attributes attributes, Context context)
-
Uses of Context in io.opentelemetry.sdk.metrics.internal.exemplar
Methods in io.opentelemetry.sdk.metrics.internal.exemplar with parameters of type Context Modifier and Type Method Description private static boolean
TraceBasedExemplarFilter. hasSampledTrace(Context context)
void
ExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)
Offers adouble
measurement to be sampled.void
FilteredExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)
void
FixedSizeExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)
void
LongToDoubleExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)
void
NoopExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)
void
ExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)
Offers along
measurement to be sampled.void
FilteredExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)
void
FixedSizeExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)
void
HistogramExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)
void
LongToDoubleExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)
void
NoopExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)
private void
ReservoirCell. offerMeasurement(Attributes attributes, Context context)
(package private) void
ReservoirCell. recordDoubleMeasurement(double value, Attributes attributes, Context context)
Record the long measurement to the cell.(package private) void
ReservoirCell. recordLongMeasurement(long value, Attributes attributes, Context context)
Record the long measurement to the cell.int
HistogramExemplarReservoir.HistogramCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)
int
HistogramExemplarReservoir.HistogramCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)
int
RandomFixedSizeExemplarReservoir.RandomCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)
int
RandomFixedSizeExemplarReservoir.RandomCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)
int
ReservoirCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)
Determine the index of thecells
to record the measurement to.int
ReservoirCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)
Determine the index of thecells
to record the measurement to.boolean
AlwaysOffFilter. shouldSampleMeasurement(double value, Attributes attributes, Context context)
boolean
AlwaysOffFilter. shouldSampleMeasurement(long value, Attributes attributes, Context context)
boolean
AlwaysOnFilter. shouldSampleMeasurement(double value, Attributes attributes, Context context)
boolean
AlwaysOnFilter. shouldSampleMeasurement(long value, Attributes attributes, Context context)
boolean
ExemplarFilter. shouldSampleMeasurement(double value, Attributes attributes, Context context)
Returns whether or not a reservoir should attempt to filter a measurement.boolean
ExemplarFilter. shouldSampleMeasurement(long value, Attributes attributes, Context context)
Returns whether or not a reservoir should attempt to filter a measurement.boolean
TraceBasedExemplarFilter. shouldSampleMeasurement(double value, Attributes attributes, Context context)
boolean
TraceBasedExemplarFilter. shouldSampleMeasurement(long value, Attributes attributes, Context context)
-
Uses of Context in io.opentelemetry.sdk.metrics.internal.state
Methods in io.opentelemetry.sdk.metrics.internal.state with parameters of type Context Modifier and Type Method Description private AggregatorHandle<T,U>
DefaultSynchronousMetricStorage. getAggregatorHandle(java.util.concurrent.ConcurrentHashMap<Attributes,AggregatorHandle<T,U>> aggregatorHandles, Attributes attributes, Context context)
void
DefaultSynchronousMetricStorage. recordDouble(double value, Attributes attributes, Context context)
void
EmptyMetricStorage. recordDouble(double value, Attributes attributes, Context context)
void
WriteableMetricStorage. recordDouble(double value, Attributes attributes, Context context)
Records a measurement.void
DefaultSynchronousMetricStorage. recordLong(long value, Attributes attributes, Context context)
void
EmptyMetricStorage. recordLong(long value, Attributes attributes, Context context)
void
WriteableMetricStorage. recordLong(long value, Attributes attributes, Context context)
Records a measurement. -
Uses of Context in io.opentelemetry.sdk.metrics.internal.view
Methods in io.opentelemetry.sdk.metrics.internal.view with parameters of type Context Modifier and Type Method Description Attributes
AdviceAttributesProcessor. process(Attributes incoming, Context context)
Attributes
AttributesProcessor.AppendingAttributesProcessor. process(Attributes incoming, Context context)
Attributes
AttributesProcessor.AttributeKeyFilteringProcessor. process(Attributes incoming, Context context)
Attributes
AttributesProcessor.BaggageAppendingAttributesProcessor. process(Attributes incoming, Context context)
Attributes
AttributesProcessor.JoinedAttributesProcessor. process(Attributes incoming, Context context)
abstract Attributes
AttributesProcessor. process(Attributes incoming, Context context)
Manipulates a set of attributes, returning the desired set.Attributes
NoopAttributesProcessor. process(Attributes incoming, Context context)
-
Uses of Context in io.opentelemetry.sdk.trace
Fields in io.opentelemetry.sdk.trace declared as Context Modifier and Type Field Description private Context
SdkSpanBuilder. parent
Methods in io.opentelemetry.sdk.trace with parameters of type Context Modifier and Type Method Description void
MultiSpanProcessor. onStart(Context parentContext, ReadWriteSpan readWriteSpan)
void
NoopSpanProcessor. onStart(Context parentContext, ReadWriteSpan span)
void
SpanProcessor. onStart(Context parentContext, ReadWriteSpan span)
Called when aSpan
is started, if theSpan.isRecording()
returns true.ExtendedSpanBuilder
SdkSpanBuilder. setParent(Context context)
(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. -
Uses of Context in io.opentelemetry.sdk.trace.export
Methods in io.opentelemetry.sdk.trace.export with parameters of type Context Modifier and Type Method Description void
BatchSpanProcessor. onStart(Context parentContext, ReadWriteSpan span)
void
SimpleSpanProcessor. onStart(Context parentContext, ReadWriteSpan span)
-
Uses of Context in io.opentelemetry.sdk.trace.samplers
Methods in io.opentelemetry.sdk.trace.samplers with parameters of type Context Modifier and Type Method Description SamplingResult
AlwaysOffSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)
SamplingResult
AlwaysOnSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)
SamplingResult
ParentBasedSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)
SamplingResult
Sampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)
Called duringSpan
creation to make a sampling samplingResult.SamplingResult
TraceIdRatioBasedSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)
-