Skip to content

Commit 928e563

Browse files
chore: generate libraries at Fri Jan 10 06:41:08 UTC 2025
1 parent 8b6ea84 commit 928e563

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
4141
<dependency>
4242
<groupId>com.google.cloud</groupId>
4343
<artifactId>google-cloud-spanner</artifactId>
44-
<version>6.81.1</version>
44+
<version>6.84.0</version>
4545
</dependency>
4646

4747
```

google-cloud-spanner/src/main/java/com/google/cloud/spanner/TraceWrapper.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import com.google.cloud.spanner.Options.TagOption;
2121
import com.google.cloud.spanner.Options.TransactionOption;
2222
import com.google.cloud.spanner.SpannerOptions.TracingFramework;
23-
import com.google.cloud.spanner.spi.v1.GapicSpannerRpc;
2423
import com.google.common.base.MoreObjects;
2524
import io.opencensus.trace.BlankSpan;
2625
import io.opencensus.trace.Span;
@@ -48,9 +47,12 @@ class TraceWrapper {
4847
private static final AttributeKey<List<String>> DB_STATEMENT_ARRAY_KEY =
4948
AttributeKey.stringArrayKey("db.statement");
5049
private static final AttributeKey<String> DB_TABLE_NAME_KEY = AttributeKey.stringKey("db.table");
51-
private static final AttributeKey<String> GCP_CLIENT_SERVICE_KEY = AttributeKey.stringKey("gcp.client.service");
52-
private static final AttributeKey<String> GCP_CLIENT_VERSION_KEY = AttributeKey.stringKey("gcp.client.version");
53-
private static final AttributeKey<String> GCP_CLIENT_REPO_KEY = AttributeKey.stringKey("gcp.client.repo");
50+
private static final AttributeKey<String> GCP_CLIENT_SERVICE_KEY =
51+
AttributeKey.stringKey("gcp.client.service");
52+
private static final AttributeKey<String> GCP_CLIENT_VERSION_KEY =
53+
AttributeKey.stringKey("gcp.client.version");
54+
private static final AttributeKey<String> GCP_CLIENT_REPO_KEY =
55+
AttributeKey.stringKey("gcp.client.repo");
5456
private static final AttributeKey<String> THREAD_NAME_KEY = AttributeKey.stringKey("thread.name");
5557

5658
private final Tracer openCensusTracer;

google-cloud-spanner/src/test/java/com/google/cloud/spanner/OpenTelemetrySpanTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,12 @@ private static void verifyCommonAttributes(SpanData span) {
873873
assertEquals(span.getAttributes().get(AttributeKey.stringKey("instance.name")), "my-instance");
874874
assertEquals(span.getAttributes().get(AttributeKey.stringKey("db.name")), "my-database");
875875
assertEquals(span.getAttributes().get(AttributeKey.stringKey("gcp.service.name")), "Spanner");
876-
assertEquals(span.getAttributes().get(AttributeKey.stringKey("gcp.client.repo")), "googleapis/java-spanner");
877-
assertEquals(span.getAttributes().get(AttributeKey.stringKey("gcp.client.version")), GaxProperties.getLibraryVersion(TraceWrapper.class));
876+
assertEquals(
877+
span.getAttributes().get(AttributeKey.stringKey("gcp.client.repo")),
878+
"googleapis/java-spanner");
879+
assertEquals(
880+
span.getAttributes().get(AttributeKey.stringKey("gcp.client.version")),
881+
GaxProperties.getLibraryVersion(TraceWrapper.class));
878882
}
879883

880884
private static void verifyTableAttributes(SpanData span) {

0 commit comments

Comments
 (0)