Title: Improve slow click / multi click capture · Issue #8379 · getsentry/sentry-javascript · GitHub
Open Graph Title: Improve slow click / multi click capture · Issue #8379 · getsentry/sentry-javascript
X Title: Improve slow click / multi click capture · Issue #8379 · getsentry/sentry-javascript
Description: After some discussion, we landed on implementing the following logic/behavior for slow/rage click detection in Replay: Clicks generate ui.click breadcrumbs immediately these are debounced by 1s, so any further click on the same element w...
Open Graph Description: After some discussion, we landed on implementing the following logic/behavior for slow/rage click detection in Replay: Clicks generate ui.click breadcrumbs immediately these are debounced by 1s, so...
X Description: After some discussion, we landed on implementing the following logic/behavior for slow/rage click detection in Replay: Clicks generate ui.click breadcrumbs immediately these are debounced by 1s, so...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8379
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve slow click / multi click capture","articleBody":"After some discussion, we landed on implementing the following logic/behavior for slow/rage click detection in Replay:\r\n\r\n\r\n\r\n* Clicks generate `ui.click` breadcrumbs immediately\r\n * these are debounced by 1s, so any further click on the same element within 1s does not generate a further `ui.click` breadcrumb!\r\n* Whenever a `ui.click` breadcrumb is captured, we start looking for 7s for a) further clicks on the same element and b) if the click is a slow click\r\n* After 7s...\r\n * if no mutation happened in the meanwhile, we create a `ui.slowClickDetected` breadcrumb with a `clickCount` counting all clicks on the same element in the last 7s\r\n * if a mutation happened and more than 1 click in total happened in the last 7s on the element, we create a `ui.multiClick` breadcrumb with the `clickCount`\r\n * If only this one click happened, we create no more breadcrumbs\r\n\r\nThis means that:\r\n* We always get slow/multi click breadcrumbs after 7s, never before. This means we _may_ loose some, but this is worth it to us so we have better data.\r\n* We count _all_ clicks that happened in the 7s period. The idea is, that if a slow click happens, then after 3s the user starts rage clicking on the same button - we can detect this by seeing that this slow click had a lot of clicks in this 7s.\r\n* There _may_ still be false positives, think a `continue` button that is clicked a few times in 7s because the user is moving forward fast - but this we can figure out eventually.\r\n\r\nOne thing to note is that the `ui.slowClick` / `ui.multiClick` breadcrumbs will be created with the same timestamp & message as the original `ui.click` breadcrumb.","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-06-22T08:00:33Z","url":"https://github.com/getsentry/sentry-javascript/issues/8379"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d29ccff-e893-e4ee-97e8-a79d2be30d33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D442:3F9CD1:8CE3EE:B95147:6B04CF16 |
| html-safe-nonce | 2e5d2b2fcda74c09610ef7280b7dad5274bb369f664691a63d2066f77a86de1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDQyOjNGOUNEMTo4Q0UzRUU6Qjk1MTQ3OjZCMDRDRjE2IiwidmlzaXRvcl9pZCI6IjQ3MjQyOTMxOTkzNjYyNDYxNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 97003a48cf19999be2d53338e9e7d0ee301c084e59002111f2e6ab44ab04b771 |
| hovercard-subject-tag | issue:1769158703 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/8379/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1745cb235723466873214889e80298ea6f2afa256dbabfd874edb8349b0f0472/getsentry/sentry-javascript/issues/8379 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1745cb235723466873214889e80298ea6f2afa256dbabfd874edb8349b0f0472/getsentry/sentry-javascript/issues/8379 |
| og:image:alt | After some discussion, we landed on implementing the following logic/behavior for slow/rage click detection in Replay: Clicks generate ui.click breadcrumbs immediately these are debounced by 1s, so... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width