Interface Meter

All Known Implementing Classes:
LoggingMeter, NoopMeter

@Volatile public interface Meter
The generic interface for all metric implementations in the client.
  • Method Details

    • counter

      Counter counter(String name, Map<String,String> tags)
      Creates a new counter.
      Parameters:
      name - the name of the counter.
      tags - the tags for the counter.
      Returns:
      the created counter.
    • valueRecorder

      ValueRecorder valueRecorder(String name, Map<String,String> tags)
      Creates a new value recorder.
      Parameters:
      name - the name of the value recorder.
      tags - the tags of the value recorder.
      Returns:
      the created value recorder.
    • start

      default Mono<Void> start()
      Starts the meter if it hasn't been started, might be a noop depending on the implementation.
    • stop

      default Mono<Void> stop(Duration timeout)
      Stops the metrics if it has been started previously, might be a noop depending on the implementation.