Repository: GoogleCloudPlatform/pgadapter
Pull request #2816 (2025-01-28 15:40:55)

build(deps): bump io.opentelemetry.semconv:opentelemetry-semconv from 1.29.0-alpha to 1.30.0-rc.1
Bumps [io.opentelemetry.semconv:opentelemetry-semconv](https://github.com/open-telemetry/semantic-conventions-java) from 1.29.0-alpha to 1.30.0-rc.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/open-telemetry/semantic-conventions-java/releases">io.opentelemetry.semconv:opentelemetry-semconv's releases</a>.</em></p>
<blockquote>
<h2>Version 1.30.0-rc.1</h2>
<p><strong>NOTICE</strong>: This is a release candidate (RC), preceding the first stable release of <code>io.opentelemetry.semconv:opentelemetry-semconv</code>.</p>
<ul>
<li><strong>BREAKING</strong>: Prepare for stable release. Remove deprecated <code>ResourceAttributes</code>, <code>SemanticAttributes</code>. (<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/130">#130</a>)</li>
<li>Exclude <code>exception.escaped</code> from (to-be-stable) artifact (<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/133">#133</a>)</li>
<li>Remove schema urls for <code>1.22.0</code>, <code>1.23.1</code>. (<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/134">#134</a>)</li>
<li>Bump to semantic-conventions v1.30.0 (<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/141">#141</a>)</li>
</ul>
<h2>Version 1.29.0</h2>
<ul>
<li>Update to semantic conventions 1.29.0 and weaver 0.12.0 (<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/118">#118</a>)</li>
</ul>
<h3>🙇 Thank you</h3>
<p>This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:</p>
<p><a href="https://github.com/breedx-splk"><code>@​breedx-splk</code></a>
<a href="https://github.com/jack-berg"><code>@​jack-berg</code></a>
<a href="https://github.com/jsuereth"><code>@​jsuereth</code></a>
<a href="https://github.com/laurit"><code>@​laurit</code></a>
<a href="https://github.com/lmolkova"><code>@​lmolkova</code></a>
<a href="https://github.com/renovate"><code>@​renovate</code></a>
<a href="https://github.com/trask"><code>@​trask</code></a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/open-telemetry/semantic-conventions-java/blob/main/CHANGELOG.md">io.opentelemetry.semconv:opentelemetry-semconv's changelog</a>.</em></p>
<blockquote>
<h2>Version 1.30.0-rc.1 (2025-01-27)</h2>
<p><strong>NOTICE</strong>: This is a release candidate (RC), preceding the first stable release of <code>io.opentelemetry.semconv:opentelemetry-semconv</code>.</p>
<ul>
<li><strong>BREAKING</strong>: Prepare for stable release. Remove deprecated <code>ResourceAttributes</code>, <code>SemanticAttributes</code>.
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/130">#130</a>)</li>
<li>Exclude <code>exception.escaped</code> from (to-be-stable) artifact
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/133">#133</a>)</li>
<li>Remove schema urls for <code>1.22.0</code>, <code>1.23.1</code>.
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/134">#134</a>)</li>
<li>Bump to semantic-conventions v1.30.0
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/141">#141</a>)</li>
</ul>
<h2>Version 1.29.0 (2024-12-19)</h2>
<ul>
<li>Update to semantic conventions 1.29.0 and weaver 0.12.0
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/118">#118</a>)</li>
</ul>
<h2>Version 1.28.0 (2024-10-14)</h2>
<ul>
<li>Use weaver for semantic convention codegen
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/70">#70</a>)</li>
<li>Include Incubating prefix on enum inner class names
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/83">#83</a>)</li>
<li>Add new class annotations to deprecated classes
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/89">#89</a>)</li>
<li>Update to semantic-conventions 1.28.0
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/91">#91</a>)</li>
</ul>
<h2>Version 1.27.0 (2024-08-20)</h2>
<ul>
<li>Update to semantic-conventions 1.27.0
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/81">#81</a>)</li>
</ul>
<h2>Version 1.26.0 (2024-07-08)</h2>
<ul>
<li>Update to semantic-conventions 1.26.0
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/73">#73</a>)</li>
<li>Add additional Android requirements to README
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/68">#68</a>)</li>
</ul>
<h2>Version 1.25.0 (2024-04-08)</h2>
<ul>
<li>Restore and deprecate the <code>SemanticAttributes</code> and <code>ResourceAttributes</code> classes removed in 1.23.1
for easier upgrades. These will be removed prior to a stable release
of <code>io.opentelemetry.semconv:opentelemetry-semconv</code>.
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/62">#62</a>)</li>
<li>Update to semantic-conventions 1.25.0
(<a href="https://redirect.github.com/open-telemetry/semantic-conventions-java/pull/61">#61</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/open-telemetry/semantic-conventions-java/commits/v1.30.0-rc.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=io.opentelemetry.semconv:opentelemetry-semconv&package-manager=maven&previous-version=1.29.0-alpha&new-version=1.30.0-rc.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

olavloite: @dependabot rebase

Patch:
diff --git a/benchmarks/latency-comparison/golang/go.mod b/benchmarks/latency-comparison/golang/go.mod
index 1baac2d2..91fe30ef 100644
--- a/benchmarks/latency-comparison/golang/go.mod
+++ b/benchmarks/latency-comparison/golang/go.mod
@@ -2,7 +2,7 @@ module cloud.google.com/pgadapter-latency-benchmark
 
 go 1.22.7
 
-toolchain go1.23.5
+toolchain go1.23.6
 
 require (
 	cloud.google.com/go/spanner v1.75.0
@@ -11,14 +11,14 @@ require (
 	github.com/jackc/pgx/v5 v5.7.2
 	github.com/montanaflynn/stats v0.7.0
 	github.com/testcontainers/testcontainers-go v0.35.0
-	golang.org/x/oauth2 v0.25.0
-	google.golang.org/api v0.218.0
+	golang.org/x/oauth2 v0.26.0
+	google.golang.org/api v0.220.0
 )
 
 require (
 	cel.dev/expr v0.19.0 // indirect
 	cloud.google.com/go v0.118.1 // indirect
-	cloud.google.com/go/auth v0.14.0 // indirect
+	cloud.google.com/go/auth v0.14.1 // indirect
 	cloud.google.com/go/auth/oauth2adapt v0.2.7 // indirect
 	cloud.google.com/go/compute/metadata v0.6.0 // indirect
 	cloud.google.com/go/monitoring v1.23.0 // indirect
@@ -103,7 +103,7 @@ require (
 	golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect
 	google.golang.org/genproto v0.0.0-20250122153221-138b5a5a4fd4 // indirect
 	google.golang.org/genproto/googleapis/api v0.0.0-20250124145028-65684f501c47 // indirect
-	google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 // indirect
+	google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287 // indirect
 	google.golang.org/grpc v1.70.0 // indirect
 	google.golang.org/protobuf v1.36.4 // indirect
 	gopkg.in/yaml.v3 v3.0.1 // indirect
diff --git a/benchmarks/latency-comparison/golang/go.sum b/benchmarks/latency-comparison/golang/go.sum
index b9b60697..1acb2070 100644
--- a/benchmarks/latency-comparison/golang/go.sum
+++ b/benchmarks/latency-comparison/golang/go.sum
@@ -143,6 +143,8 @@ cloud.google.com/go/auth v0.13.0 h1:8Fu8TZy167JkW8Tj3q7dIkr2v4cndv41ouecJx0PAHs=
 cloud.google.com/go/auth v0.13.0/go.mod h1:COOjD9gwfKNKz+IIduatIhYJQIc0mG3H102r/EMxX6Q=
 cloud.google.com/go/auth v0.14.0 h1:A5C4dKV/Spdvxcl0ggWwWEzzP7AZMJSEIgrkngwhGYM=
 cloud.google.com/go/auth v0.14.0/go.mod h1:CYsoRL1PdiDuqeQpZE0bP2pnPrGqFcOkI0nldEQis+A=
+cloud.google.com/go/auth v0.14.1 h1:AwoJbzUdxA/whv1qj3TLKwh3XX5sikny2fc40wUl+h0=
+cloud.google.com/go/auth v0.14.1/go.mod h1:4JHUxlGXisL0AW8kXPtUF6ztuOksyfUQNFjfsOCXkPM=
 cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4=
 cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q=
 cloud.google.com/go/auth/oauth2adapt v0.2.3 h1:MlxF+Pd3OmSudg/b1yZ5lJwoXCEaeedAguodky1PcKI=
@@ -1519,6 +1521,8 @@ golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
 golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
 golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
 golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
+golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE=
+golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
 golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -1894,6 +1898,8 @@ google.golang.org/api v0.217.0 h1:GYrUtD289o4zl1AhiTZL0jvQGa2RDLyC+kX1N/lfGOU=
 google.golang.org/api v0.217.0/go.mod h1:qMc2E8cBAbQlRypBTBWHklNJlaZZJBwDv81B1Iu8oSI=
 google.golang.org/api v0.218.0 h1:x6JCjEWeZ9PFCRe9z0FBrNwj7pB7DOAqT35N+IPnAUA=
 google.golang.org/api v0.218.0/go.mod h1:5VGHBAkxrA/8EFjLVEYmMUJ8/8+gWWQ3s4cFH0FxG2M=
+google.golang.org/api v0.220.0 h1:3oMI4gdBgB72WFVwE1nerDD8W3HUOS4kypK6rRLbGns=
+google.golang.org/api v0.220.0/go.mod h1:26ZAlY6aN/8WgpCzjPNy18QpYaz7Zgg1h0qe1GkZEmY=
 google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
 google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
 google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -2101,6 +2107,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f h1:
 google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f/go.mod h1:+2Yz8+CLJbIfL9z73EW45avw8Lmge3xVElCP9zEKi50=
 google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47 h1:91mG8dNTpkC0uChJUQ9zCiRqx3GEEFOWaRZ0mI6Oj2I=
 google.golang.org/genproto/googleapis/rpc v0.0.0-20250124145028-65684f501c47/go.mod h1:+2Yz8+CLJbIfL9z73EW45avw8Lmge3xVElCP9zEKi50=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287 h1:J1H9f+LEdWAfHcez/4cvaVBox7cOYT+IU6rgqj5x++8=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287/go.mod h1:8BS3B93F/U1juMFq9+EDk+qOT5CO1R9IzXxG3PTqiRk=
 google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
 google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
 google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
diff --git a/benchmarks/latency-comparison/java/pom.xml b/benchmarks/latency-comparison/java/pom.xml
index 3c2197b9..f54a68f4 100644
--- a/benchmarks/latency-comparison/java/pom.xml
+++ b/benchmarks/latency-comparison/java/pom.xml
@@ -35,7 +35,7 @@
   <parent>
     <groupId>com.google.cloud</groupId>
     <artifactId>google-cloud-shared-config</artifactId>
-    <version>1.14.0</version>
+    <version>1.14.2</version>
   </parent>
 
   <dependencyManagement>
diff --git a/pom.xml b/pom.xml
index dc84f171..3456bb2b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,7 @@
   <parent>
     <groupId>com.google.cloud</groupId>
     <artifactId>google-cloud-shared-config</artifactId>
-    <version>1.14.0</version>
+    <version>1.14.2</version>
   </parent>
   <scm>
     <connection>scm:git:git@github.com:GoogleCloudPlatform/pgadapter.git</connection>
@@ -132,12 +132,6 @@
       <groupId>io.opentelemetry</groupId>
       <artifactId>opentelemetry-exporter-logging</artifactId>
     </dependency>
-    <dependency>
-      <!-- Not managed by opentelemetry-bom -->
-      <groupId>io.opentelemetry.semconv</groupId>
-      <artifactId>opentelemetry-semconv</artifactId>
-      <version>1.29.0-alpha</version>
-    </dependency>
     <dependency>
       <groupId>io.opentelemetry</groupId>
       <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId>
diff --git a/samples/golang/gorm/go.mod b/samples/golang/gorm/go.mod
index 3538ca20..7be96516 100644
--- a/samples/golang/gorm/go.mod
+++ b/samples/golang/gorm/go.mod
@@ -2,7 +2,7 @@ module gorm
 
 go 1.22
 
-toolchain go1.23.5
+toolchain go1.23.6
 
 require (
 	github.com/GoogleCloudPlatform/pgadapter/wrappers/golang v0.0.0-20250125145504-2f0907d305e6
diff --git a/samples/golang/pgx/go.mod b/samples/golang/pgx/go.mod
index db7b5ca0..cac6d4bd 100644
--- a/samples/golang/pgx/go.mod
+++ b/samples/golang/pgx/go.mod
@@ -2,7 +2,7 @@ module pgadapter-pgx-sample
 
 go 1.22
 
-toolchain go1.23.5
+toolchain go1.23.6
 
 require (
 	github.com/GoogleCloudPlatform/pgadapter/wrappers/golang v0.0.0-20250125145504-2f0907d305e6
diff --git a/samples/java/liquibase/pom.xml b/samples/java/liquibase/pom.xml
index 0e717863..177f750b 100644
--- a/samples/java/liquibase/pom.xml
+++ b/samples/java/liquibase/pom.xml
@@ -37,7 +37,7 @@
   <parent>
     <groupId>com.google.cloud</groupId>
     <artifactId>google-cloud-shared-config</artifactId>
-    <version>1.14.0</version>
+    <version>1.14.2</version>
   </parent>
   <scm>
     <connection>scm:git:git@github.com:GoogleCloudPlatform/pgadapter.git</connection>
diff --git a/samples/python/django/requirements.txt b/samples/python/django/requirements.txt
index caaaeb0f..ce56c117 100644
--- a/samples/python/django/requirements.txt
+++ b/samples/python/django/requirements.txt
@@ -1,6 +1,6 @@
 psycopg-binary==3.2.4
 pytz==2025.1
-Django==5.1.5
+Django==5.1.6
 google==3.0.0
 google.auth==2.38.0
 testcontainers==4.9.1
diff --git a/samples/sidecar-proxy/Dockerfile b/samples/sidecar-proxy/Dockerfile
index a5765505..d229cfcd 100644
--- a/samples/sidecar-proxy/Dockerfile
+++ b/samples/sidecar-proxy/Dockerfile
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM golang:1.23.5 as builder
+FROM golang:1.23.6 as builder
 WORKDIR /app
 RUN go mod init example-app
 RUN go get github.com/jackc/pgx/v4
diff --git a/samples/snippets/golang-snippets/go.mod b/samples/snippets/golang-snippets/go.mod
index 60b4aa80..f03ac64d 100644
--- a/samples/snippets/golang-snippets/go.mod
+++ b/samples/snippets/golang-snippets/go.mod
@@ -2,7 +2,7 @@ module golang-snippets
 
 go 1.22
 
-toolchain go1.23.5
+toolchain go1.23.6
 
 require (
 	github.com/docker/docker v27.5.1+incompatible
diff --git a/src/main/java/com/google/cloud/spanner/pgadapter/Server.java b/src/main/java/com/google/cloud/spanner/pgadapter/Server.java
index 361d6c39..b0d4e692 100644
--- a/src/main/java/com/google/cloud/spanner/pgadapter/Server.java
+++ b/src/main/java/com/google/cloud/spanner/pgadapter/Server.java
@@ -14,8 +14,6 @@
 
 package com.google.cloud.spanner.pgadapter;
 
-import static io.opentelemetry.semconv.ServiceAttributes.SERVICE_NAME;
-
 import com.google.auth.Credentials;
 import com.google.cloud.opentelemetry.metric.GoogleCloudMetricExporter;
 import com.google.cloud.opentelemetry.metric.MetricConfiguration;
@@ -28,6 +26,7 @@ import com.google.common.collect.ImmutableMap;
 import com.google.devtools.cloudtrace.v2.AttributeValue;
 import com.google.devtools.cloudtrace.v2.TruncatableString;
 import io.opentelemetry.api.OpenTelemetry;
+import io.opentelemetry.api.common.AttributeKey;
 import io.opentelemetry.api.common.Attributes;
 import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk;
 import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder;
@@ -246,7 +245,7 @@ public class Server {
         }
         builder.setFixedAttributes(
             ImmutableMap.of(
-                SERVICE_NAME.getKey(),
+                "service.name",
                 AttributeValue.newBuilder()
                     .setStringValue(TruncatableString.newBuilder().setValue(serviceName).build())
                     .build()));
@@ -278,7 +277,9 @@ public class Server {
         openTelemetryBuilder.addMeterProviderCustomizer(
             (sdkMeterProviderBuilder, configProperties) ->
                 sdkMeterProviderBuilder
-                    .addResource(Resource.create(Attributes.of(SERVICE_NAME, serviceName)))
+                    .addResource(
+                        Resource.create(
+                            Attributes.of(AttributeKey.stringKey("service.name"), serviceName)))
                     .registerMetricReader(
                         PeriodicMetricReader.builder(cloudMonitoringExporter).build()));
       }
diff --git a/src/main/java/com/google/cloud/spanner/pgadapter/statements/BackendConnection.java b/src/main/java/com/google/cloud/spanner/pgadapter/statements/BackendConnection.java
index 9f2d72fa..a16064e4 100644
--- a/src/main/java/com/google/cloud/spanner/pgadapter/statements/BackendConnection.java
+++ b/src/main/java/com/google/cloud/spanner/pgadapter/statements/BackendConnection.java
@@ -82,6 +82,7 @@ import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.ListeningExecutorService;
 import com.google.common.util.concurrent.MoreExecutors;
 import com.google.common.util.concurrent.SettableFuture;
+import io.opentelemetry.api.common.AttributeKey;
 import io.opentelemetry.api.common.Attributes;
 import io.opentelemetry.api.trace.Span;
 import io.opentelemetry.api.trace.SpanBuilder;
@@ -89,7 +90,6 @@ import io.opentelemetry.api.trace.StatusCode;
 import io.opentelemetry.api.trace.Tracer;
 import io.opentelemetry.context.Context;
 import io.opentelemetry.context.Scope;
-import io.opentelemetry.semconv.SemanticAttributes;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.ObjectOutputStream;
@@ -124,6 +124,8 @@ import javax.annotation.Nullable;
 public class BackendConnection {
   private static final Logger logger = Logger.getLogger(BackendConnection.class.getName());
 
+  public static final AttributeKey<String> DB_STATEMENT = AttributeKey.stringKey("db.statement");
+
   private final Tracer tracer;
 
   private final Metrics metrics;
@@ -945,9 +947,7 @@ public class BackendConnection {
     SpanBuilder builder =
         tracer.spanBuilder(name).setAttribute("pgadapter.connection_id", connectionId);
     if (statement != null) {
-      // Ignore deprecation for now, as there is no alternative offered (yet?).
-      //noinspection deprecation
-      builder.setAttribute(SemanticAttributes.DB_STATEMENT, statement.getSql());
+      builder.setAttribute(DB_STATEMENT, statement.getSql());
     }
     if (currentTransactionId != null) {
       builder.setAttribute("pgadapter.transaction_id", currentTransactionId.toString());
diff --git a/src/main/java/com/google/cloud/spanner/pgadapter/statements/ExtendedQueryProtocolHandler.java b/src/main/java/com/google/cloud/spanner/pgadapter/statements/ExtendedQueryProtocolHandler.java
index 1cef475e..06da673e 100644
--- a/src/main/java/com/google/cloud/spanner/pgadapter/statements/ExtendedQueryProtocolHandler.java
+++ b/src/main/java/com/google/cloud/spanner/pgadapter/statements/ExtendedQueryProtocolHandler.java
@@ -15,6 +15,7 @@
 package com.google.cloud.spanner.pgadapter.statements;
 
 import static com.google.cloud.spanner.pgadapter.Server.getVersion;
+import static com.google.cloud.spanner.pgadapter.statements.BackendConnection.DB_STATEMENT;
 
 import com.google.cloud.spanner.DatabaseId;
 import com.google.cloud.spanner.pgadapter.ConnectionHandler;
@@ -33,7 +34,6 @@ import io.opentelemetry.api.trace.Span;
 import io.opentelemetry.api.trace.StatusCode;
 import io.opentelemetry.api.trace.Tracer;
 import io.opentelemetry.context.Scope;
-import io.opentelemetry.semconv.SemanticAttributes;
 import java.util.ArrayList;
 import java.util.LinkedList;
 import java.util.List;
@@ -138,11 +138,9 @@ public class ExtendedQueryProtocolHandler {
    * received.
    */
   public void buffer(AbstractQueryProtocolMessage message) {
-    // Ignore deprecation for now, as there is no alternative offered (yet?).
-    //noinspection deprecation
     addEvent(
         "Received message: '" + message.getIdentifier() + "'",
-        Attributes.of(SemanticAttributes.DB_STATEMENT, message.getSql()));
+        Attributes.of(DB_STATEMENT, message.getSql()));
     messages.add(message);
   }
 
diff --git a/src/main/java/com/google/cloud/spanner/pgadapter/statements/SimpleQueryStatement.java b/src/main/java/com/google/cloud/spanner/pgadapter/statements/SimpleQueryStatement.java
index c0b692bf..f1d896d8 100644
--- a/src/main/java/com/google/cloud/spanner/pgadapter/statements/SimpleQueryStatement.java
+++ b/src/main/java/com/google/cloud/spanner/pgadapter/statements/SimpleQueryStatement.java
@@ -14,6 +14,7 @@
 
 package com.google.cloud.spanner.pgadapter.statements;
 
+import static com.google.cloud.spanner.pgadapter.statements.BackendConnection.DB_STATEMENT;
 import static com.google.cloud.spanner.pgadapter.statements.SimpleParser.isCommand;
 import static com.google.cloud.spanner.pgadapter.wireprotocol.QueryMessage.COPY;
 
@@ -41,7 +42,6 @@ import com.google.common.collect.ImmutableList;
 import io.opentelemetry.api.trace.Span;
 import io.opentelemetry.api.trace.Tracer;
 import io.opentelemetry.context.Scope;
-import io.opentelemetry.semconv.SemanticAttributes;
 import java.util.List;
 
 /**
@@ -137,14 +137,12 @@ public class SimpleQueryStatement {
   static ParsedStatement translatePotentialMetadataCommand(
       ParsedStatement parsedStatement, ConnectionHandler connectionHandler) {
     Tracer tracer = connectionHandler.getExtendedQueryProtocolHandler().getTracer();
-    // Ignore deprecation for now, as there is no alternative offered (yet?).
-    //noinspection deprecation
     Span span =
         tracer
             .spanBuilder("translatePotentialMetadataCommand")
             .setAttribute(
                 "pgadapter.connection_id", connectionHandler.getTraceConnectionId().toString())
-            .setAttribute(SemanticAttributes.DB_STATEMENT, parsedStatement.getSqlWithoutComments())
+            .setAttribute(DB_STATEMENT, parsedStatement.getSqlWithoutComments())
             .startSpan();
     try (Scope ignore = span.makeCurrent()) {
       for (Command currentCommand :
diff --git a/src/main/java/com/google/cloud/spanner/pgadapter/wireprotocol/ControlMessage.java b/src/main/java/com/google/cloud/spanner/pgadapter/wireprotocol/ControlMessage.java
index 385ca884..1cfc71f0 100644
--- a/src/main/java/com/google/cloud/spanner/pgadapter/wireprotocol/ControlMessage.java
+++ b/src/main/java/com/google/cloud/spanner/pgadapter/wireprotocol/ControlMessage.java
@@ -14,6 +14,8 @@
 
 package com.google.cloud.spanner.pgadapter.wireprotocol;
 
+import static com.google.cloud.spanner.pgadapter.statements.BackendConnection.DB_STATEMENT;
+
 import com.google.api.core.InternalApi;
 import com.google.api.gax.grpc.GrpcCallContext;
 import com.google.api.gax.rpc.ApiCallContext;
@@ -58,7 +60,6 @@ import io.grpc.MethodDescriptor;
 import io.opentelemetry.api.trace.Span;
 import io.opentelemetry.api.trace.Tracer;
 import io.opentelemetry.context.Scope;
-import io.opentelemetry.semconv.SemanticAttributes;
 import java.io.DataInputStream;
 import java.io.IOException;
 import java.util.ArrayList;
@@ -317,13 +318,11 @@ public abstract class ControlMessage extends WireMessage {
   SendResultSetState sendResultSet(
       IntermediateStatement describedResult, QueryMode mode, long maxRows) throws Exception {
     Tracer tracer = connection.getExtendedQueryProtocolHandler().getTracer();
-    // Ignore deprecation for now, as there is no alternative offered (yet?).
-    //noinspection deprecation
     Span span =
         tracer
             .spanBuilder("send_result_set")
             .setAttribute("pgadapter.connection_id", connection.getTraceConnectionId().toString())
-            .setAttribute(SemanticAttributes.DB_STATEMENT, describedResult.getSql())
+            .setAttribute(DB_STATEMENT, describedResult.getSql())
             .startSpan();
     try (Scope ignore = span.makeCurrent()) {
       StatementResult statementResult = describedResult.getStatementResult();
diff --git a/wrappers/golang/go.mod b/wrappers/golang/go.mod
index 75a9a1d2..3801cf7f 100644
--- a/wrappers/golang/go.mod
+++ b/wrappers/golang/go.mod
@@ -2,12 +2,12 @@ module github.com/GoogleCloudPlatform/pgadapter/wrappers/golang
 
 go 1.22
 
-toolchain go1.23.5
+toolchain go1.23.6
 
 require (
 	github.com/docker/docker v27.5.1+incompatible
 	github.com/testcontainers/testcontainers-go v0.35.0
-	golang.org/x/oauth2 v0.25.0
+	golang.org/x/oauth2 v0.26.0
 )
 
 require (
diff --git a/wrappers/golang/go.sum b/wrappers/golang/go.sum
index 4f3beebe..ce7ae7bf 100644
--- a/wrappers/golang/go.sum
+++ b/wrappers/golang/go.sum
@@ -148,6 +148,8 @@ golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
 golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
 golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=
 golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
+golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE=
+golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=


Test patch:
diff --git a/src/test/java/com/google/cloud/spanner/pgadapter/ITOpenTelemetryTest.java b/src/test/java/com/google/cloud/spanner/pgadapter/ITOpenTelemetryTest.java
index 46d1c630..04466260 100644
--- a/src/test/java/com/google/cloud/spanner/pgadapter/ITOpenTelemetryTest.java
+++ b/src/test/java/com/google/cloud/spanner/pgadapter/ITOpenTelemetryTest.java
@@ -15,6 +15,7 @@
 package com.google.cloud.spanner.pgadapter;
 
 import static com.google.cloud.spanner.pgadapter.ITJdbcMetadataTest.getDdlStatements;
+import static com.google.cloud.spanner.pgadapter.statements.BackendConnection.DB_STATEMENT;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
@@ -31,7 +32,6 @@ import com.google.common.collect.Iterables;
 import com.google.devtools.cloudtrace.v1.ListTracesRequest;
 import io.opentelemetry.api.OpenTelemetry;
 import io.opentelemetry.sdk.OpenTelemetrySdk;
-import io.opentelemetry.semconv.SemanticAttributes;
 import java.io.IOException;
 import java.nio.file.Files;
 import java.nio.file.Paths;
@@ -105,9 +105,7 @@ public class ITOpenTelemetryTest implements IntegrationTest {
             client.listTraces(
                 ListTracesRequest.newBuilder()
                     .setProjectId(testEnv.getProjectId())
-                    // Ignore deprecation for now, as there is no alternative offered (yet?).
-                    //noinspection deprecation
-                    .setFilter(SemanticAttributes.DB_STATEMENT + ":\"" + sql + "\"")
+                    .setFilter(DB_STATEMENT + ":\"" + sql + "\"")
                     .build());
         int size = Iterables.size(response.iterateAll());
         if (size != 0) {