
com.google.maps.metrics.OpenCensusRequestMetricsReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-maps-services Show documentation
Show all versions of google-maps-services Show documentation
Use the Google Maps Platform Web Services in Java! https://developers.google.com/maps/documentation/webservices/
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 - 2025 Weber Informatics LLC | Privacy Policy