René's URL Explorer Experiment


Title: Reducing writes performed by the PersistingScopeObserver · Issue #3168 · getsentry/sentry-java · GitHub

Open Graph Title: Reducing writes performed by the PersistingScopeObserver · Issue #3168 · getsentry/sentry-java

X Title: Reducing writes performed by the PersistingScopeObserver · Issue #3168 · getsentry/sentry-java

Description: Problem Statement Hello, I’m looking into CPU usage of our Android React Native app and noticed we’re spending an unexpectedly large amount of time converting breadcrumb records to JSON and persisting them. From what I can tell, the Pers...

Open Graph Description: Problem Statement Hello, I’m looking into CPU usage of our Android React Native app and noticed we’re spending an unexpectedly large amount of time converting breadcrumb records to JSON and persist...

X Description: Problem Statement Hello, I’m looking into CPU usage of our Android React Native app and noticed we’re spending an unexpectedly large amount of time converting breadcrumb records to JSON and persist...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/3168

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reducing writes performed by the PersistingScopeObserver","articleBody":"### Problem Statement\n\nHello, I’m looking into CPU usage of our Android React Native app and noticed we’re spending an unexpectedly large amount of time converting breadcrumb records to JSON and persisting them.\r\n\r\nFrom what I can tell, the [PersistingScopeObserver](https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/cache/PersistingScopeObserver.java) will delete and re-write the entire breadcrumb cache (by default up to 100 records) of the current Scope any time a new breadcrumb is added.\r\n\r\nIn some flows where we’re logging a fair amount (and therefore creating many breadcrumbs), these add up and noticeably affect performance.\r\n\r\nMy understanding is this writing of breadcrumb entries to disk is just for [ANR detection](https://github.com/getsentry/sentry-java/pull/2697) and, today, there is no way to disable this behavior without disabling all caching, which may affect other features.\r\n\r\nAssuming my understanding is correct, is there an appetite to make this behavior configurable (supporting batching writes, or even disabling writes, etc)? For our usecase, this is an instance where we’re happy to lose a bit of observability to retain performance.\n\n### Solution Brainstorm\n\n_No response_","author":{"url":"https://github.com/sam-step","@type":"Person","name":"sam-step"},"datePublished":"2024-01-26T01:09:16Z","url":"https://github.com/getsentry/sentry-java/issues/3168"}

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:87f33b3d-43d9-5d5d-9719-373a3b36b4da
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC1C:1FAF:183BE85:2077F5B:6B04321E
html-safe-nonce35e9970d6077e1c56d2fb49564bf5b590228c7071c82f68d0a0e1cf730762585
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzFDOjFGQUY6MTgzQkU4NToyMDc3RjVCOjZCMDQzMjFFIiwidmlzaXRvcl9pZCI6IjM1NjA5NzEyMjUyOTM2NjQ3OTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6c105a6e514cbbab24047f6be67e01b2937c626049dbcc24b43bd104792603c3
hovercard-subject-tagissue:2101415862
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-java/3168/issue_layout
twitter:imagehttps://opengraph.githubassets.com/587d503bef25302efadce6ff1623c497f21edc9a0dc58115ffe637f995fd7562/getsentry/sentry-java/issues/3168
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/587d503bef25302efadce6ff1623c497f21edc9a0dc58115ffe637f995fd7562/getsentry/sentry-java/issues/3168
og:image:altProblem Statement Hello, I’m looking into CPU usage of our Android React Native app and noticed we’re spending an unexpectedly large amount of time converting breadcrumb records to JSON and persist...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesam-step
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/3168#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F3168
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-java%2Fissues%2F3168
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-java
Reloadhttps://github.com/getsentry/sentry-java/issues/3168
Reloadhttps://github.com/getsentry/sentry-java/issues/3168
Reloadhttps://github.com/getsentry/sentry-java/issues/3168
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues267 (267)https://github.com/getsentry/sentry-java/issues
Pull requests62 (62)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/3168
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/3168
#4181https://github.com/getsentry/sentry-java/pull/4181
Reducing writes performed by the PersistingScopeObserverhttps://github.com/getsentry/sentry-java/issues/3168#top
#4181https://github.com/getsentry/sentry-java/pull/4181
https://github.com/romtsn
ImprovementIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Improvement%22
https://github.com/sam-step
sam-stephttps://github.com/sam-step
on Jan 26, 2024https://github.com/getsentry/sentry-java/issues/3168#issue-2101415862
PersistingScopeObserverhttps://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/cache/PersistingScopeObserver.java
ANR detectionhttps://github.com/getsentry/sentry-java/pull/2697
sam-stephttps://github.com/sam-step
Platform: Androidhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Android%22
on Jan 26, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11603869949
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 26, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11603870276
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 26, 2024https://github.com/getsentry/sentry-java/issues/3168#event-14883739632
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 26, 2024https://github.com/getsentry/sentry-java/issues/3168
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Jan 26, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11603871687
https://github.com/romtsn
romtsnhttps://github.com/romtsn
on Jan 29, 2024https://github.com/getsentry/sentry-java/issues/3168#issuecomment-1914366625
@sam-stephttps://github.com/sam-step
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Jan 29, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11625470624
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 29, 2024https://github.com/getsentry/sentry-java/issues/3168
adinauerhttps://github.com/adinauer
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Jan 29, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11627517449
https://github.com/markushi
markushihttps://github.com/markushi
on Jan 31, 2024https://github.com/getsentry/sentry-java/issues/3168#issuecomment-1919182689
@sam-stephttps://github.com/sam-step
markushihttps://github.com/markushi
Waiting for: Communityhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
on Jan 31, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11656360375
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 31, 2024https://github.com/getsentry/sentry-java/issues/3168
https://github.com/sam-step
sam-stephttps://github.com/sam-step
on Jan 31, 2024https://github.com/getsentry/sentry-java/issues/3168#issuecomment-1919792391
@romtsnhttps://github.com/romtsn
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
Waiting for: Communityhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
on Jan 31, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11660411294
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Jan 31, 2024https://github.com/getsentry/sentry-java/issues/3168
https://github.com/romtsn
romtsnhttps://github.com/romtsn
on Feb 9, 2024https://github.com/getsentry/sentry-java/issues/3168#issuecomment-1935589186
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 9, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11755668316
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Feb 9, 2024https://github.com/getsentry/sentry-java/issues/3168
https://github.com/sam-step
sam-stephttps://github.com/sam-step
on Feb 15, 2024https://github.com/getsentry/sentry-java/issues/3168#issuecomment-1945171157
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 15, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11808465177
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Feb 15, 2024https://github.com/getsentry/sentry-java/issues/3168
kahesthttps://github.com/kahest
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 19, 2024https://github.com/getsentry/sentry-java/issues/3168#event-11847593882
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
on Feb 19, 2024https://github.com/getsentry/sentry-java/issues/3168
romtsnhttps://github.com/romtsn
on Feb 12, 2025https://github.com/getsentry/sentry-java/issues/3168#event-16281666214
romtsnhttps://github.com/romtsn
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4181https://github.com/getsentry/sentry-java/pull/4181
on Mar 14, 2025https://github.com/getsentry/sentry-java/issues/3168#event-16772015619
ImprovementIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Improvement%22
on Aug 12, 2025https://github.com/getsentry/sentry-java/issues/3168#event-19124441009
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/3168
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/3168
romtsnhttps://github.com/romtsn
ImprovementIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Improvement%22
GitHub Issues with 👀 2https://github.com/orgs/getsentry/projects/190
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.