Skip to content

Commit

Permalink
poc to add otel bom to sentry bom and testing by adding a dep without…
Browse files Browse the repository at this point in the history
… version to noagent samples
  • Loading branch information
lbloder committed Dec 10, 2024
1 parent fae85e1 commit b1391be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ object Config {
val springBoot3StarterJdbc = "org.springframework.boot:spring-boot-starter-jdbc:$springBoot3Version"
val springBoot3StarterActuator = "org.springframework.boot:spring-boot-starter-actuator:$springBoot3Version"
val springBoot3StarterOpenTelemetry = "io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter:${OpenTelemetry.otelInstrumentationVersion}"
val springBoot3StarterOpenTelemetryNoversion = "io.opentelemetry.instrumentation:opentelemetry-spring-boot-starter"

val springWeb = "org.springframework:spring-webmvc"
val springWebflux = "org.springframework:spring-webflux"
Expand Down
3 changes: 3 additions & 0 deletions sentry-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
`maven-publish`
}

javaPlatform.allowDependencies()

dependencies {
constraints {
project.rootProject.subprojects
Expand All @@ -26,6 +28,7 @@ dependencies {
}
}
}
api(platform(Config.Libs.OpenTelemetry.otelInstrumentationBom))
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ dependencies {
implementation(projects.sentryLogback)
implementation(projects.sentryGraphql22)
implementation(projects.sentryQuartz)
implementation(Config.Libs.springBoot3StarterOpenTelemetry)
implementation(Config.Libs.springBoot3StarterOpenTelemetryNoversion)
implementation(projects.sentryOpentelemetry.sentryOpentelemetryBootstrap)
implementation(projects.sentryOpentelemetry.sentryOpentelemetryAgentcustomization)
implementation(platform(projects.sentryBom))

// database query tracing
implementation(projects.sentryJdbc)
Expand All @@ -69,12 +70,6 @@ dependencies {
testImplementation(Config.Libs.apolloKotlin)
}

dependencyManagement {
imports {
mavenBom(Config.Libs.OpenTelemetry.otelInstrumentationBom)
}
}

configure<SourceSetContainer> {
test {
java.srcDir("src/test/java")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ dependencies {
implementation(projects.sentryLogback)
implementation(projects.sentryGraphql)
implementation(projects.sentryQuartz)
implementation(Config.Libs.springBoot3StarterOpenTelemetry)
implementation(Config.Libs.springBoot3StarterOpenTelemetryNoversion)
implementation(projects.sentryOpentelemetry.sentryOpentelemetryBootstrap)
implementation(projects.sentryOpentelemetry.sentryOpentelemetryAgentcustomization)
implementation(platform(projects.sentryBom))

// database query tracing
implementation(projects.sentryJdbc)
Expand All @@ -70,12 +71,6 @@ dependencies {
testImplementation("org.apache.httpcomponents:httpclient")
}

dependencyManagement {
imports {
mavenBom(Config.Libs.OpenTelemetry.otelInstrumentationBom)
}
}

configure<SourceSetContainer> {
test {
java.srcDir("src/test/java")
Expand Down

0 comments on commit b1391be

Please sign in to comment.