Skip to content

Commit 687d2fe

Browse files
committed
Always look for external config for agent init; restore properties file
1 parent cca09cf commit 687d2fe

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

sentry-opentelemetry/sentry-opentelemetry-agentcustomization/src/main/java/io/sentry/opentelemetry/SentryAutoConfigurationCustomizerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void customize(AutoConfigurationCustomizer autoConfiguration) {
2929
if (sentryPropertiesFile != null || sentryDsn != null) {
3030
Sentry.init(
3131
options -> {
32-
options.setEnableExternalConfiguration(sentryPropertiesFile != null);
32+
options.setEnableExternalConfiguration(true);
3333
options.setInstrumenter(Instrumenter.OTEL);
3434
final @Nullable SdkVersion sdkVersion = createSdkVersion(options);
3535
if (sdkVersion != null) {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard
2+
sentry.dsn=https://[email protected]/5428563
3+
sentry.send-default-pii=true
4+
sentry.max-request-body-size=medium
5+
# Sentry Spring Boot integration allows more fine-grained SentryOptions configuration
6+
sentry.max-breadcrumbs=150
7+
# Logback integration configuration options
8+
sentry.logging.minimum-event-level=info
9+
sentry.logging.minimum-breadcrumb-level=debug
10+
# Performance configuration
11+
sentry.traces-sample-rate=1.0
12+
sentry.debug=true
13+
in-app-includes="io.sentry.samples"
14+
15+
# Database configuration
16+
spring.datasource.url=jdbc:p6spy:hsqldb:mem:testdb
17+
spring.datasource.driver-class-name=com.p6spy.engine.spy.P6SpyDriver
18+
spring.datasource.username=sa
19+
spring.datasource.password=

0 commit comments

Comments
 (0)