A C D E F G I K M N R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addWrapper(Function<? super ContextStorage, ? extends ContextStorage>) - Static method in interface io.opentelemetry.context.ContextStorage
-
Adds the
wrapper
, which will be executed with theContextStorage
is first used, i.e., by callingContext.makeCurrent()
. - attach(Context) - Method in interface io.opentelemetry.context.ContextStorage
C
- close() - Method in interface io.opentelemetry.context.Scope
- composite(TextMapPropagator...) - Static method in interface io.opentelemetry.context.propagation.TextMapPropagator
-
Returns a
TextMapPropagator
which simply delegates injection and extraction to the provided propagators. - composite(Iterable<TextMapPropagator>) - Static method in interface io.opentelemetry.context.propagation.TextMapPropagator
-
Returns a
TextMapPropagator
which simply delegates injection and extraction to the provided propagators. - Context - Interface in io.opentelemetry.context
-
A context propagation mechanism which can carry scoped-values across API boundaries and between threads.
- ContextKey<T> - Interface in io.opentelemetry.context
-
Key for indexing values of type
ContextKey
stored in aContext
. - ContextPropagators - Interface in io.opentelemetry.context.propagation
-
A container of the registered propagators for every supported format.
- ContextStorage - Interface in io.opentelemetry.context
-
The storage for storing and retrieving the current
Context
. - ContextStorageProvider - Interface in io.opentelemetry.context
-
A Java SPI (Service Provider Interface) to allow replacing the default
ContextStorage
. - create(TextMapPropagator) - Static method in interface io.opentelemetry.context.propagation.ContextPropagators
-
Returns a
ContextPropagators
which can be used to extract and inject context in text payloads with the givenTextMapPropagator
. - current() - Static method in interface io.opentelemetry.context.Context
-
Return the context associated with the current
Scope
. - current() - Method in interface io.opentelemetry.context.ContextStorage
-
Returns the current
Context
.
D
- defaultStorage() - Static method in interface io.opentelemetry.context.ContextStorage
-
Returns the default
ContextStorage
which storesContext
using a threadlocal.
E
- extract(Context, C, TextMapGetter<C>) - Method in interface io.opentelemetry.context.propagation.TextMapPropagator
-
Extracts data from upstream.
F
- fields() - Method in interface io.opentelemetry.context.propagation.TextMapPropagator
-
The propagation fields defined.
G
- get() - Static method in interface io.opentelemetry.context.ContextStorage
-
Returns the
ContextStorage
being used by this application. - get() - Method in interface io.opentelemetry.context.ContextStorageProvider
-
Returns the
ContextStorage
to use to storeContext
. - get(C, String) - Method in interface io.opentelemetry.context.propagation.TextMapGetter
-
Returns the first value of the given propagation
key
or returnsnull
. - get(ContextKey<V>) - Method in interface io.opentelemetry.context.Context
-
Returns the value stored in this
Context
for the givenContextKey
, ornull
if there is no value for the key in this context. - getTextMapPropagator() - Method in interface io.opentelemetry.context.propagation.ContextPropagators
-
Returns a
TextMapPropagator
propagator.
I
- ImplicitContextKeyed - Interface in io.opentelemetry.context
-
A value that can be stored inside
Context
. - inject(Context, C, TextMapSetter<C>) - Method in interface io.opentelemetry.context.propagation.TextMapPropagator
-
Injects data for downstream consumers, for example as HTTP headers.
- io.opentelemetry.context - package io.opentelemetry.context
-
A context propagation mechanism which can carry scoped-values across API boundaries and between threads.
- io.opentelemetry.context.propagation - package io.opentelemetry.context.propagation
-
Interfaces for defining
ContextPropagators
for allowing context propagation across process boundaries, for example when sending context to a remote server.
K
- keys(C) - Method in interface io.opentelemetry.context.propagation.TextMapGetter
-
Returns all the keys in the given carrier.
M
- makeCurrent() - Method in interface io.opentelemetry.context.Context
-
Makes this the current context and returns a
Scope
which corresponds to the scope of execution this context is current for. - makeCurrent() - Method in interface io.opentelemetry.context.ImplicitContextKeyed
-
Adds this
ImplicitContextKeyed
value to thecurrent context
and makes the newContext
the current context.
N
- named(String) - Static method in interface io.opentelemetry.context.ContextKey
-
Returns a new
ContextKey
with the given debug name. - noop() - Static method in interface io.opentelemetry.context.propagation.ContextPropagators
-
Returns a
ContextPropagators
which performs no injection or extraction. - noop() - Static method in interface io.opentelemetry.context.propagation.TextMapPropagator
-
Returns a
TextMapPropagator
which does no injection or extraction. - noop() - Static method in interface io.opentelemetry.context.Scope
-
Returns a
Scope
that does nothing.
R
S
- Scope - Interface in io.opentelemetry.context
-
An
AutoCloseable
that represents a mounted context for a block of code. - set(C, String, String) - Method in interface io.opentelemetry.context.propagation.TextMapSetter
-
Replaces a propagated field with the given value.
- storeInContext(Context) - Method in interface io.opentelemetry.context.ImplicitContextKeyed
T
- taskWrapping(Executor) - Static method in interface io.opentelemetry.context.Context
-
Returns an
Executor
which delegates to the providedexecutor
, wrapping all invocations ofExecutor.execute(Runnable)
with the current context at the time of invocation. - taskWrapping(ExecutorService) - Static method in interface io.opentelemetry.context.Context
-
Returns an
ExecutorService
which delegates to the providedexecutorService
, wrapping all invocations ofExecutorService
methods such asExecutor.execute(Runnable)
orExecutorService.submit(Runnable)
with the current context at the time of invocation. - TextMapGetter<C> - Interface in io.opentelemetry.context.propagation
-
Interface that allows a
TextMapPropagator
to read propagated fields from a carrier. - TextMapPropagator - Interface in io.opentelemetry.context.propagation
-
Injects and extracts a value as text into carriers that travel in-band across process boundaries.
- TextMapSetter<C> - Interface in io.opentelemetry.context.propagation
-
Class that allows a
TextMapPropagator
to set propagated fields into a carrier.
W
- with(ContextKey<V>, V) - Method in interface io.opentelemetry.context.Context
-
Returns a new context with the given key value set.
- with(ImplicitContextKeyed) - Method in interface io.opentelemetry.context.Context
-
Returns a new
Context
with the givenImplicitContextKeyed
set. - wrap(Runnable) - Method in interface io.opentelemetry.context.Context
- wrap(Callable<T>) - Method in interface io.opentelemetry.context.Context
- wrap(Executor) - Method in interface io.opentelemetry.context.Context
-
Returns an
Executor
that will execute callbacks in the givenexecutor
, making this the current context before each execution. - wrap(ExecutorService) - Method in interface io.opentelemetry.context.Context
-
Returns an
ExecutorService
that will execute callbacks in the givenexecutor
, making this the current context before each execution. - wrap(ScheduledExecutorService) - Method in interface io.opentelemetry.context.Context
-
Returns an
ScheduledExecutorService
that will execute callbacks in the givenexecutor
, making this the current context before each execution.
All Classes All Packages