Skip to content

Conversation

@lcian
Copy link
Member

@lcian lcian commented Apr 3, 2025

📜 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 and gradle).
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

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Change both of the plugins to report io.sentry.build-tool-version.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 403.65 ms 454.30 ms 50.65 ms
Size 1.58 MiB 2.09 MiB 519.06 KiB

Previous results on branch: lcian/feat/report-build-tool

Startup times

Revision Plain With Sentry Diff
465de40 413.00 ms 467.52 ms 54.52 ms

App size

Revision Plain With Sentry Diff
465de40 1.58 MiB 2.09 MiB 518.93 KiB

@lcian lcian requested review from adinauer and removed request for adinauer July 3, 2025 13:46
Copy link
Member

@adinauer adinauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM but seems not to be used yet.

@lcian lcian merged commit 6e0d085 into main Jul 7, 2025
33 checks passed
@lcian lcian deleted the lcian/feat/report-build-tool branch July 7, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send build tool info to Sentry

4 participants