Skip to content

Add metric to check how many groups have enabled observability tracing ff

Ankit Panchal requested to merge groups-observability-tracing-enabled into master

What does this MR do and why?

This MR adds a metric to check for how many groups observability_tracing feature flag.

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

  1. Enable feature flag observability_tracing globally in rails console.
Feature.enable(:observability_tracing)
  1. run below in the terminal
bundle exec rake gitlab:usage_data:generate | jq .settings.observability_tracing_ff
-1
  1. Similarly, enabling feature flag only for certain groups should return count of the groups it is enabled.
Feature.enable(:observability_tracing, Group.find(33))

Related to https://gitlab.com/gitlab-org/opstrace/opstrace/-/issues/2806#metrics-to-implement

Edited by Ankit Panchal

Merge request reports

Loading