Class DefaultWebMvcTagsProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Iterable<io.micrometer.core.instrument.Tag> httpLongRequestTags​(javax.servlet.http.HttpServletRequest request, java.lang.Object handler)
      Supplies default tags to long task timers.
      java.lang.Iterable<io.micrometer.core.instrument.Tag> httpRequestTags​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, java.lang.Throwable ex)
      Supplies default tags to the Web MVC server programming model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultWebMvcTagsProvider

        public DefaultWebMvcTagsProvider()
    • Method Detail

      • httpLongRequestTags

        public java.lang.Iterable<io.micrometer.core.instrument.Tag> httpLongRequestTags​(@Nullable
                                                                                         javax.servlet.http.HttpServletRequest request,
                                                                                         @Nullable
                                                                                         java.lang.Object handler)
        Supplies default tags to long task timers.
        Specified by:
        httpLongRequestTags in interface WebMvcTagsProvider
        Parameters:
        request - The HTTP request.
        handler - The request method that is responsible for handling the request.
        Returns:
        A set of tags added to every Spring MVC HTTP request
      • httpRequestTags

        public java.lang.Iterable<io.micrometer.core.instrument.Tag> httpRequestTags​(@Nullable
                                                                                     javax.servlet.http.HttpServletRequest request,
                                                                                     @Nullable
                                                                                     javax.servlet.http.HttpServletResponse response,
                                                                                     @Nullable
                                                                                     java.lang.Object handler,
                                                                                     @Nullable
                                                                                     java.lang.Throwable ex)
        Supplies default tags to the Web MVC server programming model.
        Specified by:
        httpRequestTags in interface WebMvcTagsProvider
        Parameters:
        request - The HTTP request.
        response - The HTTP response.
        ex - The current exception, if any
        handler - the handler for the request
        Returns:
        A set of tags added to every Spring MVC HTTP request.