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
- Check from rails console that there are no events registered for
create
,edit
, anddelete
actions usingGitlab::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 forcreated
, anddeleted
. - Enable feature flag
incident_resource_links_widget
and create, delete some links from the UI. - Run the line from point 1 in the console and check the value change from
0
to1
. 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #368597 (closed)
Edited by Rajendra Kadam