Skip to content

Commit

Permalink
Update OpenTelemetry to 1.30.1
Browse files Browse the repository at this point in the history
This requires version up of dep.opentelemetry-instrumentation.version.
  • Loading branch information
ebyhr committed Sep 19, 2023
1 parent 1638d2e commit 32a0838
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/trino-filesystem/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</dependency>

<dependency>
<groupId>io.opentelemetry</groupId>
<groupId>io.opentelemetry.semconv</groupId>
<artifactId>opentelemetry-semconv</artifactId>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.api.trace.StatusCode;
import io.opentelemetry.semconv.trace.attributes.SemanticAttributes;
import io.opentelemetry.semconv.SemanticAttributes;

import java.util.Optional;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ public Connection openConnection(ConnectorSession session)
throws SQLException
{
Properties properties = getCredentialProperties(session.getIdentity());
// TODO: Telemetry is disabled due to NPE being thrown on null connection
// Connection connection = dataSource.getConnection(properties);
Connection connection = driver.connect(connectionUrl, properties);
Connection connection = dataSource.getConnection(properties);
checkState(connection != null, "Driver returned null connection, make sure the connection URL '%s' is valid for the driver %s", connectionUrl, driver);
return connection;
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@
<dep.iceberg.version>1.3.1</dep.iceberg.version>
<dep.protobuf.version>3.23.2</dep.protobuf.version>
<dep.wire.version>4.5.0</dep.wire.version>
<dep.opentelemetry.version>1.29.0</dep.opentelemetry.version>
<dep.opentelemetry-instrumentation.version>1.29.0</dep.opentelemetry-instrumentation.version>
<dep.opentelemetry.version>1.30.1</dep.opentelemetry.version>
<dep.opentelemetry-instrumentation.version>1.30.0</dep.opentelemetry-instrumentation.version>
<dep.netty.version>4.1.97.Final</dep.netty.version>
<dep.jna.version>5.13.0</dep.jna.version>
<dep.okio.version>3.3.0</dep.okio.version>
Expand Down

0 comments on commit 32a0838

Please sign in to comment.