sentry-java
sentry-java copied to clipboard
Expose SentryInstrumentation as bean with @ConditionalOnMissingBean for easy configuration
Problem Statement
I trying to use SentryInstrumentation.BeforeSpanCallback
with the auto configuration from Sentry, but unfortunately with the way it's set up, it's very hard to override. I'm not sure what is the best solution, perhaps it could be defined as @bean
with @ConditionalOnMissingBean
. I doubt there will be more than one in the application context.
Solution Brainstorm
No response