-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Check for mixed SDK versions #4270
Conversation
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
dd09760 | 408.00 ms | 475.67 ms | 67.67 ms |
f1edfce | 351.51 ms | 381.63 ms | 30.11 ms |
0376116 | 388.63 ms | 437.71 ms | 49.08 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
dd09760 | 1.58 MiB | 2.22 MiB | 653.31 KiB |
f1edfce | 1.58 MiB | 2.22 MiB | 653.31 KiB |
0376116 | 1.58 MiB | 2.22 MiB | 653.14 KiB |
for (SentryPackage pkg : packages) { | ||
if (pkg.getName().startsWith("maven:io.sentry:") | ||
&& !sdkVersion.equalsIgnoreCase(pkg.getVersion())) { | ||
logger.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking if we should introduce a method that force-logs regardless of the debug and diagnosticLevel values set and use it here, wdyt?
} | ||
|
||
public @NotNull Set<SentryPackage> getPackages() { | ||
return packages; | ||
} | ||
|
||
public boolean checkForMixedVersions(final @NotNull ILogger logger) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess would be nice to have a test for this (if not yet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah will PR one
#skip-changelog
Changelog is written in a follow up PR
📜 Description
SentryIntegrationPackageStorage.packages
for mixed versions when sending out an envelope.This is only the first step where we log when mixed versions have been detected.
Next step is to not enable the SDK in that case.
💡 Motivation and Context
First step for solving #4132
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps