Skip to content

Commit

Permalink
inline otel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidangb committed Dec 11, 2024
1 parent f2de8c6 commit a0125f0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ project.ext {
isCiServer = System.getenv().containsKey("CI")
}

// Spring Boot 3.4.0 pulls in opentelemetry-bom 1.43.0.
// When upgrading Spring Boot, re-check these versions.
ext['opentelemetry.version'] = '1.43.0'
ext['opentelemetry.instrumentation.version'] = '2.9.0' // 2.9.0 targets opentelemetry 1.43.0

// If true, search local repository (~/.m2/repository/) first for dependencies.
def useMavenLocal = false
repositories {
Expand Down Expand Up @@ -90,7 +85,10 @@ dependencies {
implementation group: 'ch.qos.logback.contrib', name: 'logback-jackson', version: '0.1.5'

// OpenTelemetry dependencies:
implementation platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${project.ext['opentelemetry.instrumentation.version']}-alpha")
// Spring Boot 3.4.0 pulls in opentelemetry-bom 1.43.0.
// We choose opentelemetry-instrumentation-bom-alpha:2.9.0-alpha because otel-instrumentation 2.9.0 targets otel 1.43.0.
// When upgrading Spring Boot, re-check these versions.
implementation platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.9.0-alpha")
// ... versioned by Spring Boot
api 'io.opentelemetry:opentelemetry-api'
implementation 'io.opentelemetry:opentelemetry-exporter-logging'
Expand Down

0 comments on commit a0125f0

Please sign in to comment.