Skip to content

Add generator for new metric instrumentation classes

What does this MR do?

Related to #326420 (closed).

This adds a Rails generator for creating the new Usage Ping instrumentation classes along with spec stubs. Example usage is described in the USAGE banner file.

I excluded RSpec/TopLevelDescribePath from fixture files, because the cop tries to match the spec template like a legitimate spec. On the other hand, if the file ends with *_spec.rb, then RSpec tries to load it.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Piotr Skorupa

Merge request reports