Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -1,6 +1,6 @@
# Sentry Sample Spring Boot 3.0+

Sample application showing how to use Sentry with [Spring boot](http://spring.io/projects/spring-boot) from version `3.0` onwards.
Sample application showing how to use Sentry with [Spring boot](http://spring.io/projects/spring-boot) from version `3.0` onwards integrated with the [OpenTelemetry Spring Boot Starter](https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/).

## How to run?

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 @@ -31,4 +31,8 @@ spring.graphql.graphiql.enabled=true
spring.graphql.websocket.path=/graphql
spring.quartz.job-store-type=memory

# OTEL configuration
otel.propagators=tracecontext,baggage,sentry
otel.logs.exporter=none
otel.metrics.exporter=none
otel.traces.exporter=none
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sentry Sample Spring Boot

Sample application showing how to use Sentry with [Spring boot](http://spring.io/projects/spring-boot).
Sample application showing how to use Sentry with [Spring boot](http://spring.io/projects/spring-boot) integrated with the [OpenTelemetry Spring Boot Starter](https://opentelemetry.io/docs/zero-code/java/spring-boot-starter/).

## How to run?

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
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ spring.datasource.username=sa
spring.datasource.password=
spring.graphql.graphiql.enabled=true
spring.graphql.websocket.path=/graphql

# OTEL configuration
otel.propagators=tracecontext,baggage,sentry
otel.logs.exporter=none
otel.metrics.exporter=none
otel.traces.exporter=none
Loading