public final class ObservationAsyncExecInterceptor extends Object implements AsyncExecChainHandler
Observations
around HTTP client exchanges.
The observation is started before the request is executed and stopped when the
exchange completes or fails. A simple sampling predicate from ObservingOptions
can disable observations for given URIs without touching Micrometer configuration.
| Constructor and Description |
|---|
ObservationAsyncExecInterceptor(io.micrometer.observation.ObservationRegistry registry,
ObservingOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback) |
public ObservationAsyncExecInterceptor(io.micrometer.observation.ObservationRegistry registry,
ObservingOptions opts)
public void execute(HttpRequest request, AsyncEntityProducer entityProducer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback asyncExecCallback) throws HttpException, IOException
execute in interface AsyncExecChainHandlerHttpExceptionIOExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.