René's URL Explorer Experiment


Title: Add support for Effect.ts via its own SDK · Issue #19641 · getsentry/sentry-javascript · GitHub

Open Graph Title: Add support for Effect.ts via its own SDK · Issue #19641 · getsentry/sentry-javascript

X Title: Add support for Effect.ts via its own SDK · Issue #19641 · getsentry/sentry-javascript

Description: Description Add a dedicated @sentry/effect SDK that provides first-class Sentry integration for Effect applications, covering tracing, logging, and metrics (also error capture in a future releases) Why a standalone SDK instead of an inte...

Open Graph Description: Description Add a dedicated @sentry/effect SDK that provides first-class Sentry integration for Effect applications, covering tracing, logging, and metrics (also error capture in a future releases)...

X Description: Description Add a dedicated @sentry/effect SDK that provides first-class Sentry integration for Effect applications, covering tracing, logging, and metrics (also error capture in a future releases)...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for Effect.ts via its own SDK","articleBody":"### Description\n\nAdd a dedicated `@sentry/effect` SDK that provides first-class Sentry integration for [Effect](https://effect.website/)\napplications, covering tracing, logging, and metrics (also error capture in a future releases)\n\n## Why a standalone SDK instead of an integration?\n\nThe original idea (#17126) was to add an `effectIntegration` to the Node SDK, potentially leveraging `@effect/opentelemetry`. After\ninvestigation, we determined this approach doesn't work well:\n\n1. **`@effect/opentelemetry` sets up its own OpenTelemetry (OTel) tracer**. this conflicts with Sentry's existing OTel setup and would result in\nduplicate or conflicting instrumentation.\n2. **Effect already has built-in tracing, metrics, and logging**. Effect's type-safe [Tracer](https://effect.website/docs/observability/tracing/), [Logger](https://effect.website/docs/observability/logging/),\nand [Metric](https://effect.website/docs/observability/metrics/) modules need dedicated bridging, not a generic OTel passthrough.\n3. **Effect uses Layers for composition** - the idiomatic way to integrate with Effect is by providing Sentry-backed Layer\nimplementations, not through a traditional SDK integration pattern.\n4. **Dual platform support needed** - Effect runs both server-side and in the browser. On the server, users may still want Sentry's\nOTel-based instrumentation for third-party libraries (e.g., `pg`), while in the browser there's no OTel. A standalone package can\ncleanly handle both via conditional exports.\n\nA standalone `@sentry/effect` package lets users simply add a Sentry layer to their Effect programs - the idiomatic Effect way.\n\n## Design decisions\n\n### `Sentry.init()` vs `Sentry.effectLayer()`\n\nWe pass Sentry config directly to `effectLayer()` so it manages the full lifecycle (init, flush, shutdown) via Effect finalizers. This\nis the idiomatic Effect pattern - the Layer owns the resource lifecycle.\n\n```typescript\nimport * as Sentry from '@sentry/effect';\n\nHttpLive.pipe(\n  Layer.provide(\n    Sentry.effectLayer({\n      dsn: '...',\n      tracesSampleRate: 1.0,\n      enableLogs: true,\n      enableMetrics: true,\n    })\n  ),\n  Layer.launch,\n  NodeRuntime.runMain,\n);\n```\n\n### Coexistence with Sentry/OTel integrations\n\nFor the very beginning we focus on a Effect only experience. For the future we can think of how it would look like when users want to use more integrations. A very early prototype of the Effect SDK already showed that we might have \"duplicated\" spans, which we need to think of to prevent (or document). They are not really duplicated, but there might be the case where two spans exist, which hold almost the same information, where one would be sufficient.\n\nE.g.: We do have a Postgres integration that instruments the `pg` library. If a user wants to use both the Effect SDK and the Postgres integration, they might end up with duplicated spans, as Effect is also adding spans (just [slightly different ones](https://github.com/Effect-TS/effect/blob/cf749405214282edc916a783b3417c766d2bbfe3/packages/sql/src/internal/statement.ts#L117-L130)). We need to think of a way to prevent or document to prevent this.\n\nThe following image shows a trace that uses our Postgres integration and the Effect sql spans. Both `SELECT * FROM ...` and `sql.execute` spans hold the same information which is meant with \"duplication\".\n\n\u003cimg width=\"1444\" height=\"264\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2b9a673b-957b-4cb6-9da8-13fca7447b15\" />\n\n### Logging and Metrics\n\nWhen `enableLogs: true` is set in the `effectLayer()` options, Effect log calls (`Effect.log`, `Effect.logWarning`, `Effect.logError`,\netc.) are automatically forwarded to Sentry's structured logging with appropriate level mapping.\n\nWhen `enableMetrics: true` is set, Effect metrics (Counter, Gauge, Histogram, Summary, Frequency) are periodically flushed to Sentry.\n\nBoth are opt-in to keep the default setup lightweight.\n\n### Effect v4 ErrorReporter\n\nEffect v4 introduces an `ErrorReporter` primitive that allows hooking into Effect's error reporting pipeline. A Sentry `ErrorReporter`\nimplementation is **not included in the first draft** and will be added as a follow-up. Reference: https://github.com/Effect-TS/effect-smol/pull/1409\n\n## Proposal\n\n### `Sentry.effectLayer(options)`\n\nA single factory function that creates a composed Effect Layer providing all Sentry functionality. Accepts all standard Sentry SDK\noptions plus `enableLogs` and `enableMetrics`.\n\n### Three bridging layers\n\n> Another when we add `ErrorReporter`\n\n1. **`SentryEffectTracerLayer`** (always active) - Maps Effect spans to Sentry spans with parent-child relationships, status tracking,\nattribute propagation, and automatic `op`/`origin` detection.\n2. **`SentryEffectLogger`** (opt-in via `enableLogs`) - Forwards Effect log calls to Sentry's structured logging with level mapping.\n3. **`SentryEffectMetricsLayer`** (opt-in via `enableMetrics`) - Periodically flushes Effect metrics to Sentry.\n\n### Dual-platform support\n\nAs with Astro, Effect can run in the frontend and in the backend (Node, Deno, Bun. Therefore it would be beneficial is both platforms are supported.","author":{"url":"https://github.com/JPeer264","@type":"Person","name":"JPeer264"},"datePublished":"2026-03-05T09:33:04Z","url":"https://github.com/getsentry/sentry-javascript/issues/19641"}

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:b036986c-21f5-18c7-dd04-49a2c7a820e6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD522:18C3B1:56079E:786F20:6B0481BF
html-safe-nonce17b9bb9405c39545181aba96f632e283b28a0b40545c7e674f5ec72581446e25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTIyOjE4QzNCMTo1NjA3OUU6Nzg2RjIwOjZCMDQ4MUJGIiwidmlzaXRvcl9pZCI6IjMyNzAzMzAxNjk4OTgwNzQ1NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac23b89f52164f264c7e8b934aa264537856c0ad7c7ce63a4de4a05edc874a62bb
hovercard-subject-tagissue:4027030247
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/19641/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5c990a58b5321e4e06e7ce79e3baf28080f536072213f4488f037f24ff326a49/getsentry/sentry-javascript/issues/19641
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5c990a58b5321e4e06e7ce79e3baf28080f536072213f4488f037f24ff326a49/getsentry/sentry-javascript/issues/19641
og:image:altDescription Add a dedicated @sentry/effect SDK that provides first-class Sentry integration for Effect applications, covering tracing, logging, and metrics (also error capture in a future releases)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJPeer264
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
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
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/19641#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F19641
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%2F19641
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/19641
Reloadhttps://github.com/getsentry/sentry-javascript/issues/19641
Reloadhttps://github.com/getsentry/sentry-javascript/issues/19641
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests53 (53)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/19641
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/19641
#19644https://github.com/getsentry/sentry-javascript/pull/19644
Add support for Effect.ts via its own SDKhttps://github.com/getsentry/sentry-javascript/issues/19641#top
#19644https://github.com/getsentry/sentry-javascript/pull/19644
https://github.com/JPeer264
Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%22
https://github.com/JPeer264
JPeer264https://github.com/JPeer264
on Mar 5, 2026https://github.com/getsentry/sentry-javascript/issues/19641#issue-4027030247
Effecthttps://effect.website/
#17126https://github.com/getsentry/sentry-javascript/issues/17126
Tracerhttps://effect.website/docs/observability/tracing/
Loggerhttps://effect.website/docs/observability/logging/
Metrichttps://effect.website/docs/observability/metrics/
slightly different oneshttps://github.com/Effect-TS/effect/blob/cf749405214282edc916a783b3417c766d2bbfe3/packages/sql/src/internal/statement.ts#L117-L130
https://private-user-images.githubusercontent.com/10677263/559240801-2b9a673b-957b-4cb6-9da8-13fca7447b15.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0NTc3NzIsIm5iZiI6MTc5NTQ1NzQ3MiwicGF0aCI6Ii8xMDY3NzI2My81NTkyNDA4MDEtMmI5YTY3M2ItOTU3Yi00Y2I2LTlkYTgtMTNmY2E3NDQ3YjE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIzVDE4MTExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1Yjc3MjBlNzVmNGNlZmQ5MmQzYWM0M2M3YTg4ZWIxYjNkMTdlNDZlM2E3YWVmNGJjNjMwZDdjYTRiZDlmNTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.WRPoma5Hqiao_Rv2P_FBDsewlFgeSnpW3wz_o-aVE_w
Effect-TS/effect-smol#1409https://github.com/Effect-TS/effect-smol/pull/1409
JPeer264https://github.com/JPeer264
on Mar 5, 2026https://github.com/getsentry/sentry-javascript/issues/19641#event-23290518591
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Mar 5, 2026https://github.com/getsentry/sentry-javascript/issues/19641#issuecomment-4003681232
Linear Codehttps://linear.app
JS-1864https://linear.app/getsentry/issue/JS-1864/add-support-for-effectts-via-its-own-sdk
JPeer264https://github.com/JPeer264
Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%22
on Mar 5, 2026https://github.com/getsentry/sentry-javascript/issues/19641#event-23290565197
JPeer264https://github.com/JPeer264
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#19644https://github.com/getsentry/sentry-javascript/pull/19644
on Mar 17, 2026https://github.com/getsentry/sentry-javascript/issues/19641#event-23645257550
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 17, 2026https://github.com/getsentry/sentry-javascript/issues/19641#issuecomment-4076404150
GitHub Actionshttps://help.github.com/en/actions
#19644https://github.com/getsentry/sentry-javascript/pull/19644
10.44.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/10.44.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/19641
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/19641
JPeer264https://github.com/JPeer264
Featurehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%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.