Skip to content

Commit 38ac115

Browse files
fix: fix metric client settings (#1509)
* fix: fix metric client settings * fix format * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 340db73 commit 38ac115

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable'
5656
If you are using Gradle without BOM, add this to your dependencies:
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-bigtable:2.15.0'
59+
implementation 'com.google.cloud:google-cloud-bigtable:2.15.1'
6060
```
6161

6262
If you are using SBT, add this to your dependencies:
6363

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.15.0"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.15.1"
6666
```
6767

6868
## Authentication

google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverStatsExporter.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ static MetricServiceClient createMetricServiceClient(Credentials credentials, Du
8585
.setTransportChannelProvider(InstantiatingGrpcChannelProvider.newBuilder().build());
8686
settingsBuilder.setCredentialsProvider(FixedCredentialsProvider.create(credentials));
8787

88-
org.threeten.bp.Duration stackdriverDuration =
89-
org.threeten.bp.Duration.ofMillis(deadline.toMillis());
90-
settingsBuilder.createTimeSeriesSettings().setSimpleTimeoutNoRetries(stackdriverDuration);
88+
org.threeten.bp.Duration timeout = org.threeten.bp.Duration.ofMillis(deadline.toMillis());
89+
settingsBuilder.createServiceTimeSeriesSettings().setSimpleTimeoutNoRetries(timeout);
9190
return MetricServiceClient.create(settingsBuilder.build());
9291
}
9392
}

0 commit comments

Comments
 (0)