Skip to content

Breadcrumbs of category ui.click trigger without user interaction on page load #2517

@adriaanmeuris

Description

@adriaanmeuris

Package + Version

  • @sentry/browser

Version:

5.15.0

Description

I'd like to use beforeBreadcrumb to capture ui.click breadcrumbs and change the breadcrumb message to something useful by looking at the target from hint.event.

I noticed that there are some breadcrumbs triggering on page load, and sometimes just randomly without any user interaction. Also, sometimes hint.event is a String.

How can we be sure that breadcrumbs of category ui.click only trigger when an actual click event is triggering by end users?

Repro

  1. Fork this Sandbox: https://codesandbox.io/s/sleepy-grass-7d2tw
  2. Add your Sentry DSN in the file sentry.js
  3. Reload and you'll see faulty (?) breadcrumbs (number 1 and 2):

Screenshot 2020-03-25 at 16 49 31

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions