debian-mirror-gitlab/app/assets/javascripts/error_tracking/utils.js

13 lines
407 B
JavaScript
Raw Normal View History

2020-04-22 19:07:51 +05:30
/* eslint-disable @gitlab/require-i18n-strings, import/prefer-default-export */
2019-12-21 20:55:43 +05:30
/**
* 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,
});