René's URL Explorer Experiment


Title: feat(core): Add logger to core and allow scope to be passed log methods by AbhiPrasad · Pull Request #17698 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(core): Add logger to core and allow scope to be passed log methods by AbhiPrasad · Pull Request #17698 · getsentry/sentry-javascript

X Title: feat(core): Add logger to core and allow scope to be passed log methods by AbhiPrasad · Pull Request #17698 · getsentry/sentry-javascript

Description: Supercedes #16874 This PR makes two changes It adds logger as an export to @sentry/core, and then refactors the browser, cloudflare and vercel-edge packages to just re-export @sentry/core's logger. This change makes it easy to use logging in an isomorphic way, and reduces duplication between our various packages. We couldn't change the export from node-core because it has a different type signature than the standard logger. It expands the logger exports to accept an optional scope argument. This allows for users to provide their own custom clients to the methods, which helps with standalone client cases. import * as Sentry from "@sentry/browser"; const client = createMySentryClient(); const scope = new Sentry.Scope(); scope.setClient(client); Sentry.logger.info("Hello World!", {}, { scope });

Open Graph Description: Supercedes #16874 This PR makes two changes It adds logger as an export to @sentry/core, and then refactors the browser, cloudflare and vercel-edge packages to just re-export @sentry/core's lo...

