You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Modify each newly generated file so that they match the existing files for MR Widget Extension telemetry.
31
+
- You can find existing examples by doing a glob search like so: `metrics/**/*_i_code_review_merge_request_widget_*`
32
+
- Roughly-speaking, each file should have these values:
33
+
1. `description` = A plain English description of this value. Please see existing widget extension telemetry files for examples.
34
+
1. `product_section` = `dev`
35
+
1. `product_stage` = `create`
36
+
1. `product_group` = `code_review`
37
+
1. `product_category` = `code_review`
38
+
1. `introduced_by_url` = `'[your MR]'`
39
+
1. `options.events` = (the event in the command from above that generated this file, like `i_code_review_merge_request_widget_test_reports_count_view`)
40
+
- This is how the telemetry events are linked to "metrics" so this is probably one of the more important values
41
+
1. `data_source` = `redis`
42
+
1. `data_category` = `optional`
43
+
1. Repeat steps 5 and 6 for the HLL metrics. Replace `test_reports` with your appropriate name slug.
- In step 6 for HLL, change the `data_source` to `redis_hll`.
55
+
1. Add each of the HLL metrics to `lib/gitlab/usage_data_counters/known_events/code_review_events.yml`
56
+
1. `name` = [the event]
57
+
1. `redis_slot` = `code_review`
58
+
1. `category` = `code_review`
59
+
1. `aggregation` = `weekly`
60
+
1. Add each event to the appropriate aggregates in `config/metrics/aggregates/code_review.yml`
61
+
62
+
##### New Events
63
+
64
+
If you are adding a new event to our known events, it will need to be included in `lib/gitlab/usage_data_counters/merge_request_widget_extension_counter.rb`. Update the list of `KNOWN_EVENTS` with the new event(s).
0 commit comments