Title: Improve how `eventIDs` are created and propogated. · Issue #4571 · getsentry/sentry-javascript · GitHub
Open Graph Title: Improve how `eventIDs` are created and propogated. · Issue #4571 · getsentry/sentry-javascript
X Title: Improve how `eventIDs` are created and propogated. · Issue #4571 · getsentry/sentry-javascript
Description: Right now there's a lot of redundancy on how eventIDs are created and used. We can maybe simplify this to reduce bundle size. hub.captureException first creates an eventID and passes it as a hint. sentry-javascript/packages/hub/src/hub.t...
Open Graph Description: Right now there's a lot of redundancy on how eventIDs are created and used. We can maybe simplify this to reduce bundle size. hub.captureException first creates an eventID and passes it as a hint. ...
X Description: Right now there's a lot of redundancy on how eventIDs are created and used. We can maybe simplify this to reduce bundle size. hub.captureException first creates an eventID and passes it as a hi...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4571
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve how `eventIDs` are created and propogated.","articleBody":"Right now there's a lot of redundancy on how eventIDs are created and used. We can maybe simplify this to reduce bundle size.\r\n\r\n`hub.captureException` first creates an eventID and passes it as a hint.\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/1bf988322a6adb931905305747f4fafb742002b1/packages/hub/src/hub.ts#L188\r\n\r\nThis then calls `client.captureException` which grabs the eventID from the hint, passes that hint down, overwrites the eventID, and then returns that\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/9e87bf9f481711f5b8730d9c6bdc9f8b2a14a31b/packages/core/src/baseclient.ts#L115-L126\r\n\r\n`eventFromException` sets the eventID on the event based on the hint\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/9e87bf9f481711f5b8730d9c6bdc9f8b2a14a31b/packages/browser/src/eventbuilder.ts#L20-L31\r\n\r\n`client._captureEvent` returns the id on the event\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/9e87bf9f481711f5b8730d9c6bdc9f8b2a14a31b/packages/core/src/baseclient.ts#L499-L509\r\n\r\n`client._processEvent` prepares the event:\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/9e87bf9f481711f5b8730d9c6bdc9f8b2a14a31b/packages/core/src/baseclient.ts#L555\r\n\r\nwhich grabs the event id from the event, the hint, or generates a new one.\r\n\r\nhttps://github.com/getsentry/sentry-javascript/blob/9e87bf9f481711f5b8730d9c6bdc9f8b2a14a31b/packages/core/src/baseclient.ts#L352","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2022-02-14T20:07:36Z","url":"https://github.com/getsentry/sentry-javascript/issues/4571"}
| 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:620c1d33-cef3-b618-883f-56a316a98e17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB7A:1C834D:882547:BF65B1:6B04281C |
| html-safe-nonce | 620d78b86a1969eaf94b42fd55ffc5a25a807e60058912a951d1deab59327071 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjdBOjFDODM0RDo4ODI1NDc6QkY2NUIxOjZCMDQyODFDIiwidmlzaXRvcl9pZCI6IjQwMTA4ODMyNzM0NjAzODgxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 97689b5de04f40fdef399b979613449c292ab1df59e315a68c407109ab6f2355 |
| hovercard-subject-tag | issue:1137781877 |
| 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/4571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/202a3e102c6b98fe4804aea1b63d977f77df521d75c193ef908b3722bfe5e0e7/getsentry/sentry-javascript/issues/4571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/202a3e102c6b98fe4804aea1b63d977f77df521d75c193ef908b3722bfe5e0e7/getsentry/sentry-javascript/issues/4571 |
| og:image:alt | Right now there's a lot of redundancy on how eventIDs are created and used. We can maybe simplify this to reduce bundle size. hub.captureException first creates an eventID and passes it as a hint. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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