Title: Custom breadcrumb message data based on DOM element · Issue #3015 · getsentry/sentry-javascript · GitHub
Open Graph Title: Custom breadcrumb message data based on DOM element · Issue #3015 · getsentry/sentry-javascript
X Title: Custom breadcrumb message data based on DOM element · Issue #3015 · getsentry/sentry-javascript
Description: I can see this has been raised some time ago in these three issues (#577 #576 #783) which seem to indicate an implementation was being considered. I wasn't able to find anything in the docs about this though, other than creating my own i...
Open Graph Description: I can see this has been raised some time ago in these three issues (#577 #576 #783) which seem to indicate an implementation was being considered. I wasn't able to find anything in the docs about t...
X Description: I can see this has been raised some time ago in these three issues (#577 #576 #783) which seem to indicate an implementation was being considered. I wasn't able to find anything in the docs abo...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3015
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom breadcrumb message data based on DOM element","articleBody":"I can see this has been raised some time ago in these three issues (#577 #576 #783) which seem to indicate an implementation was being considered. I wasn't able to find anything in the docs about this though, other than creating my own implementation using the `beforeBreadcrumb` hook.\r\n\r\nWith css utility class frameworks becoming more popular, I would like to bring this issue up again for review. We're using tailwindcss and having the class names come through in the breadcrumb history provides almost no assistance in debugging or reproducing the error.\r\n\r\nFor example we will see things like this.\r\n\r\n\u003cimg width=\"858\" alt=\"Screenshot 2020-10-29 at 09 20 11\" src=\"https://user-images.githubusercontent.com/4869877/97549163-f97f7c00-19c7-11eb-85a1-f8857eda3fa8.png\">\r\n\r\nTo remedy this I have had to implement our own custom code that inspects the target element and pulls some data from its attributes to get a more actionable log in sentry. I feel like having a standard data attribute (or being able to specify one) would provide a generic solution to this problem, falling back onto class names if the attribute doesn't exist.\r\n","author":{"url":"https://github.com/swelham","@type":"Person","name":"swelham"},"datePublished":"2020-10-29T09:27:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/3015"}
| 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:e0bd3ba3-0fe4-8c57-c93b-262bee4ea452 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEA2:21700E:3F1F30:56CB20:6B046E18 |
| html-safe-nonce | 38be547b06ed9fda9fd0f8a2cf11c92f26ab77f3b099ccde4ccd768080bb18a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUEyOjIxNzAwRTozRjFGMzA6NTZDQjIwOjZCMDQ2RTE4IiwidmlzaXRvcl9pZCI6IjYwNjYxMDMxMzA4MTMzOTQ0NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c4d243a5b279a581c40d1a0b640bc21dc733738720740afc24c2118ee5a79ba |
| hovercard-subject-tag | issue:732148010 |
| 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/3015/issue_layout |
| twitter:image | https://opengraph.githubassets.com/102072835ac3a3124b97ea130d004a648157b67d802fcd84452c8384dc500a9e/getsentry/sentry-javascript/issues/3015 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/102072835ac3a3124b97ea130d004a648157b67d802fcd84452c8384dc500a9e/getsentry/sentry-javascript/issues/3015 |
| og:image:alt | I can see this has been raised some time ago in these three issues (#577 #576 #783) which seem to indicate an implementation was being considered. I wasn't able to find anything in the docs about t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | swelham |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| 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 | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| 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