public final class ObservationClassicExecInterceptor extends Object implements ExecChainHandler
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 |
|---|
ObservationClassicExecInterceptor(io.micrometer.observation.ObservationRegistry registry,
ObservingOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
ClassicHttpResponse |
execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
public ObservationClassicExecInterceptor(io.micrometer.observation.ObservationRegistry registry,
ObservingOptions opts)
public ClassicHttpResponse execute(ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain) throws IOException, HttpException
execute in interface ExecChainHandlerIOExceptionHttpExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.