Class DefaultWebMvcTagsProvider

    • Method Detail

      • getTags

        public Iterable<io.micrometer.core.instrument.Tag> getTags​(javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response,
                                                                   Object handler,
                                                                   Throwable exception)
        Description copied from interface: WebMvcTagsProvider
        Provides tags to be associated with metrics for the given request and response exchange.
        Specified by:
        getTags in interface WebMvcTagsProvider
        Parameters:
        request - the request
        response - the response
        handler - the handler for the request or null if the handler is unknown
        exception - the current exception, if any
        Returns:
        tags to associate with metrics for the request and response exchange
      • getLongRequestTags

        public Iterable<io.micrometer.core.instrument.Tag> getLongRequestTags​(javax.servlet.http.HttpServletRequest request,
                                                                              Object handler)
        Description copied from interface: WebMvcTagsProvider
        Provides tags to be used by long task timers.
        Specified by:
        getLongRequestTags in interface WebMvcTagsProvider
        Parameters:
        request - the HTTP request
        handler - the handler for the request or null if the handler is unknown
        Returns:
        tags to associate with metrics recorded for the request