Skip to content

Commit 4e473d2

Browse files
authored
Merge 1a77ca4 into 9e60fc1
2 parents 9e60fc1 + 1a77ca4 commit 4e473d2

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
- Send `http.request.method` in span data ([#2896](https://github.com/getsentry/sentry-java/pull/2896))
99
- Add `enablePrettySerializationOutput` option for opting out of pretty print ([#2871](https://github.com/getsentry/sentry-java/pull/2871))
1010

11+
### Fixes
12+
13+
- Add `sentry.enable-aot-compatibility` property to SpringBoot Jakarta `SentryAutoConfiguration` to enable building for GraalVM ([#2915](https://github.com/getsentry/sentry-java/pull/2915))
14+
1115
## 6.28.0
1216

1317
### Features

sentry-samples/sentry-samples-spring-boot-jakarta/src/main/resources/application.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ sentry.enable-tracing=true
1313
sentry.debug=true
1414
in-app-includes="io.sentry.samples"
1515

16+
# Uncomment and set to true to enable aot compatibility
17+
# This is disables all AOP related features (i.e. @SentryTransaction, @SentrySpan)
18+
# to successfully compile to GraalVM
19+
# sentry.enable-aot-compatibility=false
20+
1621
# Database configuration
1722
spring.datasource.url=jdbc:p6spy:hsqldb:mem:testdb
1823
spring.datasource.driver-class-name=com.p6spy.engine.spy.P6SpyDriver

sentry-spring-boot-jakarta/src/main/java/io/sentry/spring/boot/jakarta/SentryAutoConfiguration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ public FilterRegistrationBean<SentryTracingFilter> sentryTracingFilter(
273273
}
274274

275275
@Configuration(proxyBeanMethods = false)
276+
@ConditionalOnProperty(
277+
value = "sentry.enable-aot-compatibility",
278+
havingValue = "false",
279+
matchIfMissing = true)
276280
@Conditional(SentryTracingCondition.class)
277281
@ConditionalOnClass(ProceedingJoinPoint.class)
278282
@Import(SentryAdviceConfiguration.class)

0 commit comments

Comments
 (0)