Class AbstractMethodTagger

java.lang.Object
io.micronaut.configuration.metrics.aggregator.AbstractMethodTagger

@Indexed(AbstractMethodTagger.class) public abstract class AbstractMethodTagger extends Object
Appends additional Tag to metrics annotated with Timed and Counted.
Since:
5.5.0
Author:
Haiden Rothwell
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract @NonNull List<io.micrometer.core.instrument.Tag>
    buildTags(@NonNull io.micronaut.aop.MethodInvocationContext<Object,Object> context)
    Build list of tags using MethodInvocationContext which will be included on published metric.
    final @NonNull List<io.micrometer.core.instrument.Tag>
    getTags(@NonNull io.micronaut.aop.MethodInvocationContext<Object,Object> context)
     

    Methods inherited from class java.lang.Object

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

    • AbstractMethodTagger

      public AbstractMethodTagger()
  • Method Details

    • buildTags

      @NonNull protected abstract @NonNull List<io.micrometer.core.instrument.Tag> buildTags(@NonNull @NonNull io.micronaut.aop.MethodInvocationContext<Object,Object> context)
      Build list of tags using MethodInvocationContext which will be included on published metric.
      Parameters:
      context - Context of the method annotated
      Returns:
      List of Tag which will be included in the metric
    • getTags

      @NonNull public final @NonNull List<io.micrometer.core.instrument.Tag> getTags(@NonNull @NonNull io.micronaut.aop.MethodInvocationContext<Object,Object> context)