René's URL Explorer Experiment


Title: Ensure SDK-captured error events have a proper `mechanism` · Issue #17212 · getsentry/sentry-javascript · GitHub

Open Graph Title: Ensure SDK-captured error events have a proper `mechanism` · Issue #17212 · getsentry/sentry-javascript

X Title: Ensure SDK-captured error events have a proper `mechanism` · Issue #17212 · getsentry/sentry-javascript

Description: Description When Sentry SDKs capture errors (e.g. via captureException), they include a mechanism field on the captured exception(s). Among other metadata, the mechanism most importantly contains the following properties: handled: boolea...

Open Graph Description: Description When Sentry SDKs capture errors (e.g. via captureException), they include a mechanism field on the captured exception(s). Among other metadata, the mechanism most importantly contains t...

X Description: Description When Sentry SDKs capture errors (e.g. via captureException), they include a mechanism field on the captured exception(s). Among other metadata, the mechanism most importantly contains t...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17212

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ensure SDK-captured error events have a proper `mechanism`","articleBody":"### Description\n\nWhen Sentry SDKs capture errors (e.g. via `captureException`), they include a [`mechanism` field](https://develop.sentry.dev/sdk/data-model/event-payloads/exception/#exception-mechanism) on the captured exception(s). Among other metadata, the mechanism most importantly contains the following properties:\n\n- `handled: boolean`: a boolean indicating if the captured exception was handled by users or not. (this is a hard/impossible decision sometimes, so we rather tend to `false` in cases where we don't know. The limitations around this are another topic and out of scope for this issue)\n- `type: string`: an identifier which mechanism (or part of the SDK) captured the error.\n\nBy default, e.g. if users call `captureException`, the mechanism defaults to:\n\n```js\n{\n  handled: true,\n  type: 'generic'\n}\n``` \n\nHowever, ideally, our SDK instrumentation sets a custom mechanism for automatically captured errors, depending on which instrumentation or part of the SDK captured the error. For example:\n\n```js\ncaptureException(error, {\n  mechanism: {\n    handled: false,\n    type: 'solidstart',\n  },\n});\n```\n\nUnfortunately, we don't do this consistently across all SDKs, integrations or generally places where we call `captureException`. We should change this and align on always setting `handled` and `type`.\n\n`type` naming pattern:\n\n- should align with `sentry.origin` (aka [Trace Origin](https://develop.sentry.dev/sdk/telemetry/traces/trace-origin/)) as much as possible (e.g. whenever we capture within a specific span).\n- if N/A directly, make sure naming pattern follows trace origin definition\n\nFor now, some general todos:\n- align on a pattern what to set as `type`\n- add `type` and `handled` to every captureException call where they're currently missing\n- update develop docs with better wording/examples and that SDKs should always set these properties\n","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2025-07-29T13:46:42Z","url":"https://github.com/getsentry/sentry-javascript/issues/17212"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e28130ab-c975-7bd2-e8f0-3202ccc4e872
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA20:3714B8:9FC845:DBDD3B:6B0452BE
html-safe-noncef403f2a36a0c5ec9a7a3e2f001615bda87104815334ce6b7a97a05453169cd89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTIwOjM3MTRCODo5RkM4NDU6REJERDNCOjZCMDQ1MkJFIiwidmlzaXRvcl9pZCI6IjU0ODExODU4ODQyNTY4ODMzOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6abd982b5f2a8b67ff33cc0e935a12f6fa3cc17bd7b8431d931017b3fb329159
hovercard-subject-tagissue:3273721661
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/17212/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c231354a6825d14261090e6b51642b7e7e1c6dbdb5848d1fcfbf00ce5049c79b/getsentry/sentry-javascript/issues/17212
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c231354a6825d14261090e6b51642b7e7e1c6dbdb5848d1fcfbf00ce5049c79b/getsentry/sentry-javascript/issues/17212
og:image:altDescription When Sentry SDKs capture errors (e.g. via captureException), they include a mechanism field on the captured exception(s). Among other metadata, the mechanism most importantly contains t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLms24
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/17212#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F17212
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F17212
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/17212
Reloadhttps://github.com/getsentry/sentry-javascript/issues/17212
Reloadhttps://github.com/getsentry/sentry-javascript/issues/17212
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests54 (54)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/17212
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/17212
#17287https://github.com/getsentry/sentry-javascript/pull/17287
getsentry/sentry-docs#14957https://github.com/getsentry/sentry-docs/pull/14957
Ensure SDK-captured error events have a proper mechanismhttps://github.com/getsentry/sentry-javascript/issues/17212#top
#17287https://github.com/getsentry/sentry-javascript/pull/17287
getsentry/sentry-docs#14957https://github.com/getsentry/sentry-docs/pull/14957
https://github.com/Lms24
Errorshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Errors%22
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com/Lms24
Lms24https://github.com/Lms24
on Jul 29, 2025https://github.com/getsentry/sentry-javascript/issues/17212#issue-3273721661
mechanism fieldhttps://develop.sentry.dev/sdk/data-model/event-payloads/exception/#exception-mechanism
Trace Originhttps://develop.sentry.dev/sdk/telemetry/traces/trace-origin/
Nexthttps://github.com/getsentry/sentry-javascript/issues/17212?timeline_page=1
https://github.com/apps/linear
linearhttps://github.com/apps/linear
on Jul 29, 2025https://github.com/getsentry/sentry-javascript/issues/17212#issuecomment-3132614513
Linearhttps://linear.app
JS-788 Ensure SDK-captured error events have a proper `mechanism`https://linear.app/getsentry/issue/JS-788/ensure-sdk-captured-error-events-have-a-proper-mechanism
Lms24https://github.com/Lms24
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Errorshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Errors%22
on Jul 29, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-18879593380
Lms24https://github.com/Lms24
on Jul 31, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-18915842093
Lms24https://github.com/Lms24
on Jul 31, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-18915930120
Adjust mechanism in aws-serverless SDK #17247https://github.com/getsentry/sentry-javascript/issues/17247
Adjust mechanism in browser SDK #17250https://github.com/getsentry/sentry-javascript/issues/17250
Adjust mechanism in core SDK #17252https://github.com/getsentry/sentry-javascript/issues/17252
Adjust mechanism in google-cloud-serverless SDK #17257https://github.com/getsentry/sentry-javascript/issues/17257
Adjust mechanism in nextjs SDK #17258https://github.com/getsentry/sentry-javascript/issues/17258
Adjust mechanism in nestjs SDK #17259https://github.com/getsentry/sentry-javascript/issues/17259
Adjust mechanism in node-core SDK #17260https://github.com/getsentry/sentry-javascript/issues/17260
Adjust mechanism in node SDK #17261https://github.com/getsentry/sentry-javascript/issues/17261
Adjust mechanism in nuxt SDK #17262https://github.com/getsentry/sentry-javascript/issues/17262
Adjust mechanism in react SDK #17263https://github.com/getsentry/sentry-javascript/issues/17263
Adjust mechanism in solid SDK #17264https://github.com/getsentry/sentry-javascript/issues/17264
Lms24https://github.com/Lms24
on Sep 12, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-19656555726
Adjust mechanism in Bun SDK #17615https://github.com/getsentry/sentry-javascript/issues/17615
Adjust mechanism in Cloudflare SDK #17617https://github.com/getsentry/sentry-javascript/issues/17617
Lms24https://github.com/Lms24
on Sep 12, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-19660462428
ref(core): Adjust MCP server error event `mechanism` (#17622)https://github.com/getsentry/sentry-javascript/commit/d5f0ac37f4e61d52de3437a0213dd81ab7f565de
#17622https://github.com/getsentry/sentry-javascript/pull/17622
d5f0ac3https://github.com/getsentry/sentry-javascript/commit/d5f0ac37f4e61d52de3437a0213dd81ab7f565de
ref(remix): Adjust event mechanism of `captureRemixServerException` (#…https://github.com/getsentry/sentry-javascript/commit/e1c43674ed9203adfe224ffc1ccb975ebc5fba2c
#…https://github.com/getsentry/sentry-javascript/pull/17629
e1c4367https://github.com/getsentry/sentry-javascript/commit/e1c43674ed9203adfe224ffc1ccb975ebc5fba2c
chore: Add changelog note about mechanism changes (#17632)https://github.com/getsentry/sentry-javascript/commit/4b562bcbf0a81494627ab2c5a153ddbddb2d89ae
#17632https://github.com/getsentry/sentry-javascript/pull/17632
4b562bchttps://github.com/getsentry/sentry-javascript/commit/4b562bcbf0a81494627ab2c5a153ddbddb2d89ae
ref(node): Adjust mechanism of `express`, `hapi` and `fastify` error …https://github.com/getsentry/sentry-javascript/commit/31dc645e4d7fdb72a2857b4d9090741ec59d1228
31dc645https://github.com/getsentry/sentry-javascript/commit/31dc645e4d7fdb72a2857b4d9090741ec59d1228
Lms24https://github.com/Lms24
on Sep 15, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-19698127831
Adjust mechanism in solidstart SDK #17638https://github.com/getsentry/sentry-javascript/issues/17638
Adjust mechanism in sveltekit SDK #17639https://github.com/getsentry/sentry-javascript/issues/17639
Adjust mechanism in vue SDK #17640https://github.com/getsentry/sentry-javascript/issues/17640
Lms24https://github.com/Lms24
on Sep 15, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-19699298227
ref(core): Adjust `mechanism` in `captureConsoleIntegration` (#17633)https://github.com/getsentry/sentry-javascript/commit/566929be79f229bf83d85f53e5293535bc0460c2
#17633https://github.com/getsentry/sentry-javascript/pull/17633
566929bhttps://github.com/getsentry/sentry-javascript/commit/566929be79f229bf83d85f53e5293535bc0460c2
ref(deno): Adjust `mechanism` of errors caught by `globalHandlersInte…https://github.com/getsentry/sentry-javascript/commit/7200e639ed4ee0e8429d1b4804e70d72515049ed
7200e63https://github.com/getsentry/sentry-javascript/commit/7200e639ed4ee0e8429d1b4804e70d72515049ed
ref(node-core): Adjust `mechanism` of `onUnhandledRejection` and `onU…https://github.com/getsentry/sentry-javascript/commit/f2e621a612aad6850870ba460edc34cf65649738
f2e621ahttps://github.com/getsentry/sentry-javascript/commit/f2e621a612aad6850870ba460edc34cf65649738
Lms24https://github.com/Lms24
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
sentry-docs#14957https://github.com/getsentry/sentry-docs/pull/14957
on Sep 19, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-19796011220
pullhttps://github.com/apps/pull
on Sep 19, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-19796309247
ref(develop/sdks): Clarify Exception Mechanism interface (getsentry#1…https://github.com/Alloneway30/sentry-docs/commit/4a60a6d44c38bbc6b5db291f638e4152b8845c22
getsentry#1…https://github.com/getsentry/sentry-docs/pull/14957
4a60a6dhttps://github.com/Alloneway30/sentry-docs/commit/4a60a6d44c38bbc6b5db291f638e4152b8845c22
mergifyhttps://github.com/apps/mergify
on Oct 13, 2025https://github.com/getsentry/sentry-javascript/issues/17212#event-20245630374
[Snyk] Upgrade @sentry/node from 9.43.0 to 10.12.0 (#565)https://github.com/reisene/HulajDusza-serwis/commit/de38b0de75cd49bf93ca6692f1ad6f095056ab05
#565https://github.com/reisene/HulajDusza-serwis/pull/565
de38b0dhttps://github.com/reisene/HulajDusza-serwis/commit/de38b0de75cd49bf93ca6692f1ad6f095056ab05
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/17212
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/17212
Lms24https://github.com/Lms24
Errorshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Errors%22
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.