Skip to content

Commit

Permalink
revert:review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhigarg92 committed Nov 5, 2024
1 parent 1793a56 commit c145485
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private CompletableResultCode exportSpannerClientMetrics(Collection<MetricData>
// Verifies if metrics data has missing instance id.
if (!spannerMetricData.stream()
.flatMap(metricData -> metricData.getData().getPoints().stream())
.anyMatch(pd -> SpannerCloudMonitoringExporterUtils.getInstanceId(pd) == null)) {
.noneMatch(pd -> SpannerCloudMonitoringExporterUtils.getInstanceId(pd) == null)) {
logger.log(Level.WARNING, "Metric data has missing instanceId. Skipping export.");
return CompletableResultCode.ofFailure();
}
Expand Down

0 comments on commit c145485

Please sign in to comment.