sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Expose SentryInstrumentation as bean with @ConditionalOnMissingBean for easy configuration

Open ooraini opened this issue 9 months ago • 4 comments

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

ooraini avatar May 09 '24 15:05 ooraini