René's URL Explorer Experiment


Title: Improve user facing integrations configuration · Issue #4789 · getsentry/sentry-javascript · GitHub

Open Graph Title: Improve user facing integrations configuration · Issue #4789 · getsentry/sentry-javascript

X Title: Improve user facing integrations configuration · Issue #4789 · getsentry/sentry-javascript

Description: Problem Statement I've briefly chatted to @AbhiPrasad about this but we wanted to open the discussion up and get some feedback and ideas from others... The current integration options are as follows: /** * If this is set to false, defaul...

Open Graph Description: Problem Statement I've briefly chatted to @AbhiPrasad about this but we wanted to open the discussion up and get some feedback and ideas from others... The current integration options are as follow...

X Description: Problem Statement I've briefly chatted to @AbhiPrasad about this but we wanted to open the discussion up and get some feedback and ideas from others... The current integration options are as fo...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve user facing integrations configuration","articleBody":"### Problem Statement\n\nI've briefly chatted to @AbhiPrasad about this but we wanted to open the discussion up and get some feedback and ideas from others...\r\n\r\nThe current integration options are as follows:\r\n\r\n```ts\r\n  /**\r\n   * If this is set to false, default integrations will not be added, otherwise this will internally be set to the\r\n   * recommended default integrations.\r\n   * TODO: We should consider changing this to `boolean | Integration[]`\r\n   */\r\n  defaultIntegrations?: false | Integration[];\r\n\r\n  /**\r\n   * List of integrations that should be installed after SDK was initialized.\r\n   * Accepts either a list of integrations or a function that receives\r\n   * default integrations and returns a new, updated list.\r\n   */\r\n  integrations?: Integration[] | ((integrations: Integration[]) => Integration[]);\r\n```\r\n\r\nThere are a few issues I see with this:\r\n- `defaultIntegrations: false` is not tree shakeable. \r\n- It looks like `defaultIntegrations` allowing an array is an internal implementation detail that has leaked into the public api\r\n  - it's not clear why users would ever supply an array here \r\n- It appears that the `integrations` function option solely exists to allow users to remove default integrations easily\r\n  - Is there a better/cleaner way to offer this functionality?\r\n\r\nUltimately, we're stuck between a rock and hard place trying to provide a fully featured standard configuration, simple customisability and the ability to fully customise for those who want to reduce bundle size to the bare minimum. \r\n\n\n### Solution Brainstorm\n\nWe could remove `defaultIntegrations` and supply a way to init the SDKs without any defaults and preferably one that allows tree shaking.\r\n\r\nThe obvious way to do this would be to have two different `init` functions, one which includes the defaults and one which doesn't. For now I'm going to call these `init` and `initRaw` but I'm open to better suggestions!\r\n\r\nIt's also worth noting that `initRaw` could also include no default Transport to allow for greatest \"tree shakeability\".\r\n\r\n```ts\r\nimport { init, initRaw, defaultIntegrations } from '@sentry/xxx';\r\n\r\n// init the sdk with defaults\r\ninit({\r\n   dsn: '__DSN__',\r\n});\r\n\r\n// this does the same as above!\r\ninitRaw({\r\n   dsn: '__DSN__',\r\n   integrations: defaultIntegrations,\r\n})\r\n```\r\nAdding a custom integration:\r\n```ts\r\nimport { init, initRaw, defaultIntegrations } from '@sentry/xxx';\r\nimport { MyWonderfulIntegration } from './integrations';\r\n\r\ninit({\r\n   dsn: '__DSN__',\r\n   integrations: [new MyWonderfulIntegration()]\r\n});\r\n\r\ninitRaw({\r\n   dsn: '__DSN__',\r\n   integrations: [...defaultIntegrations, new MyWonderfulIntegration()],\r\n})\r\n```\r\nRemoving an integration:\r\n```ts\r\nimport { init, initRaw, defaultIntegrations } from '@sentry/xxx';\r\n\r\ninit({\r\n   dsn: '__DSN__',\r\n   // this wont tree shake 🤷‍♂️\r\n   integrations: (itgs) => itgs.filter(i => i.name !== \"Breadcrumbs\")\r\n});\r\n\r\ninitRaw({\r\n   dsn: '__DSN__',\r\n   // this wont tree shake either 🤷‍♂️\r\n   integrations: defaultIntegrations.filter(i => i.name !== \"Breadcrumbs\"),\r\n})\r\n\r\ninitRaw({\r\n   dsn: '__DSN__',\r\n   integrations: [ /* manually include all the integrations you need for greatest tree shakability! */ ]\r\n})\r\n```\r\n\r\nThe `integrations` function option + filtering by name string to remove an integration feels a bit nasty but currently it appears to be the simplest solution to exclude an integration 🤔","author":{"url":"https://github.com/timfish","@type":"Person","name":"timfish"},"datePublished":"2022-03-25T16:31:54Z","url":"https://github.com/getsentry/sentry-javascript/issues/4789"}

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:541a13c9-eec1-0aa4-f5a7-e22d63cf1150
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB382:3C80E1:5A0FB0:7C0DD5:6B04A29B
html-safe-nonce568c83e3dfa5bf4dbc62d70753daeecf4ff4f274dfc2b5d82fc66cc5a43a1a5d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzgyOjNDODBFMTo1QTBGQjA6N0MwREQ1OjZCMDRBMjlCIiwidmlzaXRvcl9pZCI6IjI3NjI5NjA3NzgzNjg5NTA5MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac43224557011554e6c890cfc8bcd5b0deba59cb26d91233f792aa05e7c327770b
hovercard-subject-tagissue:1181000946
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/4789/issue_layout
twitter:imagehttps://opengraph.githubassets.com/093abf1180147be30aea86c0d41126ac5741aa75e992ce74d88e8289612d2611/getsentry/sentry-javascript/issues/4789
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/093abf1180147be30aea86c0d41126ac5741aa75e992ce74d88e8289612d2611/getsentry/sentry-javascript/issues/4789
og:image:altProblem Statement I've briefly chatted to @AbhiPrasad about this but we wanted to open the discussion up and get some feedback and ideas from others... The current integration options are as follow...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametimfish
hostnamegithub.com
expected-hostnamegithub.com
None9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d
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
release3fd14143b75b2af7b76bbd23b069867d091adfcc
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/4789#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F4789
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%2F4789
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/4789
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4789
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4789
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests52 (52)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/4789
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4789
Improve user facing integrations configurationhttps://github.com/getsentry/sentry-javascript/issues/4789#top
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
https://github.com/timfish
timfishhttps://github.com/timfish
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issue-1181000946
@AbhiPrasadhttps://github.com/AbhiPrasad
timfishhttps://github.com/timfish
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#event-6308550975
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#event-6308551231
AbhiPrasadhttps://github.com/AbhiPrasad
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#event-6308563036
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#event-6308563123
AbhiPrasadhttps://github.com/AbhiPrasad
7.0.0https://github.com/getsentry/sentry-javascript/milestone/7
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#event-6308564094
https://github.com/lforst
lforsthttps://github.com/lforst
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079205452
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079207351
@yordishttps://github.com/yordis
https://github.com/timfish
timfishhttps://github.com/timfish
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079215967
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079238453
#4790https://github.com/getsentry/sentry-javascript/issues/4790
https://github.com/yordis
yordishttps://github.com/yordis
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079396408
@AbhiPrasadhttps://github.com/AbhiPrasad
https://github.com/yordis
yordishttps://github.com/yordis
on Mar 25, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079402699
@AbhiPrasadhttps://github.com/AbhiPrasad
https://github.com/timfish
timfishhttps://github.com/timfish
on Mar 26, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079684227
at odds with the Sentry SDK guidelineshttps://develop.sentry.dev/sdk/philosophy/#configuration-comes-at-a-cost
sentry-javascript/packages/browser/src/sdk.tshttps://github.com/getsentry/sentry-javascript/blob/689265a47c4a8b372f633100b2eeacfbebe1076c/packages/browser/src/sdk.ts#L98-L100
689265ahttps://github.com/getsentry/sentry-javascript/commit/689265a47c4a8b372f633100b2eeacfbebe1076c
the SDK guidelines sayhttps://develop.sentry.dev/sdk/sessions/
almost certainly falls foul ofhttps://develop.sentry.dev/sdk/philosophy/#customer-value-matters
herehttps://github.com/getsentry/sentry-javascript/blob/master/packages/nextjs/src/index.client.ts#L31-L49
herehttps://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/sdk.ts#L78-L101
https://github.com/yordis
yordishttps://github.com/yordis
on Mar 26, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1079715204
@AbhiPrasadhttps://github.com/AbhiPrasad
https://github.com/timfish
timfishhttps://github.com/timfish
on Mar 27, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1080031508
https://github.com/yordis
yordishttps://github.com/yordis
on Mar 28, 2022https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-1080888344
AbhiPrasadhttps://github.com/AbhiPrasad
7.0.0https://github.com/getsentry/sentry-javascript/milestone/7
8.0.0https://github.com/getsentry/sentry-javascript/milestone/15
on May 30, 2022https://github.com/getsentry/sentry-javascript/issues/4789#event-6702141680
hubertdeng123https://github.com/hubertdeng123
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
on Jul 26, 2023https://github.com/getsentry/sentry-javascript/issues/4789#event-9926453969
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Mar 26, 2024https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-2021384926
AbhiPrasadhttps://github.com/AbhiPrasad
8.0.0https://github.com/getsentry/sentry-javascript/milestone/15
on Jun 4, 2024https://github.com/getsentry/sentry-javascript/issues/4789#event-13036585932
lforsthttps://github.com/lforst
9.0.0https://github.com/getsentry/sentry-javascript/milestone/30
on Nov 13, 2024https://github.com/getsentry/sentry-javascript/issues/4789#event-15283206925
https://github.com/mydea
mydeahttps://github.com/mydea
on Dec 10, 2024https://github.com/getsentry/sentry-javascript/issues/4789#issuecomment-2530985170
mydeahttps://github.com/mydea
not plannedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Dec 10, 2024https://github.com/getsentry/sentry-javascript/issues/4789#event-15597580898
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/4789#event-19124827529
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/4789
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4789
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%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.