Repository: GoogleCloudPlatform/pgadapter
Pull request #2785 (2025-01-19 11:47:46)

chore(postgresql-dialect): release 0.43.0
:robot: I have created a release *beep* *boop*
---


## [0.43.0](https://github.com/GoogleCloudPlatform/pgadapter/compare/v0.42.3...v0.43.0) (2025-02-06)


### Features

* mTLS support for external hosts ([#2796](https://github.com/GoogleCloudPlatform/pgadapter/issues/2796)) ([deb3f9e](https://github.com/GoogleCloudPlatform/pgadapter/commit/deb3f9ed56611b0f554931df366c2ab5399a330c))
* support all 'spanner.*' options in pg_settings ([#2229](https://github.com/GoogleCloudPlatform/pgadapter/issues/2229)) ([ffeedd2](https://github.com/GoogleCloudPlatform/pgadapter/commit/ffeedd21bf6c687e99c6eaff862da7371651d808))


### Bug Fixes

* replace current_database() = '..' clauses ([#2788](https://github.com/GoogleCloudPlatform/pgadapter/issues/2788)) ([ef99d80](https://github.com/GoogleCloudPlatform/pgadapter/commit/ef99d80ee0150ca8922ca581e28a2739b8ce7910))


### Dependencies

* update dependency commons-codec:commons-codec to v1.18.0 ([#2815](https://github.com/GoogleCloudPlatform/pgadapter/issues/2815)) ([64ae518](https://github.com/GoogleCloudPlatform/pgadapter/commit/64ae51807667fdc7513bf972302774a07b44af84))
* update dependency connectorx to v0.4.1 ([#2805](https://github.com/GoogleCloudPlatform/pgadapter/issues/2805)) ([f7e6b23](https://github.com/GoogleCloudPlatform/pgadapter/commit/f7e6b237a40c55721f52489183a668c3015dbb1e))
* update dependency coverlet.collector to 6.0.4 ([#2787](https://github.com/GoogleCloudPlatform/pgadapter/issues/2787)) ([c437ccd](https://github.com/GoogleCloudPlatform/pgadapter/commit/c437ccd2cd8bb6e74fc62fa9b809a04658337a8f))
* update dependency django to v5.1.6 ([#2841](https://github.com/GoogleCloudPlatform/pgadapter/issues/2841)) ([e0e933b](https://github.com/GoogleCloudPlatform/pgadapter/commit/e0e933be0f6b504e8a454f2828c917972b21bdab))
* update dependency go to v1.23.6 ([#2836](https://github.com/GoogleCloudPlatform/pgadapter/issues/2836)) ([60b4203](https://github.com/GoogleCloudPlatform/pgadapter/commit/60b4203aacdf7c64aea530af190b7b419d3fdd4a))
* update dependency google.auth to v2.38.0 ([#2795](https://github.com/GoogleCloudPlatform/pgadapter/issues/2795)) ([b22c097](https://github.com/GoogleCloudPlatform/pgadapter/commit/b22c097610e0c17573aeb3eb2a644b18a9672d44))
* update dependency io.hypersistence:hypersistence-utils-hibernate-63 to v3.9.1 ([#2833](https://github.com/GoogleCloudPlatform/pgadapter/issues/2833)) ([daeafb7](https://github.com/GoogleCloudPlatform/pgadapter/commit/daeafb7bec5fa49b4e34f724e87fdc0be8b62912))
* update dependency org.checkerframework:checker-qual to v3.49.0 ([#2834](https://github.com/GoogleCloudPlatform/pgadapter/issues/2834)) ([0ff02d0](https://github.com/GoogleCloudPlatform/pgadapter/commit/0ff02d0998670f1738180fce10cb5316ab521d4d))
* update dependency org.hibernate.orm:hibernate-core to v6.6.5.final ([#2784](https://github.com/GoogleCloudPlatform/pgadapter/issues/2784)) ([29e1bba](https://github.com/GoogleCloudPlatform/pgadapter/commit/29e1bbaa836031150ee3f1984223cd76efaa1d9f))
* update dependency org.hibernate.orm:hibernate-core to v6.6.6.final ([#2826](https://github.com/GoogleCloudPlatform/pgadapter/issues/2826)) ([7c0e64f](https://github.com/GoogleCloudPlatform/pgadapter/commit/7c0e64f7d03c68c18d66a6638db4c49e765a75da))
* update dependency org.jetbrains.kotlin:kotlin-stdlib-jdk8 to v2.1.10 ([#2813](https://github.com/GoogleCloudPlatform/pgadapter/issues/2813)) ([dde083c](https://github.com/GoogleCloudPlatform/pgadapter/commit/dde083c656e2e588e4abcace716c0373414f45da))
* update dependency org.springframework.boot:spring-boot-dependencies to v3.4.2 ([#2798](https://github.com/GoogleCloudPlatform/pgadapter/issues/2798)) ([0b4dedb](https://github.com/GoogleCloudPlatform/pgadapter/commit/0b4dedb7e95a31ba752bae7f223a32f0880d4887))
* update dependency org.springframework.boot:spring-boot-starter-parent to v3.4.2 ([#2799](https://github.com/GoogleCloudPlatform/pgadapter/issues/2799)) ([8f5777c](https://github.com/GoogleCloudPlatform/pgadapter/commit/8f5777cf6ca1c6a90bb4b64873499c14209ff9e0))
* update dependency pytz to v2025 ([#2823](https://github.com/GoogleCloudPlatform/pgadapter/issues/2823)) ([9325613](https://github.com/GoogleCloudPlatform/pgadapter/commit/932561374da7fd3159fb73543487cd7120cc12f7))
* update dependency testcontainers to v4.9.1 ([#2790](https://github.com/GoogleCloudPlatform/pgadapter/issues/2790)) ([2fdb858](https://github.com/GoogleCloudPlatform/pgadapter/commit/2fdb8589e754fc4e1d75ca4ce5fe73403eaf6841))
* update github.com/googlecloudplatform/pgadapter/wrappers/golang digest to 2f0907d ([#2807](https://github.com/GoogleCloudPlatform/pgadapter/issues/2807)) ([a92ef5a](https://github.com/GoogleCloudPlatform/pgadapter/commit/a92ef5a36fc7e58b3fe26147a39db567ca2adb92))
* update golang docker tag to v1.23.6 ([#2839](https://github.com/GoogleCloudPlatform/pgadapter/issues/2839)) ([3907bb8](https://github.com/GoogleCloudPlatform/pgadapter/commit/3907bb835eea302c8ebed436a7cb342e461d5ca6))
* update module cloud.google.com/go/spanner to v1.75.0 ([#2821](https://github.com/GoogleCloudPlatform/pgadapter/issues/2821)) ([9cf3318](https://github.com/GoogleCloudPlatform/pgadapter/commit/9cf3318f9d25670be6f1cae9594b615ce440b4b8))
* update module github.com/docker/docker to v27.5.1+incompatible ([#2793](https://github.com/GoogleCloudPlatform/pgadapter/issues/2793)) ([f867a88](https://github.com/GoogleCloudPlatform/pgadapter/commit/f867a885e8cff05f40bb7ab1a7fc0eed271d9c3a))
* update module github.com/golang-migrate/migrate/v4 to v4.18.2 ([#2811](https://github.com/GoogleCloudPlatform/pgadapter/issues/2811)) ([d50a58b](https://github.com/GoogleCloudPlatform/pgadapter/commit/d50a58b8990bb9ac0f8b08e8b7b1121bbc136143))
* update module golang.org/x/oauth2 to v0.26.0 ([#2837](https://github.com/GoogleCloudPlatform/pgadapter/issues/2837)) ([4fc9785](https://github.com/GoogleCloudPlatform/pgadapter/commit/4fc978563f6fd64953089be68da6926bdd5dd598))
* update module google.golang.org/api to v0.218.0 ([#2794](https://github.com/GoogleCloudPlatform/pgadapter/issues/2794)) ([33fbfdb](https://github.com/GoogleCloudPlatform/pgadapter/commit/33fbfdb38e59781c69f82f9ed55d6a86ee25d9aa))
* update module google.golang.org/api to v0.220.0 ([#2819](https://github.com/GoogleCloudPlatform/pgadapter/issues/2819)) ([b5af2ed](https://github.com/GoogleCloudPlatform/pgadapter/commit/b5af2ed56f68f99b7c7f68148f395f6c1fd2eb31))
* update spring-boot.version to v3.4.2 ([#2800](https://github.com/GoogleCloudPlatform/pgadapter/issues/2800)) ([85af64c](https://github.com/GoogleCloudPlatform/pgadapter/commit/85af64c8d5adaab5663da8154acfad7acc2037f4))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5aa039df..7621da56 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,46 @@
 # Changelog
 
+## [0.43.0](https://github.com/GoogleCloudPlatform/pgadapter/compare/v0.42.3...v0.43.0) (2025-02-06)
+
+
+### Features
+
+* mTLS support for external hosts ([#2796](https://github.com/GoogleCloudPlatform/pgadapter/issues/2796)) ([deb3f9e](https://github.com/GoogleCloudPlatform/pgadapter/commit/deb3f9ed56611b0f554931df366c2ab5399a330c))
+* support all 'spanner.*' options in pg_settings ([#2229](https://github.com/GoogleCloudPlatform/pgadapter/issues/2229)) ([ffeedd2](https://github.com/GoogleCloudPlatform/pgadapter/commit/ffeedd21bf6c687e99c6eaff862da7371651d808))
+
+
+### Bug Fixes
+
+* replace current_database() = '..' clauses ([#2788](https://github.com/GoogleCloudPlatform/pgadapter/issues/2788)) ([ef99d80](https://github.com/GoogleCloudPlatform/pgadapter/commit/ef99d80ee0150ca8922ca581e28a2739b8ce7910))
+
+
+### Dependencies
+
+* update dependency commons-codec:commons-codec to v1.18.0 ([#2815](https://github.com/GoogleCloudPlatform/pgadapter/issues/2815)) ([64ae518](https://github.com/GoogleCloudPlatform/pgadapter/commit/64ae51807667fdc7513bf972302774a07b44af84))
+* update dependency connectorx to v0.4.1 ([#2805](https://github.com/GoogleCloudPlatform/pgadapter/issues/2805)) ([f7e6b23](https://github.com/GoogleCloudPlatform/pgadapter/commit/f7e6b237a40c55721f52489183a668c3015dbb1e))
+* update dependency coverlet.collector to 6.0.4 ([#2787](https://github.com/GoogleCloudPlatform/pgadapter/issues/2787)) ([c437ccd](https://github.com/GoogleCloudPlatform/pgadapter/commit/c437ccd2cd8bb6e74fc62fa9b809a04658337a8f))
+* update dependency django to v5.1.6 ([#2841](https://github.com/GoogleCloudPlatform/pgadapter/issues/2841)) ([e0e933b](https://github.com/GoogleCloudPlatform/pgadapter/commit/e0e933be0f6b504e8a454f2828c917972b21bdab))
+* update dependency go to v1.23.6 ([#2836](https://github.com/GoogleCloudPlatform/pgadapter/issues/2836)) ([60b4203](https://github.com/GoogleCloudPlatform/pgadapter/commit/60b4203aacdf7c64aea530af190b7b419d3fdd4a))
+* update dependency google.auth to v2.38.0 ([#2795](https://github.com/GoogleCloudPlatform/pgadapter/issues/2795)) ([b22c097](https://github.com/GoogleCloudPlatform/pgadapter/commit/b22c097610e0c17573aeb3eb2a644b18a9672d44))
+* update dependency io.hypersistence:hypersistence-utils-hibernate-63 to v3.9.1 ([#2833](https://github.com/GoogleCloudPlatform/pgadapter/issues/2833)) ([daeafb7](https://github.com/GoogleCloudPlatform/pgadapter/commit/daeafb7bec5fa49b4e34f724e87fdc0be8b62912))
+* update dependency org.checkerframework:checker-qual to v3.49.0 ([#2834](https://github.com/GoogleCloudPlatform/pgadapter/issues/2834)) ([0ff02d0](https://github.com/GoogleCloudPlatform/pgadapter/commit/0ff02d0998670f1738180fce10cb5316ab521d4d))
+* update dependency org.hibernate.orm:hibernate-core to v6.6.5.final ([#2784](https://github.com/GoogleCloudPlatform/pgadapter/issues/2784)) ([29e1bba](https://github.com/GoogleCloudPlatform/pgadapter/commit/29e1bbaa836031150ee3f1984223cd76efaa1d9f))
+* update dependency org.hibernate.orm:hibernate-core to v6.6.6.final ([#2826](https://github.com/GoogleCloudPlatform/pgadapter/issues/2826)) ([7c0e64f](https://github.com/GoogleCloudPlatform/pgadapter/commit/7c0e64f7d03c68c18d66a6638db4c49e765a75da))
+* update dependency org.jetbrains.kotlin:kotlin-stdlib-jdk8 to v2.1.10 ([#2813](https://github.com/GoogleCloudPlatform/pgadapter/issues/2813)) ([dde083c](https://github.com/GoogleCloudPlatform/pgadapter/commit/dde083c656e2e588e4abcace716c0373414f45da))
+* update dependency org.springframework.boot:spring-boot-dependencies to v3.4.2 ([#2798](https://github.com/GoogleCloudPlatform/pgadapter/issues/2798)) ([0b4dedb](https://github.com/GoogleCloudPlatform/pgadapter/commit/0b4dedb7e95a31ba752bae7f223a32f0880d4887))
+* update dependency org.springframework.boot:spring-boot-starter-parent to v3.4.2 ([#2799](https://github.com/GoogleCloudPlatform/pgadapter/issues/2799)) ([8f5777c](https://github.com/GoogleCloudPlatform/pgadapter/commit/8f5777cf6ca1c6a90bb4b64873499c14209ff9e0))
+* update dependency pytz to v2025 ([#2823](https://github.com/GoogleCloudPlatform/pgadapter/issues/2823)) ([9325613](https://github.com/GoogleCloudPlatform/pgadapter/commit/932561374da7fd3159fb73543487cd7120cc12f7))
+* update dependency testcontainers to v4.9.1 ([#2790](https://github.com/GoogleCloudPlatform/pgadapter/issues/2790)) ([2fdb858](https://github.com/GoogleCloudPlatform/pgadapter/commit/2fdb8589e754fc4e1d75ca4ce5fe73403eaf6841))
+* update github.com/googlecloudplatform/pgadapter/wrappers/golang digest to 2f0907d ([#2807](https://github.com/GoogleCloudPlatform/pgadapter/issues/2807)) ([a92ef5a](https://github.com/GoogleCloudPlatform/pgadapter/commit/a92ef5a36fc7e58b3fe26147a39db567ca2adb92))
+* update golang docker tag to v1.23.6 ([#2839](https://github.com/GoogleCloudPlatform/pgadapter/issues/2839)) ([3907bb8](https://github.com/GoogleCloudPlatform/pgadapter/commit/3907bb835eea302c8ebed436a7cb342e461d5ca6))
+* update module cloud.google.com/go/spanner to v1.75.0 ([#2821](https://github.com/GoogleCloudPlatform/pgadapter/issues/2821)) ([9cf3318](https://github.com/GoogleCloudPlatform/pgadapter/commit/9cf3318f9d25670be6f1cae9594b615ce440b4b8))
+* update module github.com/docker/docker to v27.5.1+incompatible ([#2793](https://github.com/GoogleCloudPlatform/pgadapter/issues/2793)) ([f867a88](https://github.com/GoogleCloudPlatform/pgadapter/commit/f867a885e8cff05f40bb7ab1a7fc0eed271d9c3a))
+* update module github.com/golang-migrate/migrate/v4 to v4.18.2 ([#2811](https://github.com/GoogleCloudPlatform/pgadapter/issues/2811)) ([d50a58b](https://github.com/GoogleCloudPlatform/pgadapter/commit/d50a58b8990bb9ac0f8b08e8b7b1121bbc136143))
+* update module golang.org/x/oauth2 to v0.26.0 ([#2837](https://github.com/GoogleCloudPlatform/pgadapter/issues/2837)) ([4fc9785](https://github.com/GoogleCloudPlatform/pgadapter/commit/4fc978563f6fd64953089be68da6926bdd5dd598))
+* update module google.golang.org/api to v0.218.0 ([#2794](https://github.com/GoogleCloudPlatform/pgadapter/issues/2794)) ([33fbfdb](https://github.com/GoogleCloudPlatform/pgadapter/commit/33fbfdb38e59781c69f82f9ed55d6a86ee25d9aa))
+* update module google.golang.org/api to v0.220.0 ([#2819](https://github.com/GoogleCloudPlatform/pgadapter/issues/2819)) ([b5af2ed](https://github.com/GoogleCloudPlatform/pgadapter/commit/b5af2ed56f68f99b7c7f68148f395f6c1fd2eb31))
+* update spring-boot.version to v3.4.2 ([#2800](https://github.com/GoogleCloudPlatform/pgadapter/issues/2800)) ([85af64c](https://github.com/GoogleCloudPlatform/pgadapter/commit/85af64c8d5adaab5663da8154acfad7acc2037f4))
+
 ## [0.42.3](https://github.com/GoogleCloudPlatform/pgadapter/compare/v0.42.2...v0.42.3) (2025-01-18)
 
 
diff --git a/README.md b/README.md
index a287731c..d0878e4b 100644
--- a/README.md
+++ b/README.md
@@ -116,9 +116,9 @@ Use the `-s` option to specify a different local port than the default 5432 if y
 PostgreSQL running on your local system.
 
 <!--- {x-version-update-start:google-cloud-spanner-pgadapter:released} -->
-You can also download a specific version of the jar. Example (replace `v0.42.3` with the version you want to download):
+You can also download a specific version of the jar. Example (replace `v0.43.0` with the version you want to download):
 ```shell
-VERSION=v0.42.3
+VERSION=v0.43.0
 wget https://storage.googleapis.com/pgadapter-jar-releases/pgadapter-${VERSION}.tar.gz \
   && tar -xzvf pgadapter-${VERSION}.tar.gz
 java -jar pgadapter.jar -p my-project -i my-instance -d my-database
@@ -153,7 +153,7 @@ This option is only available for Java/JVM-based applications.
 <dependency>
   <groupId>com.google.cloud</groupId>
   <artifactId>google-cloud-spanner-pgadapter</artifactId>
-  <version>0.42.3</version>
+  <version>0.43.0</version>
 </dependency>
 <!-- [END pgadapter_dependency] -->
 ```
diff --git a/pom.xml b/pom.xml
index a1129c47..dc26db0e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,7 +43,7 @@
 
   <modelVersion>4.0.0</modelVersion>
   <artifactId>google-cloud-spanner-pgadapter</artifactId>
-  <version>0.42.4-SNAPSHOT</version><!-- {x-version-update:google-cloud-spanner-pgadapter:current} -->
+  <version>0.43.0</version><!-- {x-version-update:google-cloud-spanner-pgadapter:current} -->
   <name>Google Cloud Spanner PostgreSQL Adapter</name>
   <packaging>jar</packaging>
   <description>
@@ -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/java/jdbc/README.md b/samples/java/jdbc/README.md
index 25c88a5b..1206820a 100644
--- a/samples/java/jdbc/README.md
+++ b/samples/java/jdbc/README.md
@@ -14,12 +14,12 @@ The sample application adds the following dependencies:
 <dependency>
   <groupId>org.postgresql</groupId>
   <artifactId>postgresql</artifactId>
-  <version>0.42.3</version>
+  <version>0.43.0</version>
 </dependency>
 <dependency>
   <groupId>com.google.cloud</groupId>
   <artifactId>google-cloud-spanner-pgadapter</artifactId>
-  <version>0.42.3</version>
+  <version>0.43.0</version>
 </dependency>
 <!-- [END pgadapter_and_jdbc_dependency] -->
 ```
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/versions.txt b/versions.txt
index 2098a69b..d494418a 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
 # Format:
 # module:released-version:current-version
 
-google-cloud-spanner-pgadapter:0.42.3:0.42.4-SNAPSHOT
+google-cloud-spanner-pgadapter:0.43.0:0.43.0


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) {