Class HttpStatusTagGenerator
java.lang.Object
org.zalando.riptide.micrometer.tag.HttpStatusTagGenerator
- All Implemented Interfaces:
TagGenerator
@API(status=EXPERIMENTAL)
public final class HttpStatusTagGenerator
extends Object
implements TagGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<io.micrometer.core.instrument.Tag>onError(RequestArguments arguments, Throwable throwable) Iterable<io.micrometer.core.instrument.Tag>onResponse(RequestArguments arguments, org.springframework.http.client.ClientHttpResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zalando.riptide.micrometer.tag.TagGenerator
onRequest
-
Constructor Details
-
HttpStatusTagGenerator
public HttpStatusTagGenerator()
-
-
Method Details
-
onResponse
public Iterable<io.micrometer.core.instrument.Tag> onResponse(RequestArguments arguments, org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
onResponsein interfaceTagGenerator- Throws:
IOException
-
onError
public Iterable<io.micrometer.core.instrument.Tag> onError(RequestArguments arguments, Throwable throwable) - Specified by:
onErrorin interfaceTagGenerator
-