Skip to content

Commit

Permalink
Merge 29f9cd1 into 1ec1b5d
Browse files Browse the repository at this point in the history
  • Loading branch information
adinauer committed Jun 26, 2023
2 parents 1ec1b5d + 29f9cd1 commit 05075c5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
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 05075c5

Please sign in to comment.