Class HttpCommonTags
java.lang.Object
io.quarkus.micrometer.runtime.binder.HttpCommonTags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.micrometer.core.instrument.Tagstatic final io.micrometer.core.instrument.Tag(package private) static final io.micrometer.core.instrument.Tagstatic final io.micrometer.core.instrument.Tagstatic final io.micrometer.core.instrument.Tagstatic final io.micrometer.core.instrument.Tag(package private) static final io.micrometer.core.instrument.Tag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.TagCreates 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.TagCreates auritag based on the URI of the givenrequest.
-
Field Details
-
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
-
-
Constructor Details
-
HttpCommonTags
public HttpCommonTags()
-
-
Method Details
-
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
Creates auritag based on the URI of the givenrequest. Falling back toREDIRECTIONfor 3xx responses if there wasn't a matched path pattern,NOT_FOUNDfor 404 responses if there wasn't a matched path pattern,rootfor requests with no path info, andUNKNOWNfor all other requests.- Parameters:
pathInfo- request pathinitialPath- initial path before request pattern matching took place. Pass in null if there is pattern matching done in the caller.code- status code of the response- Returns:
- the uri tag derived from the request
-