private void markMeter()

in semantic-metrics/src/main/java/com/spotify/feline/MetricsConsumer.java [101:111]


  private void markMeter(final StackTraceElement element) {
    final String call = element.getClassName() + "." + element.getMethodName();
    // NOTE: if metric reporting is ever moved to a separate thread from the one that is calling the
    // blocking Future method, this will have to change - to pass the threadName as a parameter to
    // Consumers in general. getBlockingMethod() above will also have to change.
    final String threadName = sanitizeThreadName(Thread.currentThread().getName());

    final MetricId metricId = blockingCallId.tagged("call", call, "thread_name", threadName);
    final Meter meter = registry.getOrAdd(metricId, SemanticMetricBuilder.METERS);
    meter.mark();
  }