René's URL Explorer Experiment


Title: Decouple SentryAndroid initialisation from Events sending · Issue #1752 · getsentry/sentry-java · GitHub

Open Graph Title: Decouple SentryAndroid initialisation from Events sending · Issue #1752 · getsentry/sentry-java

X Title: Decouple SentryAndroid initialisation from Events sending · Issue #1752 · getsentry/sentry-java

Description: Discussed in #1751 Originally posted by PGliw October 4, 2021 SentryAndroid does call installDefaultIntegrations in init Method. There are some integrations included that are not "the best" choice for my use case. (SendCachedEventFireAnd...

Open Graph Description: Discussed in #1751 Originally posted by PGliw October 4, 2021 SentryAndroid does call installDefaultIntegrations in init Method. There are some integrations included that are not "the best" choice ...

X Description: Discussed in #1751 Originally posted by PGliw October 4, 2021 SentryAndroid does call installDefaultIntegrations in init Method. There are some integrations included that are not "the best&quo...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decouple SentryAndroid initialisation from Events sending","articleBody":"### Discussed in https://github.com/getsentry/sentry-java/discussions/1751\r\n\r\n\u003cdiv type='discussions-op-text'>\r\n\r\n\u003csup>Originally posted by **PGliw** October  4, 2021\u003c/sup>\r\nSentryAndroid does call `installDefaultIntegrations` in `init` Method.\r\nThere are some integrations included that are not \"the best\" choice for my use case.\r\n(`SendCachedEventFireAndForgetIntegration` and `EnvelopeFileObserverIntegration` I suppose).\r\n\r\nThe workflow I do want to achieve is following (assuming [#1739](https://github.com/getsentry/sentry-java/pull/1739/commits) is closed by the time):\r\n\r\n1. First, init SentryAndroid framework, so breadcrumbs are collected\r\n2. Do not send any events automatically!\r\n3. Check if there was a crash during last app run\r\n4. If there was, ask the user what to do with the crash event\r\n5. If the user wants to send the cached event, send it. Otherwise just delete the event from the cache.\r\n\r\nSadly, because of coupling `SentryAndroid.init` with `SendCachedEventFireAndForgetIntegration`, the crash reports are being sent once the app was started after crash. So it's impossible to achieve step 2. having done step 1., isn't it?\r\nCould the initialisation of the framework (that is initialisation of collecting breadcrumbs etc.) be decoupled from sending the cached events? And could sending the events be made \"on-demand\"?\r\n\r\nI assume it's impossible because of coupling `SendCachedEventFireAndForgetIntegration` integration's `register` method to submitting sending tasks, isn't it? And there is no clean way to enable/disable it on demand.\r\n\r\nIt might be way of doing it by implementing custom `TransportGate`, but how to invoke `SendCachedEventFireAndForgetIntegration` later, once we need to send the event? (see point 5.)\r\n\r\nAlso sending the crash event should not be done after the crash, by on-demand on the next start of the app (`UncaughtExceptionHandlerIntegration` seems to do the opposite by default?)\r\n\r\n\u003c/div>","author":{"url":"https://github.com/pchoroscin","@type":"Person","name":"pchoroscin"},"datePublished":"2021-10-05T12:17:32Z","url":"https://github.com/getsentry/sentry-java/issues/1752"}

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:eab9b1ea-0857-476c-9bdd-1aab2cd9c2ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAAD2:CFA86:274763:355F4D:6B075EC7
html-safe-noncecea0a6bf2344125167d934636e79afaffadaf925cda7289b465cfa998e8d8ea2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUQyOkNGQTg2OjI3NDc2MzozNTVGNEQ6NkIwNzVFQzciLCJ2aXNpdG9yX2lkIjoiODAwMzU5Mzk2MDcxNzUwODI5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac08a12f2fe75c51e297ff07326b65334082c7b459037555616e8dc8321d47b71b
hovercard-subject-tagissue:1016255561
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/1752/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f928b14f8ead1497633c21d3191bcdb5f739e842bb4bd1c05026e5f5b0784ef8/getsentry/sentry-java/issues/1752
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f928b14f8ead1497633c21d3191bcdb5f739e842bb4bd1c05026e5f5b0784ef8/getsentry/sentry-java/issues/1752
og:image:altDiscussed in #1751 Originally posted by PGliw October 4, 2021 SentryAndroid does call installDefaultIntegrations in init Method. There are some integrations included that are not "the best" choice ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepchoroscin
hostnamegithub.com
expected-hostnamegithub.com
None7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82
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
releasebd845eb7947c1ed8c850f7ab415a51339d162de3
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/1752#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F1752
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%2F1752
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/1752
Reloadhttps://github.com/getsentry/sentry-java/issues/1752
Reloadhttps://github.com/getsentry/sentry-java/issues/1752
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues264 (264)https://github.com/getsentry/sentry-java/issues
Pull requests59 (59)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/1752
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/1752
Decouple SentryAndroid initialisation from Events sendinghttps://github.com/getsentry/sentry-java/issues/1752#top
user-consenthttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22user-consent%22
https://github.com/pchoroscin
pchoroscinhttps://github.com/pchoroscin
on Oct 5, 2021https://github.com/getsentry/sentry-java/issues/1752#issue-1016255561
#1751https://github.com/getsentry/sentry-java/discussions/1751
#1739https://github.com/getsentry/sentry-java/pull/1739/commits
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Oct 5, 2021https://github.com/getsentry/sentry-java/issues/1752#event-5410340541
marandanetohttps://github.com/marandaneto
enhancementhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22enhancement%22
Status: Untriagedhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Oct 5, 2021https://github.com/getsentry/sentry-java/issues/1752#event-5410424304
https://github.com/marandaneto
marandanetohttps://github.com/marandaneto
on Oct 5, 2021https://github.com/getsentry/sentry-java/issues/1752#issuecomment-934367491
https://github.com/pchoroscin
pchoroscinhttps://github.com/pchoroscin
on Oct 5, 2021https://github.com/getsentry/sentry-java/issues/1752#issuecomment-934371462
https://github.com/pchoroscin
pchoroscinhttps://github.com/pchoroscin
on Oct 5, 2021https://github.com/getsentry/sentry-java/issues/1752#issuecomment-934436123
@marandanetohttps://github.com/marandaneto
https://github.com/marandaneto
marandanetohttps://github.com/marandaneto
on Oct 7, 2021https://github.com/getsentry/sentry-java/issues/1752#issuecomment-937584844
marandanetohttps://github.com/marandaneto
Androidhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
on Oct 7, 2021https://github.com/getsentry/sentry-java/issues/1752#event-5426947850
bruno-garciahttps://github.com/bruno-garcia
user-consenthttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22user-consent%22
on Oct 27, 2021https://github.com/getsentry/sentry-java/issues/1752#event-5527689007
https://github.com/bruno-garcia
bruno-garciahttps://github.com/bruno-garcia
on Oct 27, 2021https://github.com/getsentry/sentry-java/issues/1752#issuecomment-952958685
marandanetohttps://github.com/marandaneto
Effort: Largehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Effort%3A%20Large%22
Impact: Mediumhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Impact%3A%20Medium%22
on Apr 13, 2022https://github.com/getsentry/sentry-java/issues/1752#event-6427603261
https://github.com/marandaneto
marandanetohttps://github.com/marandaneto
on Apr 13, 2022https://github.com/getsentry/sentry-java/issues/1752#issuecomment-1098084848
https://github.com/marandaneto
marandanetohttps://github.com/marandaneto
on Apr 13, 2022https://github.com/getsentry/sentry-java/issues/1752#issuecomment-1098151957
#1988https://github.com/getsentry/sentry-java/issues/1988
marandanetohttps://github.com/marandaneto
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 13, 2022https://github.com/getsentry/sentry-java/issues/1752#event-6428099303
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/1752
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/1752
user-consenthttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22user-consent%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.