Provide better output from event and metric definition validator
Problem
We rely on the spec it 'has all definitions valid'
in gitlab/spec/lib/gitlab/tracking/event_definition_spec.rb
to validate the event definitions.
When an event definition isn't valid, the output from the spec is not very useful.
We have a similar problem for metric definitions as seen here: !139798 (comment 1698599878)
Desired outcome
When one or more event or metric definitions are invalid, the output from the spec should make it clear what is wrong. It should list all definitions that doesn't validate so developers doesn't have to rerun the specs unnecessarily.
Proposed solution
TBD
How to verify
TBD
Edited by Jonas Larsen