Class NoopInstrumentation
java.lang.Object
co.elastic.clients.transport.instrumentation.NoopInstrumentation
- All Implemented Interfaces:
Instrumentation
A no-operation instrumentation. Used when no instrumentation has been set. It can also be used to
bypass OpenTelemetry automatic discovery.
-
Nested Class Summary
Nested classes/interfaces inherited from interface co.elastic.clients.transport.instrumentation.Instrumentation
Instrumentation.Context, Instrumentation.ThreadScope
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<TRequest> Instrumentation.Context
newContext
(TRequest request, Endpoint<TRequest, ?, ?> endpoint) Create a context for a given request and the corresponding endpoint.
-
Field Details
-
INSTANCE
-
-
Method Details
-
newContext
public <TRequest> Instrumentation.Context newContext(TRequest request, Endpoint<TRequest, ?, ?> endpoint) Description copied from interface:Instrumentation
Create a context for a given request and the corresponding endpoint.- Specified by:
newContext
in interfaceInstrumentation
-