Skip to content

Commit

Permalink
Merge 67813f7 into ad3d2a4
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer authored Jun 27, 2023
2 parents ad3d2a4 + 67813f7 commit 9b77d44
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
- Enhance regex patterns for native stackframes
- Tracing headers (`sentry-trace` and `baggage`) are now attached and passed through even if performance is disabled ([#2788](https://github.com/getsentry/sentry-java/pull/2788))

### Fixes

- Remove code that set `tracesSampleRate` to `0.0` for Spring Boot if not set ([#2800](https://github.com/getsentry/sentry-java/pull/2800))

## 6.23.0

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ static class HubConfiguration {
BuildConfig.SENTRY_SPRING_BOOT_JAKARTA_SDK_NAME + "/" + BuildConfig.VERSION_NAME);
options.setSdkVersion(createSdkVersion(options));
addPackageAndIntegrationInfo();
if (options.getTracesSampleRate() == null && options.getEnableTracing() == null) {
options.setTracesSampleRate(0.0);
}
// Spring Boot sets ignored exceptions in runtime using reflection - where the generic
// information is lost
// its technically possible to set non-throwable class to `ignoredExceptionsForType` set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class SentryAutoConfigurationTest {
"sentry.dsn=http://key@localhost/proj"
).run {
val options = it.getBean(SentryProperties::class.java)
assertThat(options.tracesSampleRate).isNotNull().isEqualTo(0.0)
assertThat(options.tracesSampleRate).isNull()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ static class HubConfiguration {
BuildConfig.SENTRY_SPRING_BOOT_SDK_NAME + "/" + BuildConfig.VERSION_NAME);
options.setSdkVersion(createSdkVersion(options));
addPackageAndIntegrationInfo();
if (options.getTracesSampleRate() == null && options.getEnableTracing() == null) {
options.setTracesSampleRate(0.0);
}
// Spring Boot sets ignored exceptions in runtime using reflection - where the generic
// information is lost
// its technically possible to set non-throwable class to `ignoredExceptionsForType` set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class SentryAutoConfigurationTest {
"sentry.dsn=http://key@localhost/proj"
).run {
val options = it.getBean(SentryProperties::class.java)
assertThat(options.tracesSampleRate).isNotNull().isEqualTo(0.0)
assertThat(options.tracesSampleRate).isNull()
}
}

Expand Down

0 comments on commit 9b77d44

Please sign in to comment.