doc/development/internal_analytics/review_guidelines.md
This page includes introductory material for an Analytics Instrumentation review. For broader advice and general best practices for code reviews, refer to our code review guide.
We mandate an Analytics Instrumentation review when a merge request (MR) touches or uses internal analytics code. This includes but is not limited to:
config/metrics.ee/config/metrics.schema.json.config/events.Internal events CLI.In most cases, an Analytics Instrumentation review is automatically added, but it can also be requested manually if the automations miss the relevant change.
Three roles participate in an Analytics Instrumentation review:
~analytics instrumentation and ~analytics instrumentation::review pending.require_relative 'spec/support/helpers/service_ping_helpers.rb'; ServicePingHelpers.get_current_usage_metric_value(key_path) with key_path substituted by the new metric's key_path.~analytics instrumentation review does not require a maintainer review.~database label and ask for a database review for
metrics that are based on Database.description.key_path.product_group field.
They should correspond to the stages file.ee.@csops-team), Analytics Engineers (@gitlab-data/analytics-engineers), and Product Analysts (@gitlab-data/product-analysts) by @ mentioning those groups in a comment on the issue for the MR and all of these groups have acknowledged the removal.~"analytics instrumentation::approved".Schema validators and linters catch missing required fields and malformed YAML, so this checklist focuses on judgment calls that automation cannot make.
action name follows the naming convention.description is clear to readers outside the team.ee/config/events if the event fires only from EE code.additional_properties do not contain sensitive or personal data.track_internal_event (backend) or trackEvent (frontend). Direct Snowplow calls such as Gitlab::Tracking.event and Redis or RedisHLL tracking are deprecated.action field changed, confirm the author considered the renaming implications.description, key_path, product_group, tiers, and that the file is under ee/config/metrics for EE-only metrics.data_source: internal_events, which is the recommended source for new metrics.data_source: database, hand the review to the Analytics Instrumentation team.redis or redis_hll data sources. See the migration guide.