Title: Capture Replay dead click as breadcrumb · Issue #8021 · getsentry/sentry-javascript · GitHub
Open Graph Title: Capture Replay dead click as breadcrumb · Issue #8021 · getsentry/sentry-javascript
X Title: Capture Replay dead click as breadcrumb · Issue #8021 · getsentry/sentry-javascript
Description: We want to start capturing what we assume could be dead clicks as replay breadcrumbs. For now, we will do nothing with this but capture it, so we can evaluate this. Capture logic We will add a global click handler on button,a,input[type=...
Open Graph Description: We want to start capturing what we assume could be dead clicks as replay breadcrumbs. For now, we will do nothing with this but capture it, so we can evaluate this. Capture logic We will add a glob...
X Description: We want to start capturing what we assume could be dead clicks as replay breadcrumbs. For now, we will do nothing with this but capture it, so we can evaluate this. Capture logic We will add a glob...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8021
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Capture Replay dead click as breadcrumb","articleBody":"We want to start capturing what we assume could be dead clicks as replay breadcrumbs.\r\nFor now, we will do nothing with this but capture it, so we can evaluate this.\r\n\r\n## Capture logic\r\n\r\nWe will add a global click handler on `button,a,input[type=\"button\"],input[type=\"submit\"]`. When such an element is clicked, we will start watching for _any_ mutation on the page via a mutation observer, and start a timer. When the next mutation after the click is > 1s after the click, we will capture a replay breadcrumb with the actual time it took until the next mutation, timing out after a maximum of 5s.\r\n\r\n## Breadcrumb format\r\n\r\n```ts\r\ntype Breadcrumb = {\r\n category: 'replay.slowClickDetected',\r\n timestamp: number, // time of click\r\n data: {\r\n \r\n timeAfterClickMs: number, // how long until mutation happened, in ms - capped at 5000\r\n url: string, // URL of the page at the time of click\r\n route: string | undefined, // parametrized route of the URL at the time of click. This only works when performance is enabled!,\r\n endReason: string, // the reason why the click timer was ended. e.g.: timeout, scroll, mutation, urlChange\r\n}\r\n```","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-05-03T07:37:53Z","url":"https://github.com/getsentry/sentry-javascript/issues/8021"}
| 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:21c7438c-2b10-9547-8755-554ed5820aac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A65A:25C00B:2634BE0:31CF3F2:6B054AE1 |
| html-safe-nonce | ffe55e1e0a504a1f740fc688d0a7f73b95ae1a4bf6e25e8918bd2a9a116cf817 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjVBOjI1QzAwQjoyNjM0QkUwOjMxQ0YzRjI6NkIwNTRBRTEiLCJ2aXNpdG9yX2lkIjoiMjYwMzU5NjE5Mjk0NDU3MzE1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 65c6f09c5e96992426a434812ff95245eb3bc72a0690404a050e5caac6904a38 |
| hovercard-subject-tag | issue:1693554010 |
| 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/8021/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0aaf6f3e88f7dbef33031a6e87fe6b219153604b201d28a8657785a0d5bac3b/getsentry/sentry-javascript/issues/8021 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0aaf6f3e88f7dbef33031a6e87fe6b219153604b201d28a8657785a0d5bac3b/getsentry/sentry-javascript/issues/8021 |
| og:image:alt | We want to start capturing what we assume could be dead clicks as replay breadcrumbs. For now, we will do nothing with this but capture it, so we can evaluate this. Capture logic We will add a glob... |
| 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 | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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