Skip to content

Commit

Permalink
Merge branch '8.x.x' into feat/update-otel-sample-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lbloder committed Jan 7, 2025
2 parents b1a5b9e + a509828 commit c7c68dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Features

- Enable `ThreadLocalAccessor` for Spring Boot 3 WebFlux by default ([#4023](https://github.com/getsentry/sentry-java/pull/4023))

## 8.0.0-rc.3

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public SentryLegacyFilterConfigurationCondition() {

@ConditionalOnProperty(
name = "sentry.reactive.thread-local-accessor-enabled",
havingValue = "false",
matchIfMissing = true)
havingValue = "false")
@SuppressWarnings("UnusedNestedClass")
private static class SentryDisableThreadLocalAccessorCondition {}

Expand All @@ -109,7 +108,8 @@ public SentryThreadLocalAccessorCondition() {

@ConditionalOnProperty(
name = "sentry.reactive.thread-local-accessor-enabled",
havingValue = "true")
havingValue = "true",
matchIfMissing = true)
@SuppressWarnings("UnusedNestedClass")
private static class SentryEnableThreadLocalAccessorCondition {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class SentryWebfluxAutoConfigurationTest {
fun `configures sentryWebFilter`() {
contextRunner.withPropertyValues("sentry.dsn=http://key@localhost/proj")
.run {
assertThat(it).hasSingleBean(SentryWebFilter::class.java)
assertThat(it).doesNotHaveBean(SentryWebFilterWithThreadLocalAccessor::class.java)
assertThat(it).hasSingleBean(SentryWebFilterWithThreadLocalAccessor::class.java)
assertThat(it).doesNotHaveBean(SentryWebFilter::class.java)
}
}

Expand Down Expand Up @@ -63,6 +63,7 @@ class SentryWebfluxAutoConfigurationTest {
)
.run {
assertThat(it).hasSingleBean(SentryWebFilterWithThreadLocalAccessor::class.java)
assertThat(it).doesNotHaveBean(SentryWebFilter::class.java)
}
}

Expand All @@ -75,6 +76,7 @@ class SentryWebfluxAutoConfigurationTest {
)
.run {
assertThat(it).doesNotHaveBean(SentryWebFilterWithThreadLocalAccessor::class.java)
assertThat(it).hasSingleBean(SentryWebFilter::class.java)
}
}

Expand Down

0 comments on commit c7c68dd

Please sign in to comment.