-
-
Notifications
You must be signed in to change notification settings - Fork 452
Read build tool info from sentry-debug-meta.properties
and attach it to events
#4314
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
base: main
Are you sure you want to change the base?
Conversation
applyBuildTool(options, debugMetaProperties); | ||
} | ||
} | ||
|
||
public static void applyToOptions( |
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.
This class and method are public and not marked as internal so I've created a new method to implement the new behavior
.getLogger() | ||
.log( | ||
SentryLevel.DEBUG, "Build tool found: %s, version %s", buildTool, buildToolVersion); | ||
SentryIntegrationPackageStorage.getInstance().addPackage(buildTool, buildToolVersion); |
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 don't like that we're abusing the sdk.packages
field of the envelope.
Should we maybe send it as sdk.build-tool
or something? Even though it's not officially supported by the protocol.
Performance metrics 🚀
|
📜 Description
Reads the build tool and its version from
sentry-debug-meta.properties
and sends it as part of the packages.The build tool is being written to
sentry-debug-meta.properties
by the plugin (io.sentry.build-tool
set to resp.maven
andgradle
).The plugins don't currently set
io.sentry.build-tool-version
, so if it's not there we fall back to reporting "unknown" as the version.In a future release of the plugin we can make it so they both write
io.sentry.build-tool-version
as well.💡 Motivation and Context
Closes #4142
💚 How did you test it?
Unit tests
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps
Change both of the plugins to report
io.sentry.build-tool-version
.