-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description
This extension would add sentry support, the idea would be that when the sentry extension is enabled, you configure quarkus.sentry.dsn
and you are done.
Implementation ideas
Here are some leads to implement it provided by @dmlloyd:
basically logging is configured in
io.quarkus.deployment.logging.LoggingResourceProcessor
the configuration is held inio.quarkus.runtime.logging.LogConfig
and its members
in order to add Sentry support, we'd need to do one of two possible things
one would be to add a Sentry extension which adds a new configuration root, for exampleLogSentryConfig
, and then has configuration options similar to the existingConsoleConfig
,FileConfig
, etc.
then it would have a processor which produces a new build item that would be added to the core module, for exampleLogHandlerBuildItem
, which theLoggingResourceProcessor
would consume to complete the handler setup
so that's option one
option two would be to add a generic handler config toLogConfig
something likeMap<String, CustomHandler> customHandlers;
with aCustomHandler
class that includes a class name and some generic way to set up the custom handler