-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose SentryInstrumentation as bean with @ConditionalOnMissingBean for easy configuration #3412
Comments
Thanks for the suggestion @ooraini we should be able to make it a |
@adinauer Thanks for the reply
From what I know(and some research), I don't think you can excluded a I'll try it out and see, maybe it works. |
Adding to this, I just spent entirely too long running down an issue where Normally what Spring does is find all I determined the root cause to be that If So, +1 to the suggestion of making |
Thanks for the insight @jon-mercer, we'd like to tackle this for the upcoming v8 of the Java SDK. |
@ooraini and @jon-mercer we've just released It is now also possible to expose a bean of type Please note if you're using If you decide to give it a try, feedback would be great :-) |
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
The text was updated successfully, but these errors were encountered: