All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.maps.metrics.OpenCensusRequestMetricsReporter Maven / Gradle / Ivy

Go to download

Use the Google Maps API Web Services in Java! https://developers.google.com/maps/documentation/webservices/

There is a newer version: 2.2.0
Show newest version
package com.google.maps.metrics;

import io.opencensus.stats.Stats;
import io.opencensus.stats.StatsRecorder;
import io.opencensus.tags.Tagger;
import io.opencensus.tags.Tags;

/** An OpenCensus logger that generates success and latency metrics. */
public final class OpenCensusRequestMetricsReporter implements RequestMetricsReporter {
  private static final Tagger tagger = Tags.getTagger();
  private static final StatsRecorder statsRecorder = Stats.getStatsRecorder();

  public OpenCensusRequestMetricsReporter() {}

  @Override
  public RequestMetrics newRequest(String requestName) {
    return new OpenCensusRequestMetrics(requestName, tagger, statsRecorder);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy