Interface WebMvcTagsProvider

  • All Known Implementing Classes:
    DefaultWebMvcTagsProvider

    @NonNullApi
    public interface WebMvcTagsProvider
    Provides Tags for Spring MVC-based request handling.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Iterable<io.micrometer.core.instrument.Tag> httpLongRequestTags​(javax.servlet.http.HttpServletRequest request, java.lang.Object handler)
      Provides tags to be used by 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)
      Provides tags to be associated with metrics for the given request and response exchange.
    • Method Detail

      • httpLongRequestTags

        @NonNull
        java.lang.Iterable<io.micrometer.core.instrument.Tag> httpLongRequestTags​(@Nullable
                                                                                  javax.servlet.http.HttpServletRequest request,
                                                                                  @Nullable
                                                                                  java.lang.Object handler)
        Provides tags to be used by long task timers.
        Parameters:
        request - the HTTP request
        handler - the handler for the request
        Returns:
        tags to associate with metrics recorded for the request
      • httpRequestTags

        @NonNull
        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)
        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
        ex - the current exception, if any
        Returns:
        tags to associate with metrics for the request and response exchange