Creates a uri tag based on the URI of the given request. Uses the
HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE best matching pattern if
available. Falling back to REDIRECTION for 3xx responses, NOT_FOUND
for 404 responses, root for requests with no path info, and UNKNOWN
for all other requests.
Parameters:
request - the request
response - the response
Returns:
the uri tag derived from the request
exception
public static io.micrometer.core.instrument.Tag exception(Throwable exception)
Creates a exception tag based on the simple
name of the class of the given exception.