org.springframework.boot.actuate.metrics.web.servlet

Interface WebMvcTagsProvider

  • All Known Implementing Classes:
    DefaultWebMvcTagsProvider


    public interface WebMvcTagsProvider
    Provides Tags for Spring MVC-based request handling.
    Since:
    2.0.0
    Author:
    Jon Schneider, Andy Wilkinson
    • Method Detail

      • getTags

        Iterable<io.micrometer.core.instrument.Tag> getTags(HttpServletRequest request,
                                                            HttpServletResponse response,
                                                            Object handler,
                                                            Throwable exception)
        Provides tags to be associated with metrics for the given request and response exchange.
        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

        Iterable<io.micrometer.core.instrument.Tag> getLongRequestTags(HttpServletRequest request,
                                                                       Object handler)
        Provides tags to be used by long task timers.
        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