Skip to content

Commit

Permalink
remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Aug 19, 2022
1 parent f0d424b commit 00b540d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package com.google.cloud.bigtable.stats;

import com.google.api.MonitoredResource;
import com.google.api.gax.grpc.GrpcResponseMetadata;
import com.google.cloud.monitoring.v3.MetricServiceClient;
import com.google.monitoring.v3.CreateTimeSeriesRequest;
import com.google.monitoring.v3.ProjectName;
Expand Down Expand Up @@ -73,16 +72,12 @@ public void export(Collection<Metric> metrics) {
for (Map.Entry<String, List<com.google.monitoring.v3.TimeSeries>> entry :
projectToTimeSeries.entrySet()) {
ProjectName projectName = ProjectName.of(entry.getKey());
GrpcResponseMetadata metadata = new GrpcResponseMetadata();
CreateTimeSeriesRequest request =
CreateTimeSeriesRequest.newBuilder()
.setName(projectName.toString())
.addAllTimeSeries(entry.getValue())
.build();
this.metricServiceClient
.createTimeSeriesCallable()
.call(request, metadata.createContextWithHandlers());
// this.metricServiceClient.createServiceTimeSeries(request);
this.metricServiceClient.createServiceTimeSeries(request);
}
} catch (Throwable e) {
logger.log(Level.WARNING, "Exception thrown when exporting TimeSeries.", e);
Expand Down

0 comments on commit 00b540d

Please sign in to comment.