A dropwizard appender for Sentry.io
- Once we add this to Maven Central, slap this in your pom file.
- Create a file named
io.dropwizard.logging.AppenderFactory
insrc/main/resources/META-INF/services
. Inside this file slap in the following linecom.abstractelemental.dropwizard.sentry.SentryAppenderFactory
. - Open up your Dropwizard configuration file and add in a new appender named
sentry
.
appenders:
- type: sentry
threshold: ERROR
dsn: https://user:pass@sentry.io/appid
environment: production
release: 1.0.0
serverName: 10.0.0.1