-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
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
- Fork this Sandbox: https://codesandbox.io/s/sleepy-grass-7d2tw
- Add your Sentry DSN in the file
sentry.js
- Reload and you'll see faulty (?) breadcrumbs (number 1 and 2):
Metadata
Metadata
Assignees
Labels
No labels