René's URL Explorer Experiment


Title: fix(replay): Move error sampling to before send by billyvg · Pull Request #8057 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(replay): Move error sampling to before send by billyvg · Pull Request #8057 · getsentry/sentry-javascript

X Title: fix(replay): Move error sampling to before send by billyvg · Pull Request #8057 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: In buffer mode, we were always tagging error events even if it was not sampled. This is because the sampling decision was moved from the initialization of the SDK to much further down the pipeline ...

X Description: In buffer mode, we were always tagging error events even if it was not sampled. This is because the sampling decision was moved from the initialization of the SDK to much further down the pipeline ...

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1e0b1faa-d93b-67e7-195a-a2b3e62c61cd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9D76:2054A4:250DD64:30DF68A:6B05860B
html-safe-noncec6c763cd62be6011ca713814b2f7bda3717553d6473d8c6809579bd3e8a8d468
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDc2OjIwNTRBNDoyNTBERDY0OjMwREY2OEE6NkIwNTg2MEIiLCJ2aXNpdG9yX2lkIjoiNDQ2ODEwMjUwMTg1MzY2MDY4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf43f986d267bcbee936118136d8f4d0c3381a20e3f6362333e3912f976e595d7
hovercard-subject-tagpull_request:1340419057
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/8057/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/65997c97f4a601dc7e4b14a25e6035bcb5ac089d03b97dbad4dca71ac74d707c/getsentry/sentry-javascript/pull/8057
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/65997c97f4a601dc7e4b14a25e6035bcb5ac089d03b97dbad4dca71ac74d707c/getsentry/sentry-javascript/pull/8057
og:image:altIn buffer mode, we were always tagging error events even if it was not sampled. This is because the sampling decision was moved from the initialization of the SDK to much further down the pipeline ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebillyvg
hostnamegithub.com
expected-hostnamegithub.com
None9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c
turbo-cache-controlno-cache
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
releasef089e689ad324655ac44bf6cdbc04d976105b374
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/8057#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F8057
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%2F8057
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/8057
Reloadhttps://github.com/getsentry/sentry-javascript/pull/8057
Reloadhttps://github.com/getsentry/sentry-javascript/pull/8057
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 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
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fix-replay-sampling-happens-too-late-incorrect-tagginghttps://github.com/getsentry/sentry-javascript/tree/fix-replay-sampling-happens-too-late-incorrect-tagging
Conversationhttps://github.com/getsentry/sentry-javascript/pull/8057
Commits5 (5)https://github.com/getsentry/sentry-javascript/pull/8057/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/8057/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/8057/files
fix(replay): Move error sampling to before send https://github.com/getsentry/sentry-javascript/pull/8057#top
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fix-replay-sampling-happens-too-late-incorrect-tagginghttps://github.com/getsentry/sentry-javascript/tree/fix-replay-sampling-happens-too-late-incorrect-tagging
https://github.com/billyvg
billyvghttps://github.com/billyvg
May 5, 2023https://github.com/getsentry/sentry-javascript/pull/8057#issue-1698218081
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
#8055https://github.com/getsentry/sentry-javascript/issues/8055
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
https://github.com/billyvg
billyvghttps://github.com/billyvg
May 5, 2023https://github.com/getsentry/sentry-javascript/pull/8057#event-9180597384
https://github.com/billyvg
billyvghttps://github.com/billyvg
mydeahttps://github.com/mydea
May 5, 2023 21:34https://github.com/getsentry/sentry-javascript/pull/8057#event-9180606353
https://github.com/billyvg
billyvghttps://github.com/billyvg
May 5, 2023 21:34https://github.com/getsentry/sentry-javascript/pull/8057#event-9180606730
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 5, 2023https://github.com/getsentry/sentry-javascript/pull/8057#issuecomment-1536812466
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
billyvghttps://github.com/billyvg
May 5, 2023 18:32https://github.com/getsentry/sentry-javascript/pull/8057#commits-pushed-62056c1
https://github.com/billyvg
add failing test for replayIdhttps://github.com/getsentry/sentry-javascript/pull/8057/commits/62056c1649275c8f0746ff37fc1039cf62e5d539
62056c1https://github.com/getsentry/sentry-javascript/pull/8057/commits/62056c1649275c8f0746ff37fc1039cf62e5d539
https://github.com/billyvg
fix(replay): Move error sampling to before sendhttps://github.com/getsentry/sentry-javascript/pull/8057/commits/e5cd9fa226c6e57bfecfa0b307f9ffe4a2366aad
e5cd9fahttps://github.com/getsentry/sentry-javascript/pull/8057/commits/e5cd9fa226c6e57bfecfa0b307f9ffe4a2366aad
https://github.com/billyvg
fix handleAfterSend testhttps://github.com/getsentry/sentry-javascript/pull/8057/commits/dfb0195fb6add7a7fbf411c2467dc7d49026619b
dfb0195https://github.com/getsentry/sentry-javascript/pull/8057/commits/dfb0195fb6add7a7fbf411c2467dc7d49026619b
https://github.com/billyvg
lint + fix testhttps://github.com/getsentry/sentry-javascript/pull/8057/commits/1319822877cfb1ecd2824a1b2a1f9940a442d95c
1319822https://github.com/getsentry/sentry-javascript/pull/8057/commits/1319822877cfb1ecd2824a1b2a1f9940a442d95c
https://github.com/billyvg
billyvghttps://github.com/billyvg
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/9d724a3a6f9d55e4c3c57b68812b32cc02a2ace3..1319822877cfb1ecd2824a1b2a1f9940a442d95c
9d724a3https://github.com/getsentry/sentry-javascript/commit/9d724a3a6f9d55e4c3c57b68812b32cc02a2ace3
1319822https://github.com/getsentry/sentry-javascript/commit/1319822877cfb1ecd2824a1b2a1f9940a442d95c
Compare https://github.com/getsentry/sentry-javascript/compare/9d724a3a6f9d55e4c3c57b68812b32cc02a2ace3..1319822877cfb1ecd2824a1b2a1f9940a442d95c
May 5, 2023 22:38https://github.com/getsentry/sentry-javascript/pull/8057#event-9180875950
https://github.com/mydea
mydeahttps://github.com/mydea
May 8, 2023 https://github.com/getsentry/sentry-javascript/pull/8057#pullrequestreview-1416282220
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/8057/files/1319822877cfb1ecd2824a1b2a1f9940a442d95c
packages/replay/src/coreHandlers/handleAfterSendEvent.tshttps://github.com/getsentry/sentry-javascript/pull/8057/files/1319822877cfb1ecd2824a1b2a1f9940a442d95c#diff-e4744b63cebe2a603fb27f813aef8f281fc51bf8bd4b9e1b0b18e7da9428092a
mydeahttps://github.com/mydea
May 8, 2023https://github.com/getsentry/sentry-javascript/pull/8057#discussion_r1187124320
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
https://github.com/mydea
minor refactorhttps://github.com/getsentry/sentry-javascript/pull/8057/commits/1d1112dcf60af383a83b8da76695f4831f9e5737
1d1112dhttps://github.com/getsentry/sentry-javascript/pull/8057/commits/1d1112dcf60af383a83b8da76695f4831f9e5737
https://github.com/mydea
mydeahttps://github.com/mydea
May 8, 2023https://github.com/getsentry/sentry-javascript/pull/8057#issuecomment-1537912874
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
https://github.com/mydea
mydeahttps://github.com/mydea
May 8, 2023 https://github.com/getsentry/sentry-javascript/pull/8057#pullrequestreview-1416320082
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/8057/files/1d1112dcf60af383a83b8da76695f4831f9e5737
https://github.com/mydea
mydeahttps://github.com/mydea
d8cf8d3https://github.com/getsentry/sentry-javascript/commit/d8cf8d3cc0b641bf994d1c1a83b0b69b80a69337
May 8, 2023https://github.com/getsentry/sentry-javascript/pull/8057#event-9187743257
https://github.com/mydea
mydeahttps://github.com/mydea
May 8, 2023 08:20https://github.com/getsentry/sentry-javascript/pull/8057#event-9187743427
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F8057
https://github.com/mydea
mydea https://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/8057/files/1d1112dcf60af383a83b8da76695f4831f9e5737
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
Replay: Events tagged with replay_id before sampling decision https://github.com/getsentry/sentry-javascript/issues/8055
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8057
https://github.com/billyvg
https://github.com/mydea
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.