blob: 5b705cc5510e95cfa27228d52c64f61403e025b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* eslint-disable @gitlab/require-i18n-strings */
/**
* Tracks snowplow event when User clicks on error link to Sentry
* @param {String} externalUrl that will be send as a property for the event
*/
export const trackClickErrorLinkToSentryOptions = url => ({
category: 'Error Tracking',
action: 'click_error_link_to_sentry',
label: 'Error Link',
property: url,
});
/**
* Tracks snowplow event when user views error list
*/
export const trackErrorListViewsOptions = {
category: 'Error Tracking',
action: 'view_errors_list',
};
/**
* Tracks snowplow event when user views error details
*/
export const trackErrorDetailsViewsOptions = {
category: 'Error Tracking',
action: 'view_error_details',
};
/**
* Tracks snowplow event when error status is updated
*/
export const trackErrorStatusUpdateOptions = status => ({
category: 'Error Tracking',
action: `update_${status}_status`,
});
|