Title: deno: `init()` never registers the channel-injection hooks, though Deno supports them · Issue #23892 · getsentry/sentry-javascript · GitHub
Open Graph Title: deno: `init()` never registers the channel-injection hooks, though Deno supports them · Issue #23892 · getsentry/sentry-javascript
X Title: deno: `init()` never registers the channel-injection hooks, though Deno supports them · Issue #23892 · getsentry/sentry-javascript
Description: Deno 2.9.2 has a working Module.registerHooks, and hasStableSyncModuleHooks already returns true for Deno unconditionally (register.ts:20). Calling the register function directly works: $ deno run -A reg.mjs marker after register: {"runt...
Open Graph Description: Deno 2.9.2 has a working Module.registerHooks, and hasStableSyncModuleHooks already returns true for Deno unconditionally (register.ts:20). Calling the register function directly works: $ deno run ...
X Description: Deno 2.9.2 has a working Module.registerHooks, and hasStableSyncModuleHooks already returns true for Deno unconditionally (register.ts:20). Calling the register function directly works: $ deno run ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23892
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"deno: `init()` never registers the channel-injection hooks, though Deno supports them","articleBody":"Deno 2.9.2 has a working `Module.registerHooks`, and `hasStableSyncModuleHooks` already returns `true` for Deno unconditionally (`register.ts:20`). Calling the register function directly works:\n\n```\n$ deno run -A reg.mjs\nmarker after register: {\"runtime\":[]} # hooks registered\n```\n\nBut `@sentry/deno`'s `init()` never calls it:\n\n```\n$ deno run -A nospans.mjs\norchestrion marker: undefined\n```\n\nNode's `init()` calls `registerDiagnosticsChannelInjection()` and then `detectOrchestrionSetup()`. Deno instead expects the user to remember `deno run --import=@sentry/deno/import app.ts`, and gives no warning at all if they forget. All 22 channel integrations still install and report `Integration installed`.\n\n**Work item.** Call `registerDiagnosticsChannelInjection()` from `@sentry/deno`'s `init()` behind the same `enableRuntimeChannelInjection` option Node uses, and call `detectOrchestrionSetup()` after client creation. Keep `@sentry/deno/import` working for the case where modules are imported before `init()`.\n\n**Prior art ***(related history only)*. getsentry/sentry-javascript#21451 (merged) added the `@sentry/deno/import` runtime hook, and getsentry/sentry-javascript#22790 (merged) raised the floor to Deno >= 2.8.3, which is what makes the `Module.registerHooks` path safe to call unconditionally. No issue covers calling it from `init()`.","author":{"url":"https://github.com/isaacs","@type":"Person","name":"isaacs"},"datePublished":"2026-09-02T04:57:13Z","url":"https://github.com/getsentry/sentry-javascript/issues/23892"}
| 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:3651a7e9-8fd2-6563-4b53-30871aa464cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8890:37A05A:1E9726:295AFE:6B0438D0 |
| html-safe-nonce | b04beb6f663f158de283e4afd3f1b615acbd31056dcd14471d982e166125eeef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODkwOjM3QTA1QToxRTk3MjY6Mjk1QUZFOjZCMDQzOEQwIiwidmlzaXRvcl9pZCI6IjU2MTY3NDM4ODI1NzEzOTczMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a224b60a21b91ee019e90a0b546937643ea83eb8dd67eadf6f12b72b07bce52d |
| hovercard-subject-tag | issue:5319906742 |
| 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/23892/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c466e144a82753e8ebb2859073b7127740ad59637c508f89b02f02563dc4999/getsentry/sentry-javascript/issues/23892 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c466e144a82753e8ebb2859073b7127740ad59637c508f89b02f02563dc4999/getsentry/sentry-javascript/issues/23892 |
| og:image:alt | Deno 2.9.2 has a working Module.registerHooks, and hasStableSyncModuleHooks already returns true for Deno unconditionally (register.ts:20). Calling the register function directly works: $ deno run ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isaacs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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