Interface Metrics.Tag

All Known Implementing Classes:
Metrics.Tag.CommandId, Metrics.Tag.Type
Enclosing class:
Metrics

public static interface Metrics.Tag
Tags used in metrics.
Since:
1.0
  • Method Details

    • key

      @Pure String key()
      Retrieves the tag key.
      Returns:
      The tag key.
    • value

      @Pure String value()
      Retrieves the tag value.
      Returns:
      The tag value.
    • apply

      @SideEffectFree default <T> Mono<T> apply(Mono<T> mono)
      Applies this tag to the given mono using Mono.tag(String, String).
      Type Parameters:
      T - The mono value type.
      Parameters:
      mono - The mono to apply the tag to.
      Returns:
      The mono with the tag applied.
    • apply

      @SideEffectFree default <T> Flux<T> apply(Flux<T> flux)
      Applies this tag to the given flux using Flux.tag(String, String).
      Type Parameters:
      T - The flux value type.
      Parameters:
      flux - The flux to apply the tag to.
      Returns:
      The flux with the tag applied.