public Metric update(MetricInfo metric) {
return get(updateAsync(metric));
}
@Override
public Future<Metric> updateAsync(MetricInfo metric) {
<BUG>UpdateLogMetricRequest request = UpdateLogMetricRequest.newBuilder()
.setMetricName(MetricsServiceV2Client.formatMetricName(getOptions().getProjectId(),
metric.getName()))</BUG>
.setMetric(metric.toPb())
.build();

public Metric update(MetricInfo metric) {
return get(updateAsync(metric));
}
@Override
public Future<Metric> updateAsync(MetricInfo metric) {
UpdateLogMetricRequest request = UpdateLogMetricRequest.newBuilder()
.setMetricName(MetricName.create(getOptions().getProjectId(), metric.getName()).toString())
.setMetric(metric.toPb())
.build();
