newrelic reporter pushes run results to the
New Relic Event API.
Each test run is sent as a MomenticRun custom event and each run group as a
MomenticRunGroup summary event, which can be queried with NRQL.
1. Configure the reporter
Add areporting.newrelic block to momentic.config.yaml:
momentic.config.yaml
regiondefaults toUS. UseEUfor accounts in New Relic’s EU data center.licenseKeyis optional. If omitted, the reporter reads theNEW_RELIC_LICENSE_KEYenvironment variable. Use an ingest license key.attributesadds static tags (e.g.service,team) to every event, useful when multiple projects report into the same account.accountId,licenseKey, andattributesvalues all support${ENV_VAR}interpolation.
2. Run with the New Relic reporter
Pass--reporter newrelic to
momentic run:
--reporter multiple times to combine reporters:
3. Event reference
MomenticRun is sent once per executed test:
| Attribute | Description |
|---|---|
runId, runGroupId | Momentic run and run group identifiers |
testId, testName, filePath | Test identity |
status | PASSED, FAILED, or CANCELLED |
startedAt, finishedAt, durationMs | Timing |
attempts, quarantined, recovered | Retry and quarantine state |
labels | Comma-separated test labels |
environment, baseUrl | Environment the test ran against |
failureReason, failureMessage | Failure details (failed runs only) |
classificationCategory | AI failure classification category |
classificationReasoning | AI failure classification explanation |
runUrl | Link to the run in the Momentic dashboard |
gitBranch, gitCommit, gitRepository | Git metadata |
ciRunUrl | CI build link (GitHub Actions, GitLab, Buildkite, CircleCI) |
MomenticRunGroup is sent once per run as a summary:
| Attribute | Description |
|---|---|
runGroupId, runGroupUrl | Run group identity and link |
total, executed, skipped, passed, failed, cancelled, quarantined, recovered | Result counts |
passRate | passed / executed |
startedAt, finishedAt, durationMs | Timing |
environment, suiteName, git and CI attributes | Shared context |
attributes from the config are added to both event types.