Class HttpCommonTags
- java.lang.Object
-
- io.quarkus.micrometer.runtime.binder.HttpCommonTags
-
public class HttpCommonTags extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static io.micrometer.core.instrument.TagMETHOD_UNKNOWNstatic io.micrometer.core.instrument.TagSTATUS_RESET(package private) static io.micrometer.core.instrument.TagSTATUS_UNKNOWNstatic io.micrometer.core.instrument.TagURI_NOT_FOUNDstatic io.micrometer.core.instrument.TagURI_REDIRECTIONstatic io.micrometer.core.instrument.TagURI_ROOT(package private) static io.micrometer.core.instrument.TagURI_UNKNOWN
-
Constructor Summary
Constructors Constructor Description HttpCommonTags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.micrometer.core.instrument.Tagmethod(String method)Creates anmethodTagderived from the givenHTTP method.static io.micrometer.core.instrument.Tagoutcome(int statusCode)Creates anoutcomeTagderived from the givenresponse code.static io.micrometer.core.instrument.Tagstatus(int statusCode)Creates astatustag based on the status of the givenresponse code.static io.micrometer.core.instrument.Taguri(String pathInfo, int code)Creates auritag based on the URI of the givenrequest.
-
-
-
Field Detail
-
URI_NOT_FOUND
public static final io.micrometer.core.instrument.Tag URI_NOT_FOUND
-
URI_REDIRECTION
public static final io.micrometer.core.instrument.Tag URI_REDIRECTION
-
URI_ROOT
public static final io.micrometer.core.instrument.Tag URI_ROOT
-
URI_UNKNOWN
static final io.micrometer.core.instrument.Tag URI_UNKNOWN
-
STATUS_UNKNOWN
static final io.micrometer.core.instrument.Tag STATUS_UNKNOWN
-
STATUS_RESET
public static final io.micrometer.core.instrument.Tag STATUS_RESET
-
METHOD_UNKNOWN
public static final io.micrometer.core.instrument.Tag METHOD_UNKNOWN
-
-
Method Detail
-
method
public static io.micrometer.core.instrument.Tag method(String method)
Creates anmethodTagderived from the givenHTTP method.- Parameters:
method- the HTTP method- Returns:
- the method tag
-
status
public static io.micrometer.core.instrument.Tag status(int statusCode)
Creates astatustag based on the status of the givenresponse code.- Parameters:
statusCode- the HTTP response code- Returns:
- the status tag derived from the status of the response
-
outcome
public static io.micrometer.core.instrument.Tag outcome(int statusCode)
Creates anoutcomeTagderived from the givenresponse code.- Parameters:
statusCode- the HTTP response code- Returns:
- the outcome tag
-
uri
public static io.micrometer.core.instrument.Tag uri(String pathInfo, int code)
Creates auritag based on the URI of the givenrequest. Falling back toREDIRECTIONfor 3xx responses,NOT_FOUNDfor 404 responses,rootfor requests with no path info, andUNKNOWNfor all other requests.- Parameters:
pathInfo- request pathcode- status code of the response- Returns:
- the uri tag derived from the request
-
-