public final class JerseyTags extends Object
Tags
associated with a request-response exchange that
is handled by Jersey server.Modifier and Type | Method and Description |
---|---|
static io.micrometer.core.instrument.Tag |
exception(RequestEvent event)
|
static io.micrometer.core.instrument.Tag |
method(ContainerRequest request)
|
static io.micrometer.core.instrument.Tag |
outcome(ContainerResponse response)
Creates an
outcome tag based on the status of the given response . |
static io.micrometer.core.instrument.Tag |
status(ContainerResponse response)
Creates a
status tag based on the status of the given response . |
static io.micrometer.core.instrument.Tag |
uri(RequestEvent event)
Creates a
uri tag based on the URI of the given event . |
public static io.micrometer.core.instrument.Tag method(ContainerRequest request)
request
- the container requestpublic static io.micrometer.core.instrument.Tag status(ContainerResponse response)
status
tag based on the status of the given response
.response
- the container responsepublic static io.micrometer.core.instrument.Tag uri(RequestEvent event)
uri
tag based on the URI of the given event
. Uses the
ExtendedUriInfo.getMatchedTemplates()
if available. REDIRECTION
for
3xx responses, NOT_FOUND
for 404 responses.event
- the request eventpublic static io.micrometer.core.instrument.Tag exception(RequestEvent event)
event
- the request eventpublic static io.micrometer.core.instrument.Tag outcome(ContainerResponse response)
outcome
tag based on the status of the given response
.response
- the container responseCopyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.