Skip to content

Commit

Permalink
revert pom and add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Mar 14, 2024
1 parent ae58f30 commit 30ffb5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion google-cloud-bigtable-deps-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>1.35.0</version>
<version>1.34.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,18 @@ public void testFailure() throws Exception {
.collect(Collectors.toList());

LOGGER.info("checking metric reader..");
for (MetricData metricData : metricReader.collectAllMetrics()) {
LOGGER.info("metric data is " + metricData.getName());
MetricData metricData = null;
for (MetricData md : metricReader.collectAllMetrics()) {
LOGGER.info("metric data is " + md.getName());
if (md.getName().contains(BuiltinMetricsConstants.OPERATION_LATENCIES_NAME)) {
LOGGER.info("matched metric");
metricData = md;
break;
}
}

assertThat(metrics.size()).isEqualTo(1);
assertThat(metricData).isNotNull();

MetricData metricData = metrics.get(0);
List<PointData> pointData = new ArrayList<>(metricData.getData().getPoints());
List<String> clusterAttributes =
pointData.stream()
Expand Down

0 comments on commit 30ffb5a

Please sign in to comment.