Uses of Interface
io.opentelemetry.context.Context
Packages that use Context
Package
Description
API for associating entries with scoped operations.
Default OpenTelemetry remote baggage propagators.
Interfaces and implementations that are internal to OpenTelemetry.
API for writing log appenders.
This package describes the Metrics API that can be used to record application Metrics.
API for distributed tracing.
Default OpenTelemetry remote trace propagators.
A context propagation mechanism which can carry scoped-values across API boundaries and between
threads.
Interfaces for defining
ContextPropagators for
allowing context propagation across process boundaries, for example when sending context to a
remote server.Internal utilities for exporters.
The OpenTelemetry SDK implementation of logging.
Log exporters.
Metric aggregators.
Metric exemplar extension points.
View related internal classes.
The OpenTelemetry SDK implementation of tracing.
Utilities that allow tracing services to export data for sampled spans, as well as providing
in-process span processing APIs.
This package contains
Samplers for selecting traces
that are recorded and exported.-
Uses of Context in io.opentelemetry.api.baggage
Methods in io.opentelemetry.api.baggage that return ContextMethods in io.opentelemetry.api.baggage with parameters of type ContextModifier and TypeMethodDescriptionstatic BaggageBaggage.fromContext(Context context) static BaggageBaggage.fromContextOrNull(Context context) default ContextBaggage.storeInContext(Context context) -
Uses of Context in io.opentelemetry.api.baggage.propagation
Methods in io.opentelemetry.api.baggage.propagation that return ContextModifier and TypeMethodDescription<C> ContextW3CBaggagePropagator.extract(Context context, C carrier, TextMapGetter<C> getter) Methods in io.opentelemetry.api.baggage.propagation with parameters of type ContextModifier and TypeMethodDescription<C> ContextW3CBaggagePropagator.extract(Context context, C carrier, TextMapGetter<C> getter) <C> voidW3CBaggagePropagator.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 -
Uses of Context in io.opentelemetry.api.incubator.propagation
Methods in io.opentelemetry.api.incubator.propagation that return ContextModifier and TypeMethodDescription<C> ContextPassThroughPropagator.extract(Context context, C carrier, TextMapGetter<C> getter) static ContextExtendedContextPropagators.extractTextMapPropagationContext(Map<String, 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 ContextModifier and TypeMethodDescription<C> ContextPassThroughPropagator.extract(Context context, C carrier, TextMapGetter<C> getter) <C> voidPassThroughPropagator.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 ContextModifier and TypeMethodDescriptionSets 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 ContextModifier and TypeMethodDescriptionstatic booleanInstrumentationUtil.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 -
Uses of Context in io.opentelemetry.api.metrics
Methods in io.opentelemetry.api.metrics with parameters of type ContextModifier and TypeMethodDescriptionvoidDoubleCounter.add(double value, Attributes attributes, Context context) Records a value with a set of attributes.voidDoubleUpDownCounter.add(double value, Attributes attributes, Context context) Records a value with a set of attributes.voidLongCounter.add(long value, Attributes attributes, Context context) Records a value with a set of attributes.voidLongUpDownCounter.add(long value, Attributes attributes, Context context) Records a value with a set of attributes.voidDoubleHistogram.record(double value, Attributes attributes, Context context) Records a value with a set of attributes.voidLongHistogram.record(long value, Attributes attributes, Context context) Records a value with a set of attributes.voidDoubleGauge.set(double value, Attributes attributes, Context context) Records a value with a set of attributes.voidLongGauge.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 ContextMethods in io.opentelemetry.api.trace with parameters of type ContextModifier and TypeMethodDescriptionstatic SpanSpan.fromContext(Context context) static SpanSpan.fromContextOrNull(Context context) Sets the parent to use from the specifiedContext.default ContextSpan.storeInContext(Context context) -
Uses of Context in io.opentelemetry.api.trace.propagation
Methods in io.opentelemetry.api.trace.propagation that return ContextModifier and TypeMethodDescription<C> ContextW3CTraceContextPropagator.extract(Context context, C carrier, TextMapGetter<C> getter) Methods in io.opentelemetry.api.trace.propagation with parameters of type ContextModifier and TypeMethodDescription<C> ContextW3CTraceContextPropagator.extract(Context context, C carrier, TextMapGetter<C> getter) <C> voidW3CTraceContextPropagator.inject(Context context, C carrier, TextMapSetter<C> setter) -
Uses of Context in io.opentelemetry.context
Methods in io.opentelemetry.context that return ContextModifier and TypeMethodDescriptionstatic ContextContext.current()Return the context associated with the currentScope.ContextStorage.current()Returns the currentContext.static ContextContext.root()default ContextContextStorage.root()ImplicitContextKeyed.storeInContext(Context context) <V> ContextContext.with(ContextKey<V> k1, V v1) Returns a new context with the given key value set.default ContextContext.with(ImplicitContextKeyed value) Returns a newContextwith the givenImplicitContextKeyedset.Methods in io.opentelemetry.context with parameters of type Context -
Uses of Context in io.opentelemetry.context.propagation
Methods in io.opentelemetry.context.propagation that return ContextModifier and TypeMethodDescription<C> ContextTextMapPropagator.extract(Context context, C carrier, TextMapGetter<C> getter) Extracts data from upstream.Methods in io.opentelemetry.context.propagation with parameters of type ContextModifier and TypeMethodDescription<C> ContextTextMapPropagator.extract(Context context, C carrier, TextMapGetter<C> getter) Extracts data from upstream.<C> voidTextMapPropagator.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 ContextModifier and TypeMethodDescriptionstatic booleanInstrumentationUtil.shouldSuppressInstrumentation(Context context) Deprecated.Checks if an automatic instrumentation should be suppressed with the provided Context. -
Uses of Context in io.opentelemetry.sdk.logs
Methods in io.opentelemetry.sdk.logs with parameters of type ContextModifier and TypeMethodDescriptionvoidLogRecordProcessor.onEmit(Context context, ReadWriteLogRecord logRecord) Called when aLoggerLogRecordBuilder.emit()s a log record. -
Uses of Context in io.opentelemetry.sdk.logs.export
Methods in io.opentelemetry.sdk.logs.export with parameters of type ContextModifier and TypeMethodDescriptionvoidBatchLogRecordProcessor.onEmit(Context context, ReadWriteLogRecord logRecord) voidSimpleLogRecordProcessor.onEmit(Context context, ReadWriteLogRecord logRecord) -
Uses of Context in io.opentelemetry.sdk.metrics.internal.aggregator
Methods in io.opentelemetry.sdk.metrics.internal.aggregator with parameters of type ContextModifier and TypeMethodDescriptionfinal voidAggregatorHandle.recordDouble(double value, Attributes attributes, Context context) final voidAggregatorHandle.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 ContextModifier and TypeMethodDescriptionvoidExemplarReservoir.offerDoubleMeasurement(double value, Attributes attributes, Context context) Offers adoublemeasurement to be sampled.voidExemplarReservoir.offerLongMeasurement(long value, Attributes attributes, Context context) Offers alongmeasurement to be sampled.booleanAlwaysOffFilter.shouldSampleMeasurement(double value, Attributes attributes, Context context) booleanAlwaysOffFilter.shouldSampleMeasurement(long value, Attributes attributes, Context context) booleanAlwaysOnFilter.shouldSampleMeasurement(double value, Attributes attributes, Context context) booleanAlwaysOnFilter.shouldSampleMeasurement(long value, Attributes attributes, Context context) booleanExemplarFilter.shouldSampleMeasurement(double value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.booleanExemplarFilter.shouldSampleMeasurement(long value, Attributes attributes, Context context) Returns whether or not a reservoir should attempt to filter a measurement.booleanTraceBasedExemplarFilter.shouldSampleMeasurement(double value, Attributes attributes, Context context) booleanTraceBasedExemplarFilter.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 ContextModifier and TypeMethodDescriptionvoidDefaultSynchronousMetricStorage.recordDouble(double value, Attributes attributes, Context context) voidWriteableMetricStorage.recordDouble(double value, Attributes attributes, Context context) Records a measurement.voidDefaultSynchronousMetricStorage.recordLong(long value, Attributes attributes, Context context) voidWriteableMetricStorage.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 ContextModifier and TypeMethodDescriptionabstract AttributesAttributesProcessor.process(Attributes incoming, Context context) Manipulates a set of attributes, returning the desired set. -
Uses of Context in io.opentelemetry.sdk.trace
Methods in io.opentelemetry.sdk.trace with parameters of type ContextModifier and TypeMethodDescriptionvoidSpanProcessor.onStart(Context parentContext, ReadWriteSpan span) Called when aSpanis started, if theSpan.isRecording()returns true. -
Uses of Context in io.opentelemetry.sdk.trace.export
Methods in io.opentelemetry.sdk.trace.export with parameters of type ContextModifier and TypeMethodDescriptionvoidBatchSpanProcessor.onStart(Context parentContext, ReadWriteSpan span) voidSimpleSpanProcessor.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 ContextModifier and TypeMethodDescriptionSampler.shouldSample(Context parentContext, String traceId, String name, SpanKind spanKind, Attributes attributes, List<LinkData> parentLinks) Called duringSpancreation to make a sampling samplingResult.