X Description: Supercedes #16874 This PR makes two changes It adds logger as an export to @sentry/core, and then refactors the browser, cloudflare and vercel-edge packages to just re-export @sentry/core'...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/17698

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c7f23a0f-e426-d5cb-e03f-c70cc0deee7a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAA88:3C6CAF:16D676B:1F71C94:6B058009
html-safe-nonce0b4fb296b2e8d51fc782bcc45442f1a364acb489e96e4f5f92be31ae43e54d6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTg4OjNDNkNBRjoxNkQ2NzZCOjFGNzFDOTQ6NkIwNTgwMDkiLCJ2aXNpdG9yX2lkIjoiNjgzNzQxMTg0NzY2MzM1Mzg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1c63b4e9d22a9ea18d7b78db131f69ddf828eeb8eee1560907ef66d1796cc228
hovercard-subject-tagpull_request:2840667663
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/pull/17698/files
twitter:imagehttps://avatars.githubusercontent.com/u/18689448?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/18689448?s=400&v=4
og:image:altSupercedes #16874 This PR makes two changes It adds logger as an export to @sentry/core, and then refactors the browser, cloudflare and vercel-edge packages to just re-export @sentry/core's lo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef089e689ad324655ac44bf6cdbc04d976105b374
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/17698/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17698%2Ffiles
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%2Fpull%2F17698%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17698/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17698/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17698/files
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues334 (334)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
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
AbhiPrasadhttps://github.com/AbhiPrasad
develophttps://github.com/getsentry/sentry-javascript/tree/develop
abhi-logs-in-corehttps://github.com/getsentry/sentry-javascript/tree/abhi-logs-in-core
Conversation 6 https://github.com/getsentry/sentry-javascript/pull/17698
Commits 1 https://github.com/getsentry/sentry-javascript/pull/17698/commits
Checks 0 https://github.com/getsentry/sentry-javascript/pull/17698/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/17698/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
feat(core): Add logger to core and allow scope to be passed log methods https://github.com/getsentry/sentry-javascript/pull/17698/files#top
Show all changes 1 commit https://github.com/getsentry/sentry-javascript/pull/17698/files
e8359c4 feat(core): Add logger to core and allow scope to be passed log methods AbhiPrasad Sep 18, 2025 https://github.com/getsentry/sentry-javascript/pull/17698/commits/e8359c448ef11554e858535e58f825d3747ffc5d
Clear filters https://github.com/getsentry/sentry-javascript/pull/17698/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
index.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-a9cd8d1cb9d3a4e4f87e0e1d7f7e93eef56d6656d644e7f349bc8e6d776a1f99
client.test.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
log.test.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-aa809e118e60593beafbb63d3cd2d6d795b0e2e2a6097271f08094911f4cd8cd
index.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-1d2a2b56ad20e7e5b13936929d10bebf30d56ffa7cdc64f686dff4ae6cfafb60
exports.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-02125f836f4d0ca8db2ec371b1b997946c659c864fa84f8822df8b0cc16f4425
index.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-9a4ceebe7c6f86856371906c3f061d3b56b7457022b05179884a113e7ced67e8
consola.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-8376a715979df2ec0b50b286d45b8e5b1123075974b3dcb097f17b9ae9d65aa0
console-integration.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-7dda591c52aa8a0c0104967f4225ac48e04e17547ecf652442b9b8a0d99b03fe
internal.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-00c4d70e0e6faf85ac6924f61430b0b8e3fea23e7a6b3e898c1770b8603c1bf0
public-api.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4f407741e02f7dbb03fea6bf6103eb10b45652d3aeca4953048477a6a601a7d6
server-runtime-client.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-32e2bc943417e13397a659945f050f7b239bbea2d4129511a448cdc16815bb80
consola.test.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-7dd5df7829dc3935c2fcb42fb689ced12825f3c36a2be3c2ad1c33f158f49024
internal.test.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-394c01cc818f2396ad9399ed61dd829d9336fc6b88ac22870011ad5ad114e571
server-runtime-client.test.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-35883bd6fac38648b710458db75ca130617f6c254f4bc5e44e137478c8ae8816
capture.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-60750b093e7e8fd45720bb86a251a7f6fc92a948afd9f2b32618fcdc9c95337e
exports.test.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-b8ab1796cb90b809dc7307336ee6a95f32a85c4153144a67af2dc03a1223f514
index.ts https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-455cee48a510fe07b706aa613ad64c1bed041259e57ec537a6ed434104b24687
packages/browser/src/index.tshttps://github.com/getsentry/sentry-javascript/pull/17698/files#diff-a9cd8d1cb9d3a4e4f87e0e1d7f7e93eef56d6656d644e7f349bc8e6d776a1f99
View file https://github.com/getsentry/sentry-javascript/blob/e8359c448ef11554e858535e58f825d3747ffc5d/packages/browser/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/17698/{{ revealButtonHref }}
Lms24https://github.com/Lms24
Sep 19, 2025https://github.com/getsentry/sentry-javascript/pull/17698/files#r2362113329
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
AbhiPrasadhttps://github.com/AbhiPrasad
Sep 19, 2025https://github.com/getsentry/sentry-javascript/pull/17698/files#r2362945909
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://private-user-images.githubusercontent.com/18689448/491620928-06726fb8-542c-4210-befc-d22018d80e6e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1MjI4NjksIm5iZiI6MTc5NTUyMjU2OSwicGF0aCI6Ii8xODY4OTQ0OC80OTE2MjA5MjgtMDY3MjZmYjgtNTQyYy00MjEwLWJlZmMtZDIyMDE4ZDgwZTZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI0VDEyMTYwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM0MDM5MDRhMzZkZjkwN2UxNzY4OTU2YmFkZjI5N2MyNjJlZTJkYzBhYzcxZGFjMTVlMWFjYzM5MjQwOWZmYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.EsvgBgNHvhn1KD_c1BQBsQOQWjaT7ZxIPVrdiP0W5_E
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-a9cd8d1cb9d3a4e4f87e0e1d7f7e93eef56d6656d644e7f349bc8e6d776a1f99
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-a9cd8d1cb9d3a4e4f87e0e1d7f7e93eef56d6656d644e7f349bc8e6d776a1f99
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-a9cd8d1cb9d3a4e4f87e0e1d7f7e93eef56d6656d644e7f349bc8e6d776a1f99
packages/browser/test/client.test.tshttps://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
View file https://github.com/getsentry/sentry-javascript/blob/e8359c448ef11554e858535e58f825d3747ffc5d/packages/browser/test/client.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/17698/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-4504d6cf3deee28796e4c40badd66cfd41ebb55f8e6cea940558928bcba9a2c4
packages/browser/test/log.test.tshttps://github.com/getsentry/sentry-javascript/pull/17698/files#diff-aa809e118e60593beafbb63d3cd2d6d795b0e2e2a6097271f08094911f4cd8cd
View file https://github.com/getsentry/sentry-javascript/blob/d03964021465388626560980032c56d6d475c897/packages/browser/test/log.test.ts
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
packages/cloudflare/src/index.tshttps://github.com/getsentry/sentry-javascript/pull/17698/files#diff-1d2a2b56ad20e7e5b13936929d10bebf30d56ffa7cdc64f686dff4ae6cfafb60
View file https://github.com/getsentry/sentry-javascript/blob/e8359c448ef11554e858535e58f825d3747ffc5d/packages/cloudflare/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/17698/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-1d2a2b56ad20e7e5b13936929d10bebf30d56ffa7cdc64f686dff4ae6cfafb60
https://github.com/getsentry/sentry-javascript/pull/17698/files#diff-1d2a2b56ad20e7e5b13936929d10bebf30d56ffa7cdc64f686dff4ae6cfafb60
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17698/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.