Skip to content

Add instrumentation for Wiki page 'Print as PDF' dropdown option

What does this MR do and why?

Related to &14349.

This adds internal event instrumentation to clicking Print as PDF option in the Wiki page dropdown in the form of an event and corresponding metrics. Whenever the dropdown item is clicked, a tracking event is fired.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Run internal event monitor script bundle exec rails r scripts/internal_events/monitor.rb click_print_as_pdf_in_wiki_page
  2. Click Print as PDF in the Wiki actions dropdown (open the dropdown using the three dots button). Cancel or complete saving the PDF file.
  3. See the new event in the monitor list and metric numbers go up.

Merge request reports

Loading