Skip to content

Commit

Permalink
Fix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagohora committed Sep 16, 2024
1 parent a748b3f commit 1363001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
19 changes: 2 additions & 17 deletions apps/opik-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<uuid.java.generator.version>5.1.0</uuid.java.generator.version>
<wiremock.version>3.9.1</wiremock.version>
<redisson.version>3.34.1</redisson.version>
<opentelmetry.version>1.42.1</opentelmetry.version>
<opentelmetry.version>2.8.0</opentelmetry.version>
<mainClass>com.comet.opik.OpikApplication</mainClass>
</properties>

Expand All @@ -50,29 +50,14 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>${opentelmetry.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId>
<version>${opentelmetry.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import com.comet.opik.infrastructure.OpenTelemetryConfig;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import io.opentelemetry.api.GlobalOpenTelemetry;
import io.opentelemetry.api.OpenTelemetry;
import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk;
import jakarta.inject.Singleton;
import ru.vyarus.dropwizard.guice.module.yaml.bind.Config;

Expand All @@ -18,6 +18,6 @@ public OpenTelemetry openTelemetry(@Config("openTelemetry") OpenTelemetryConfig
return OpenTelemetry.noop();
}

return AutoConfiguredOpenTelemetrySdk.initialize().getOpenTelemetrySdk();
return GlobalOpenTelemetry.get();
}
}

0 comments on commit 1363001

Please sign in to comment.