Enabling Sentry

551 views
Skip to first unread message

Sagun Tumkar

unread,
Apr 22, 2022, 7:59:20 PM4/22/22
to Keycloak Dev
Hi 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://quarkiverse.github.io/quarkiverse-docs/quarkus-logging-sentry/dev/index.html

I added new file /opt/keycloak/conf/quarkus.properties and copied below properties in there.

quarkus.log.sentry=true
quarkus.log.sentry.dsn= <SENTRY_DSN>
quarkus.log.sentry.in-app-packages=*

But after starting the container, I am getting below warnings.

keycloak_1  | 2022-04-22 23:40:24,857 WARN  [io.quarkus.config] (main) Unrecognized configuration key "quarkus.log.sentry" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo

keycloak_1  | 2022-04-22 23:40:24,858 WARN  [io.quarkus.config] (main) Unrecognized configuration key "quarkus.log.sentry.dsn" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo

keycloak_1  | 2022-04-22 23:40:24,858 WARN  [io.quarkus.config] (main) Unrecognized configuration key "quarkus.log.sentry.in-app-packages" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo

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

Thanks,
Sagun


Sagun Tumkar

unread,
Apr 25, 2022, 1:39:44 PM4/25/22
to Keycloak Dev
Hi Everyone,

Just wanted to check if anyone experienced this issue before and got it working with Keycloak 17.

Thanks,
Sagun

Fesenmeyer Daniel (IOB/PAU2)

unread,
Apr 25, 2022, 2:28:29 PM4/25/22
to Sagun Tumkar, Keycloak Dev

Hi Sagun,

 

Seems like the sentry extension is not available in Keycloak.

Not sure what’s the best way to get this extension into the Keycloak distribution and even if it’s the best way to use sentry.

 

Someone asked a similar question here and got an answer: https://keycloak.discourse.group/t/add-sentry-to-keycloak-container/11820

Probably the developer mailing list is the wrong place for such “usage-related” questions. If you ask at the discourse group (or the user mailing list), your question is more likely to be answered quickly.

 

Best regards

Daniel Fesenmeyer


Product Area User Management (IOB/PAU2)
Bosch.IO GmbH | Ziegelei 7 | 88090 Immenstaad | GERMANY | www.bosch.io
Tel. +49 7545 202-360 | Telefax +49 7545 202-301 | Daniel.F...@bosch.io


Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Stefan Koss; Geschäftsführung: Dr. Andreas Nauerz, Yvonne Reckling

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/9c5f7a85-5cac-4684-8412-b559604c1158n%40googlegroups.com.

Dominik Guhr

unread,
Apr 25, 2022, 3:31:10 PM4/25/22
to Fesenmeyer Daniel (IOB/PAU2), Sagun Tumkar, Keycloak Dev
Hi Sagun,

what Daniel states is correct, but to help you out you could try this:
Download the following jars, e.g. from mvnrepository:
quarkus-logging-sentry-1.1.0.jar
quarkus-logging-sentry-deployment-1.1.0.jar
sentry-5.6.3.jar (transient dependency of the sentry sdk from quarkiverse jars in order to work correctly)

put them in the providers directory
create your favored quarkus.properties with the sentry config options
run a build (kc.sh build)

start keycloak and see if it works.

disclaimer: Running quarkiverse extensions is highly experimental at the moment, may be subject to change later on and might just not work. We most likely will not have sentry support OOTB, but have some plans around supporting the quarkiverse extension ecosystem in general. Nevertheless would be nice to know if it works for you.

Best regards,
Dominik

Reply all
Reply to author
Forward
0 new messages