return get(getMetricAsync(metric));
}
@Override
public Future<Metric> getMetricAsync(String metric) {
GetLogMetricRequest request = GetLogMetricRequest.newBuilder()
<BUG>.setMetricName(MetricsServiceV2Client.formatMetricName(getOptions().getProjectId(), metric))
.build();</BUG>
return transform(rpc.get(request), Metric.fromPbFunction(this));
}
private static ListLogMetricsRequest listMetricsRequest(LoggingOptions serviceOptions,

return get(getMetricAsync(metric));
}
@Override
public Future<Metric> getMetricAsync(String metric) {
GetLogMetricRequest request = GetLogMetricRequest.newBuilder()
.setMetricName(MetricName.create(getOptions().getProjectId(), metric).toString())
.build();
return transform(rpc.get(request), Metric.fromPbFunction(this));
}
private static ListLogMetricsRequest listMetricsRequest(LoggingOptions serviceOptions,
