Add default category for shared example
What does this MR do and why?
When using the Gitlab::InternalEventsTracking module as recommended for instrumenting internal events, the default category value is the class name.
When using the 'internal event tracking' shared example, the default value for category is 'InternalEventTracking' (for maintaining legacy support). But we should recommend using the expected category for new usages of the shared example. This MR updates the internal events cli to include that in the generated output.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Run
scripts/internal_events/cli.rb - Select
View Usage - Select any event
- Select
rspec - See the new output!
| before | after |
|---|---|
![]() |
![]() |

