Enabling Sentry in Keycloak -18.0

228 views
Skip to first unread message

SadaShiv Dash

unread,
Aug 22, 2022, 8:21:31 AM8/22/22
to keyclo...@googlegroups.com, keyclo...@googlegroups.com
Hello All,

I am trying to add the integration with Sentry in my custom extension so I can send the errors to Sentry. I followed the steps mentioned here: https://groups.google.com/g/keycloak-dev/c/9w3RCKzvHIk/m/BX-KFJtsAwAJ?utm_medium=email&utm_source=footer

I have added following jars and copy to /opt/keycloak/providers/
  1. quarkus-logging-sentry-1.2.1.jar
  2. quarkus-logging-sentry-deployment-1.2.1.jar
  3. sentry-6.4.0.jar
With created a quarkus.properties with below and copy to /opt/keycloak/conf/
quarkus.log.sentry=true
quarkus.log.sentry.dsn= http://68e9ee622fa043c1aa978dec8385@localhost:8080/2
quarkus.log.sentry.in-app-packages=*


When I Start the container , I got below error:
ERROR: Failed to start server in (development) mode
Error details:
java.lang.NoClassDefFoundError: io/sentry/jul/SentryHandler
        at io.quarkus.logging.sentry.SentryHandlerValueFactory.create(SentryHandlerValueFactory.java:30)
        at io.quarkus.deployment.steps.SentryProcessor$addSentryLogHandler1613402751.deploy_0(Unknown Source)
        at io.quarkus.deployment.steps.SentryProcessor$addSentryLogHandler1613402751.deploy(Unknown Source)
        at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
        at io.quarkus.runtime.Application.start(Application.java:101)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:103)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)


I am using keycloak 18. Am I doing something wrong here? Any help would be really appreciated. 

Best Regards
Sada Shiv Dash

SadaShiv Dash

unread,
Aug 22, 2022, 8:23:03 AM8/22/22
to keyclo...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages