Skip to content

Add Instrumentation for linked resources

What does this MR do and why?

Adds instrumentation for backend tracking of issuable resource links create and delete.

Update specs for create and delete services

Screenshots or screen recordings

NA

How to set up and validate locally

  1. Check from rails console that there are no events registered for create, edit, and delete actions using Gitlab::UsageDataCounters::HLLRedisCounter.unique_events(event_names: 'incident_management_issuable_resource_link_*', start_date: Date.current.beginning_of_week, end_date: Date.current.next_week). Here * stands for created, and deleted.
  2. Enable feature flag incident_resource_links_widget and create, delete some links from the UI.
  3. Run the line from point 1 in the console and check the value change from 0 to 1. It counts the unique user count performing those actions.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #368597 (closed)

Edited by Rajendra Kadam

Merge request reports