Title: [Feature] User readable dom element selectors in breadcrumbs · Issue #3604 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Feature] User readable dom element selectors in breadcrumbs · Issue #3604 · getsentry/sentry-javascript
X Title: [Feature] User readable dom element selectors in breadcrumbs · Issue #3604 · getsentry/sentry-javascript
Description: Right now it's hard to identify elements a user clicked on when trying to follow breadcrumb trails see: Because the way we serialize dom elements doesn't work well with autogenerated class names. It would be cool if users could define an...
Open Graph Description: Right now it's hard to identify elements a user clicked on when trying to follow breadcrumb trails see: Because the way we serialize dom elements doesn't work well with autogenerated class names. I...
X Description: Right now it's hard to identify elements a user clicked on when trying to follow breadcrumb trails see: Because the way we serialize dom elements doesn't work well with autogenerated class ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3604
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature] User readable dom element selectors in breadcrumbs","articleBody":"Right now it's hard to identify elements a user clicked on when trying to follow breadcrumb trails see:\r\n\r\n\r\nBecause the way we serialize dom elements doesn't work well with autogenerated class names.\r\nIt would be cool if users could define an attribute name we prefer when serializing dom elements.\r\n\r\nSo how it could work is that we extend `BreadcrumbsOptions` so \r\n`dom: boolean | { serializeAttribute: string }` and take this attribute instead of the classname / id\r\nhttps://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/integrations/breadcrumbs.ts#L163\r\n\r\nRef:\r\nhttps://forum.sentry.io/t/dom-interactions-selectors/3592\r\nhttps://forum.sentry.io/t/ui-click-dom-events-with-a-custom-sentry-html-tag/1084\r\n\r\nThe trail to follow how to implement:\r\nhttps://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/integrations/breadcrumbs.ts#L163\r\n-> \r\nhttps://github.com/getsentry/sentry-javascript/blob/d1d6c41d6b14160e56bb8f3e6747d8c9b71127d0/packages/utils/src/browser.ts#L9\r\n->\r\nhttps://github.com/getsentry/sentry-javascript/blob/d1d6c41d6b14160e56bb8f3e6747d8c9b71127d0/packages/utils/src/browser.ts#L57","author":{"url":"https://github.com/HazAT","@type":"Person","name":"HazAT"},"datePublished":"2021-05-27T07:54:23Z","url":"https://github.com/getsentry/sentry-javascript/issues/3604"}
| 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:cb4d0e07-dc1b-8f43-7e4d-2d8c1a687d60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D728:BEE9A:13A275B:1BA9AC2:6B045A69 |
| html-safe-nonce | 2bdf6aca098001ee296ac299542753cb6ec92185dfa06fd9b4a2e9f24fbc7fd0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzI4OkJFRTlBOjEzQTI3NUI6MUJBOUFDMjo2QjA0NUE2OSIsInZpc2l0b3JfaWQiOiI3OTcyOTc5NzM4Nzc0MTAwNTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 28f48470fa66c58eaa00bcf11de997860b67b7de45a83f160d627df53e40fe8f |
| hovercard-subject-tag | issue:903365389 |
| 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/3604/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94c421229274de2e67dfa53ca2d1bf9a167131171a45e6f5d271cd1e62119766/getsentry/sentry-javascript/issues/3604 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94c421229274de2e67dfa53ca2d1bf9a167131171a45e6f5d271cd1e62119766/getsentry/sentry-javascript/issues/3604 |
| og:image:alt | Right now it's hard to identify elements a user clicked on when trying to follow breadcrumb trails see: Because the way we serialize dom elements doesn't work well with autogenerated class names. I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HazAT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6 |
| 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 | 03e114520787ad27289207f153520ef97461127c |
| 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