Last active
September 14, 2026 21:33
-
-
Save eurica/c86454351a7bba2ded5255cdee59020b to your computer and use it in GitHub Desktop.
FusionAuth Sentry logback appender — sends WARN+ logs to Sentry. Obviously not the configuration we'd use in prod.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml | |
| index 66e559f76..caa03c3fc 100644 | |
| @@ -25,9 +25,17 @@ | |
| </triggeringPolicy> | |
| </appender> | |
| + <!-- Sends WARN-and-above log events to Sentry. DSN and other config come from sentry.properties. --> | |
| + <appender name="Sentry" class="io.sentry.logback.SentryAppender"> | |
| + <minimumEventLevel>WARN</minimumEventLevel> | |
| + <minimumBreadcrumbLevel>DEBUG</minimumBreadcrumbLevel> | |
| + <minimumLevel>DEBUG</minimumLevel> | |
| + </appender> | |
| + | |
| <root level="INFO"> | |
| <appender-ref ref="FILE"/> | |
| <appender-ref ref="STDOUT"/> | |
| + <appender-ref ref="Sentry"/> | |
| </root> | |
| <!-- Kafka has a lot of INFO logging which ends up being really noise --> | |
| # src/main/config/dev/sentry.properties (new file) | |
| dsn=https://540638b18cc55b6e725c1dc3a9287923@o4512052182384640.ingest.us.sentry.io/4512052644413440 | |
| environment=development | |
| send-default-pii=true | |
| logs.enabled=true | |
| traces-sample-rate=1.0 | |
| profile-session-sample-rate=1.0 | |
| profile-lifecycle=trace |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obviously not the configuration we'd use in prod, but you could have this on preview branches for QA.