Skip to content

Commit 8bbd94e

Browse files
authored
[Logs 10] Move options for Logs out of experimental namespace (#4390)
* Add Log feature to Java SDK * Rate limit for log items * Add options for logs * Add batch processor for logs * Use a separate ExecutorService for log batching * Reduce locking when log event is created * Add system tests for Logs * Separate enum for SentryLogLevel * Remove logsSampleRate option * Move logs options out of experimental namespace
1 parent d08633d commit 8bbd94e

File tree

19 files changed

+34
-35
lines changed

19 files changed

+34
-35
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR
1515
sentry.enable-backpressure-handling=true
1616
sentry.enable-spotlight=true
1717
sentry.enablePrettySerializationOutput=false
18-
sentry.experimental.logs.enabled=true
18+
sentry.logs.enabled=true
1919
in-app-includes="io.sentry.samples"
2020

2121
# Uncomment and set to true to enable aot compatibility

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR
1515
sentry.enable-backpressure-handling=true
1616
sentry.enable-spotlight=true
1717
sentry.enablePrettySerializationOutput=false
18-
sentry.experimental.logs.enabled=true
18+
sentry.logs.enabled=true
1919
in-app-includes="io.sentry.samples"
2020

2121
# Uncomment and set to true to enable aot compatibility

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sentry.enable-backpressure-handling=true
1616
sentry.enable-spotlight=true
1717
sentry.enablePrettySerializationOutput=false
1818
in-app-includes="io.sentry.samples"
19-
sentry.experimental.logs.enabled=true
19+
sentry.logs.enabled=true
2020

2121
# Uncomment and set to true to enable aot compatibility
2222
# This flag disables all AOP related features (i.e. @SentryTransaction, @SentrySpan)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sentry.debug=true
1414
sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR
1515
sentry.enable-backpressure-handling=true
1616
sentry.enable-spotlight=true
17-
sentry.experimental.logs.enabled=true
17+
sentry.logs.enabled=true
1818
in-app-includes="io.sentry.samples"
1919

2020
# Database configuration

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sentry.debug=true
1414
sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR
1515
sentry.enable-backpressure-handling=true
1616
sentry.enable-spotlight=true
17-
sentry.experimental.logs.enabled=true
17+
sentry.logs.enabled=true
1818
in-app-includes="io.sentry.samples"
1919

2020
# Database configuration

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ sentry.logging.minimum-breadcrumb-level=debug
1010
sentry.reactive.thread-local-accessor-enabled=true
1111
sentry.traces-sample-rate=1.0
1212
sentry.enable-backpressure-handling=true
13-
sentry.experimental.logs.enabled=true
13+
sentry.logs.enabled=true
1414
sentry.enable-spotlight=true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ spring.graphql.graphiql.enabled=true
1212
spring.graphql.websocket.path=/graphql
1313
spring.graphql.schema.printer.enabled=true
1414
sentry.enable-backpressure-handling=true
15-
sentry.experimental.logs.enabled=true
15+
sentry.logs.enabled=true
1616
sentry.enable-spotlight=true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sentry.debug=true
1414
sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR
1515
sentry.enable-backpressure-handling=true
1616
sentry.enable-spotlight=true
17-
sentry.experimental.logs.enabled=true
17+
sentry.logs.enabled=true
1818
in-app-includes="io.sentry.samples"
1919

2020
# Database configuration

sentry-spring-boot-jakarta/src/test/kotlin/io/sentry/spring/boot/jakarta/SentryAutoConfigurationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class SentryAutoConfigurationTest {
188188
"sentry.cron.default-timezone=America/New_York",
189189
"sentry.cron.default-failure-issue-threshold=40",
190190
"sentry.cron.default-recovery-threshold=50",
191-
"sentry.experimental.logs.enabled=true"
191+
"sentry.logs.enabled=true"
192192
).run {
193193
val options = it.getBean(SentryProperties::class.java)
194194
assertThat(options.readTimeoutMillis).isEqualTo(10)
@@ -233,7 +233,7 @@ class SentryAutoConfigurationTest {
233233
assertThat(options.cron!!.defaultTimezone).isEqualTo("America/New_York")
234234
assertThat(options.cron!!.defaultFailureIssueThreshold).isEqualTo(40L)
235235
assertThat(options.cron!!.defaultRecoveryThreshold).isEqualTo(50L)
236-
assertThat(options.experimental.logs.isEnabled).isEqualTo(true)
236+
assertThat(options.logs.isEnabled).isEqualTo(true)
237237
}
238238
}
239239

sentry-spring-boot/src/test/kotlin/io/sentry/spring/boot/SentryAutoConfigurationTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class SentryAutoConfigurationTest {
187187
"sentry.cron.default-timezone=America/New_York",
188188
"sentry.cron.default-failure-issue-threshold=40",
189189
"sentry.cron.default-recovery-threshold=50",
190-
"sentry.experimental.logs.enabled=true"
190+
"sentry.logs.enabled=true"
191191
).run {
192192
val options = it.getBean(SentryProperties::class.java)
193193
assertThat(options.readTimeoutMillis).isEqualTo(10)
@@ -232,7 +232,7 @@ class SentryAutoConfigurationTest {
232232
assertThat(options.cron!!.defaultTimezone).isEqualTo("America/New_York")
233233
assertThat(options.cron!!.defaultFailureIssueThreshold).isEqualTo(40L)
234234
assertThat(options.cron!!.defaultRecoveryThreshold).isEqualTo(50L)
235-
assertThat(options.experimental.logs.isEnabled).isEqualTo(true)
235+
assertThat(options.logs.isEnabled).isEqualTo(true)
236236
}
237237
}
238238

0 commit comments

Comments
 (0)