Skip to content

Expose SentryInstrumentation as bean with @ConditionalOnMissingBean for easy configuration #3412

@ooraini

Description

@ooraini

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions