Skip to content

Commit 5531c6a

Browse files
authored
deps(6.14.x): update OpenCensus API to 0.30.0 (#1605)
* deps: update OpenCensus API to 0.30.0 * test: fix instance admin test The list instance filter was matching several instances, because they contained the same prefix. We now perform an exact match instead. * chore: fix linting violations
1 parent bfd44bb commit 5531c6a

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

google-cloud-spanner/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</parent>
1616
<properties>
1717
<site.installationModule>google-cloud-spanner</site.installationModule>
18+
<opencensus.version>0.30.0</opencensus.version>
1819
</properties>
1920

2021

@@ -187,10 +188,12 @@
187188
<dependency>
188189
<groupId>io.opencensus</groupId>
189190
<artifactId>opencensus-api</artifactId>
191+
<version>${opencensus.version}</version>
190192
</dependency>
191193
<dependency>
192194
<groupId>io.opencensus</groupId>
193195
<artifactId>opencensus-contrib-grpc-util</artifactId>
196+
<version>${opencensus.version}</version>
194197
</dependency>
195198
<dependency>
196199
<groupId>io.opencensus</groupId>

google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITInstanceAdminTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ public void listInstances() {
8181
Instance instance =
8282
Iterators.getOnlyElement(
8383
instanceClient
84-
.listInstances(
85-
Options.filter(
86-
"name:instances/" + env.getTestHelper().getInstanceId().getInstance()))
84+
.listInstances(Options.filter("name=" + env.getTestHelper().getInstanceId()))
8785
.iterateAll()
8886
.iterator());
8987
assertThat(instance.getId()).isEqualTo(env.getTestHelper().getInstanceId());

samples/install-without-bom/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<maven.compiler.target>1.8</maven.compiler.target>
2222
<maven.compiler.source>1.8</maven.compiler.source>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24-
<opencensus.version>0.28.3</opencensus.version>
24+
<opencensus.version>0.30.0</opencensus.version>
2525
<trace.version>2.0.6</trace.version>
2626
<cloudmonitoring.version>3.1.0</cloudmonitoring.version>
2727
</properties>

samples/snapshot/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<maven.compiler.target>1.8</maven.compiler.target>
2222
<maven.compiler.source>1.8</maven.compiler.source>
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24-
<opencensus.version>0.28.3</opencensus.version>
24+
<opencensus.version>0.30.0</opencensus.version>
2525
<trace.version>2.0.6</trace.version>
2626
<cloudmonitoring.version>3.1.0</cloudmonitoring.version>
2727
</properties>

samples/snippets/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<maven.compiler.target>1.8</maven.compiler.target>
2424
<maven.compiler.source>1.8</maven.compiler.source>
2525
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
26-
<opencensus.version>0.28.3</opencensus.version>
26+
<opencensus.version>0.30.0</opencensus.version>
2727
</properties>
2828

2929

0 commit comments

Comments
 (0)