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 definingContextPropagatorsfor 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 containsSamplers 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 ContextBaggage. storeInContext(Context context)Methods in io.opentelemetry.api.baggage with parameters of type Context Modifier and Type Method Description static 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 Context Modifier and Type Method Description <C> ContextW3CBaggagePropagator. 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> 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 Modifier and Type Method Description EventBuilderDefaultEventLogger.NoOpEventBuilder. setContext(Context context)EventBuilderEventBuilder. 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 LogRecordBuilderExtendedDefaultLogger.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 voidExtendedDefaultMeter.NoopDoubleCounter. add(double value, Attributes attributes, Context context)voidExtendedDefaultMeter.NoopDoubleUpDownCounter. add(double value, Attributes attributes, Context context)voidExtendedDefaultMeter.NoopLongCounter. add(long value, Attributes attributes, Context context)voidExtendedDefaultMeter.NoopLongUpDownCounter. add(long value, Attributes attributes, Context context)voidExtendedDefaultMeter.NoopDoubleHistogram. record(double value, Attributes attributes, Context context)voidExtendedDefaultMeter.NoopLongHistogram. record(long value, Attributes attributes, Context context)voidExtendedDefaultMeter.NoopDoubleGauge. set(double value, Attributes attributes, Context context)voidExtendedDefaultMeter.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> ContextPassThroughPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)static ContextExtendedContextPropagators. 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> 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 Context Modifier and Type Method Description ExtendedDefaultTracer.NoopSpanBuilderExtendedDefaultTracer.NoopSpanBuilder. setParent(Context context)ExtendedSpanBuilderExtendedSpanBuilder. 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 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 Modifier and Type Method Description LogRecordBuilderDefaultLogger.NoopLogRecordBuilder. setContext(Context context)LogRecordBuilderLogRecordBuilder. 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 voidDefaultMeter.NoopDoubleCounter. add(double value, Attributes attributes, Context context)voidDefaultMeter.NoopDoubleUpDownCounter. add(double value, Attributes attributes, Context context)voidDefaultMeter.NoopLongCounter. add(long value, Attributes attributes, Context context)voidDefaultMeter.NoopLongUpDownCounter. add(long value, Attributes attributes, Context context)voidDoubleCounter. 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.voidDefaultMeter.NoopDoubleHistogram. record(double value, Attributes attributes, Context context)voidDefaultMeter.NoopLongHistogram. record(long value, Attributes attributes, Context context)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.voidDefaultMeter.NoopDoubleGauge. set(double value, Attributes attributes, Context context)voidDefaultMeter.NoopLongGauge. set(long value, Attributes attributes, Context context)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 Context Modifier and Type Method Description default ContextSpan. storeInContext(Context context)Methods in io.opentelemetry.api.trace with parameters of type Context Modifier and Type Method Description static SpanSpan. fromContext(Context context)static SpanSpan. fromContextOrNull(Context context)DefaultTracer.NoopSpanBuilderDefaultTracer.NoopSpanBuilder. setParent(Context context)SpanBuilderSpanBuilder. setParent(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 Context Modifier and Type Method Description <C> ContextW3CTraceContextPropagator. 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> 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
Classes in io.opentelemetry.context that implement Context Modifier and Type Class Description (package private) classArrayBasedContextFields in io.opentelemetry.context declared as Context Modifier and Type Field Description private ContextThreadLocalContextStorage.ScopeImpl. beforeAttachprivate ContextContextExecutorService. context(package private) ContextStrictContextStorage.CallerStackTrace. contextprivate static ContextArrayBasedContext. ROOTprivate ContextThreadLocalContextStorage.ScopeImpl. toAttachFields in io.opentelemetry.context with type parameters of type Context Modifier and Type Field Description private static java.lang.ThreadLocal<Context>ThreadLocalContextStorage. THREAD_LOCAL_STORAGEMethods in io.opentelemetry.context that return Context Modifier and Type Method Description (package private) ContextContextExecutorService. context()static ContextContext. current()Return the context associated with the currentScope.ContextContextStorage. current()Returns the currentContext.ContextStrictContextStorage. current()ContextThreadLocalContextStorage. current()(package private) static ContextArrayBasedContext. root()static ContextContext. root()default ContextContextStorage. root()ContextImplicitContextKeyed. storeInContext(Context context)<V> ContextArrayBasedContext. with(ContextKey<V> key, V value)<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 Modifier and Type Method Description ScopeContextStorage. attach(Context toAttach)ScopeStrictContextStorage. attach(Context context)ScopeThreadLocalContextStorage. attach(Context toAttach)ContextImplicitContextKeyed. 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> ContextMultiTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)<C> ContextNoopTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)<C> ContextTextMapPropagator. 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> ContextMultiTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)<C> ContextNoopTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)<C> ContextTextMapPropagator. extract(Context context, C carrier, TextMapGetter<C> getter)Extracts data from upstream.<C> voidMultiTextMapPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)<C> voidNoopTextMapPropagator. inject(Context context, C carrier, TextMapSetter<C> setter)<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 Context Modifier and Type Method Description static 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
Fields in io.opentelemetry.sdk.logs declared as Context Modifier and Type Field Description private ContextSdkLogRecordBuilder. contextMethods in io.opentelemetry.sdk.logs with parameters of type Context Modifier and Type Method Description voidLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)Called when aLoggerLogRecordBuilder.emit()s a log record.voidMultiLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)voidNoopLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)SdkLogRecordBuilderSdkLogRecordBuilder. 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 voidBatchLogRecordProcessor. onEmit(Context context, ReadWriteLogRecord logRecord)voidSimpleLogRecordProcessor. 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 EventBuilderSdkEventBuilder. 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 voidSdkDoubleCounter. add(double increment, Attributes attributes, Context context)voidSdkDoubleUpDownCounter. add(double increment, Attributes attributes, Context context)voidSdkLongCounter. add(long increment, Attributes attributes, Context context)voidSdkLongUpDownCounter. add(long increment, Attributes attributes, Context context)voidSdkDoubleHistogram. record(double value, Attributes attributes, Context context)voidSdkLongHistogram. record(long value, Attributes attributes, Context context)voidSdkMeter.MultiWritableMetricStorage. recordDouble(double value, Attributes attributes, Context context)voidSdkMeter.MultiWritableMetricStorage. recordLong(long value, Attributes attributes, Context context)voidSdkDoubleGauge. set(double value, Attributes attributes, Context context)voidSdkLongGauge. 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 voidAggregatorHandle. recordDouble(double value, Attributes attributes, Context context)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 Context Modifier and Type Method Description private static booleanTraceBasedExemplarFilter. hasSampledTrace(Context context)voidExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)Offers adoublemeasurement to be sampled.voidFilteredExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)voidFixedSizeExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)voidLongToDoubleExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)voidNoopExemplarReservoir. offerDoubleMeasurement(double value, Attributes attributes, Context context)voidExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)Offers alongmeasurement to be sampled.voidFilteredExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)voidFixedSizeExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)voidHistogramExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)voidLongToDoubleExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)voidNoopExemplarReservoir. offerLongMeasurement(long value, Attributes attributes, Context context)private voidReservoirCell. offerMeasurement(Attributes attributes, Context context)(package private) voidReservoirCell. recordDoubleMeasurement(double value, Attributes attributes, Context context)Record the long measurement to the cell.(package private) voidReservoirCell. recordLongMeasurement(long value, Attributes attributes, Context context)Record the long measurement to the cell.intHistogramExemplarReservoir.HistogramCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)intHistogramExemplarReservoir.HistogramCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)intRandomFixedSizeExemplarReservoir.RandomCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)intRandomFixedSizeExemplarReservoir.RandomCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)intReservoirCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)Determine the index of thecellsto record the measurement to.intReservoirCellSelector. reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)Determine the index of thecellsto record the measurement to.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 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)voidDefaultSynchronousMetricStorage. recordDouble(double value, Attributes attributes, Context context)voidEmptyMetricStorage. 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)voidEmptyMetricStorage. 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 Context Modifier and Type Method Description AttributesAdviceAttributesProcessor. process(Attributes incoming, Context context)AttributesAttributesProcessor.AppendingAttributesProcessor. process(Attributes incoming, Context context)AttributesAttributesProcessor.AttributeKeyFilteringProcessor. process(Attributes incoming, Context context)AttributesAttributesProcessor.BaggageAppendingAttributesProcessor. process(Attributes incoming, Context context)AttributesAttributesProcessor.JoinedAttributesProcessor. process(Attributes incoming, Context context)abstract AttributesAttributesProcessor. process(Attributes incoming, Context context)Manipulates a set of attributes, returning the desired set.AttributesNoopAttributesProcessor. 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 ContextSdkSpanBuilder. parentMethods in io.opentelemetry.sdk.trace with parameters of type Context Modifier and Type Method Description voidMultiSpanProcessor. onStart(Context parentContext, ReadWriteSpan readWriteSpan)voidNoopSpanProcessor. onStart(Context parentContext, ReadWriteSpan span)voidSpanProcessor. onStart(Context parentContext, ReadWriteSpan span)Called when aSpanis started, if theSpan.isRecording()returns true.ExtendedSpanBuilderSdkSpanBuilder. setParent(Context context)(package private) static SdkSpanSdkSpan. 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 voidBatchSpanProcessor. 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 Context Modifier and Type Method Description SamplingResultAlwaysOffSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)SamplingResultAlwaysOnSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)SamplingResultParentBasedSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)SamplingResultSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)Called duringSpancreation to make a sampling samplingResult.SamplingResultTraceIdRatioBasedSampler. shouldSample(Context parentContext, java.lang.String traceId, java.lang.String name, SpanKind spanKind, Attributes attributes, java.util.List<LinkData> parentLinks)
-