Class DefaultJerseyTagsProvider

java.lang.Object
org.glassfish.jersey.micrometer.server.DefaultJerseyTagsProvider
All Implemented Interfaces:
JerseyTagsProvider

public final class DefaultJerseyTagsProvider extends Object implements JerseyTagsProvider
Default implementation for JerseyTagsProvider.
Since:
2.41
Author:
Michael Weirauch, Johnny Lim
  • Constructor Details

    • DefaultJerseyTagsProvider

      public DefaultJerseyTagsProvider()
  • Method Details

    • httpRequestTags

      public Iterable<io.micrometer.core.instrument.Tag> httpRequestTags(RequestEvent event)
      Description copied from interface: JerseyTagsProvider
      Provides tags to be associated with metrics for the given event.
      Specified by:
      httpRequestTags in interface JerseyTagsProvider
      Parameters:
      event - the request event
      Returns:
      tags to associate with metrics recorded for the request
    • httpLongRequestTags

      public Iterable<io.micrometer.core.instrument.Tag> httpLongRequestTags(RequestEvent event)
      Description copied from interface: JerseyTagsProvider
      Provides tags to be associated with the LongTaskTimer which instruments the given long-running event.
      Specified by:
      httpLongRequestTags in interface JerseyTagsProvider
      Parameters:
      event - the request event
      Returns:
      tags to associate with metrics recorded for the request