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

Detect mixed versions of Sentry between Agent and normal dependencies

Open lcian opened this issue 3 months ago • 1 comments

Description

In previous work we intended to crash the SDK on startup if mixed versions of Sentry are detected.

Right now this doesn't work in all cases, as is demonstrated here: https://github.com/lcian/sentry-samples-java/tree/main/mixed_versions_agent.

We should find a way to detect the mismatch and report it to the user, either by crashing the app or by finding another solution (e.g. reporting an issue in Sentry).

lcian avatar Sep 24 '25 10:09 lcian