You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/07/29 15:00:59 UTC
Re: [I] [MNG-6899] Maven Runtime Metrics System [maven]
gnodet commented on issue #8417:
URL: https://github.com/apache/maven/issues/8417#issuecomment-5119590335
The Build Report Foundation work in #12572 partially addresses this — it captures the core metrics that were proposed here:
- **Mojo execution times** — every `MojoReport` in `build-report.json` includes `startInstant`, `endInstant`, and `durationMillis`
- **Module build times** — every `ModuleReport` includes timing, status, and per-phase breakdown
- **Build metadata** — goals, profiles, Maven/Java versions, timestamps
The structured JSON report (`target/build-reports/build-report-latest.json`) is machine-readable and available after every build, so external tools can parse it without scraping console output.
What's **not** covered by #12572 and would remain as separate work for this issue:
- A pluggable `Metrics` SPI that plugins can inject counters/summaries into
- Export to external systems (Prometheus, OpenTelemetry, etc.)
- Real-time metrics streaming (the report is written at session end)
The `BuildReport` data model could serve as the foundation for these extensions — the per-mojo timing data is already structured and available through the API (`org.apache.maven.api.build.report`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org