René's URL Explorer Experiment


Title: Apply stateTransformer to Attachments in createSentryPiniaPlugin · Issue #14441 · getsentry/sentry-javascript · GitHub

Open Graph Title: Apply stateTransformer to Attachments in createSentryPiniaPlugin · Issue #14441 · getsentry/sentry-javascript

X Title: Apply stateTransformer to Attachments in createSentryPiniaPlugin · Issue #14441 · getsentry/sentry-javascript

Description: Problem Statement Feature Request: Apply stateTransformer to Attachments in createSentryPiniaPlugin First, thank you for createSentryPiniaPlugin—it's been a lifesaver! Would it be possible to apply the stateTransformer not just to the co...

Open Graph Description: Problem Statement Feature Request: Apply stateTransformer to Attachments in createSentryPiniaPlugin First, thank you for createSentryPiniaPlugin—it's been a lifesaver! Would it be possible to apply...

X Description: Problem Statement Feature Request: Apply stateTransformer to Attachments in createSentryPiniaPlugin First, thank you for createSentryPiniaPlugin—it's been a lifesaver! Would it be possible to a...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Apply stateTransformer to Attachments in createSentryPiniaPlugin","articleBody":"### Problem Statement\n\n## Feature Request: Apply `stateTransformer` to Attachments in `createSentryPiniaPlugin`\n\nFirst, thank you for `createSentryPiniaPlugin`—it's been a lifesaver!  \n\nWould it be possible to apply the `stateTransformer` not just to the context but also to the attachments? This would greatly reduce the size of the attachments when they contain items that don’t need to be in Sentry. Currently, we're hitting our monthly attachment cap just a few days after starting to use `createSentryPiniaPlugin`.\n\n\n### Solution Brainstorm\n\n#### Potential Implementation:\n\n```diff\ntry {\n+ const transformedState = options.stateTransformer \n+   ? options.stateTransformer(store.$state) \n+   : store.$state;\n  // Get current timestamp in hh:mm:ss\n  const timestamp = new Date().toTimeString().split(' ')[0];\n  const filename = `pinia_state_${store.$id}_${timestamp}.json`;\n\n  hint.attachments = [\n    ...(hint.attachments || []),\n    {\n      filename,\n-     data: JSON.stringify(store.$state),\n+     data: JSON.stringify(transformedState),\n    },\n  ];\n} catch (_) {\n  // empty\n}\n```\n\nThis adjustment would make the plugin more efficient by ensuring attachment size is minimized by excluding unnecessary data from the state with `stateTransformer`.\n\nLet me know if you’d like me to submit a PR for this change.\n\nThanks again!","author":{"url":"https://github.com/sircharlo","@type":"Person","name":"sircharlo"},"datePublished":"2024-11-24T15:36:00Z","url":"https://github.com/getsentry/sentry-javascript/issues/14441"}

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:c60ef496-a9ec-e83c-6fe4-4ae3a8bbb026
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB1E6:3B2069:21D8DF:2EFED3:6B074887
html-safe-nonce7e78f803319d05458763a8dc3404c2f830784a05c788042ab44e24ee518275fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUU2OjNCMjA2OToyMUQ4REY6MkVGRUQzOjZCMDc0ODg3IiwidmlzaXRvcl9pZCI6Ijg2MjAwNzE2MTkxMDI0NjAwMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac53252c1b628af382095bcec62720d6342b803bb2b276b0b8d17b88cee90378ae
hovercard-subject-tagissue:2687931119
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/14441/issue_layout
twitter:imagehttps://opengraph.githubassets.com/de103dd44e55f1862ffcc10a1d87b40b1e8819f63bd76cd90991610c1320f956/getsentry/sentry-javascript/issues/14441
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de103dd44e55f1862ffcc10a1d87b40b1e8819f63bd76cd90991610c1320f956/getsentry/sentry-javascript/issues/14441
og:image:altProblem Statement Feature Request: Apply stateTransformer to Attachments in createSentryPiniaPlugin First, thank you for createSentryPiniaPlugin—it's been a lifesaver! Would it be possible to apply...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesircharlo
hostnamegithub.com
expected-hostnamegithub.com
None26f151990bcb5b67b87df8b3f96ed340f849939d44e36f348402de5e39cca989
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
releasecd00d8452bcb4e56a60ba7c0e61a697b46513fe9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/14441#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F14441
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%2F14441
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/14441
Reloadhttps://github.com/getsentry/sentry-javascript/issues/14441
Reloadhttps://github.com/getsentry/sentry-javascript/issues/14441
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues335 (335)https://github.com/getsentry/sentry-javascript/issues
Pull requests57 (57)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/14441
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/14441
#16034https://github.com/getsentry/sentry-javascript/pull/16034
Apply stateTransformer to Attachments in createSentryPiniaPluginhttps://github.com/getsentry/sentry-javascript/issues/14441#top
#16034https://github.com/getsentry/sentry-javascript/pull/16034
https://github.com/s1gr1d
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Vuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Vue%22
https://github.com/sircharlo
sircharlohttps://github.com/sircharlo
on Nov 24, 2024https://github.com/getsentry/sentry-javascript/issues/14441#issue-2687931119
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 24, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15410863634
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 24, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15410863761
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 24, 2024https://github.com/getsentry/sentry-javascript/issues/14441
https://github.com/mydea
mydeahttps://github.com/mydea
on Nov 25, 2024https://github.com/getsentry/sentry-javascript/issues/14441#issuecomment-2497152843
@s1gr1dhttps://github.com/s1gr1d
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 25, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15415870318
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 25, 2024https://github.com/getsentry/sentry-javascript/issues/14441
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
on Nov 25, 2024https://github.com/getsentry/sentry-javascript/issues/14441#issuecomment-2499222461
https://github.com/sircharlo
sircharlohttps://github.com/sircharlo
on Nov 26, 2024https://github.com/getsentry/sentry-javascript/issues/14441#issuecomment-2499593747
#14474https://github.com/getsentry/sentry-javascript/pull/14474
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 26, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15429783250
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 26, 2024https://github.com/getsentry/sentry-javascript/issues/14441
chargomehttps://github.com/chargome
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Nov 26, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15438422466
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Nov 26, 2024https://github.com/getsentry/sentry-javascript/issues/14441
AbhiPrasadhttps://github.com/AbhiPrasad
Package: vuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20vue%22
on Nov 28, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15466128236
mydeahttps://github.com/mydea
feat(vue): Apply stateTransformer to attachments in createSentryPiniaPlugin #14474https://github.com/getsentry/sentry-javascript/pull/14474
on Dec 2, 2024https://github.com/getsentry/sentry-javascript/issues/14441#event-15491266171
getsentry/sentry-javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22getsentry%2Fsentry-javascript%22
on Apr 7, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17159542582
linearhttps://github.com/apps/linear
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
SDKs (New)https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SDKs%20(New)%22
on Apr 7, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17159543730
stephanie-andersonhttps://github.com/stephanie-anderson
SDKs (New)https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22SDKs%20(New)%22
getsentry/sentry-javascripthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22getsentry%2Fsentry-javascript%22
on Apr 8, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17167305211
mydeahttps://github.com/mydea
s1gr1dhttps://github.com/s1gr1d
on Apr 14, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17246750308
s1gr1dhttps://github.com/s1gr1d
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#16034https://github.com/getsentry/sentry-javascript/pull/16034
on Apr 14, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17251212429
s1gr1dhttps://github.com/s1gr1d
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
458fa07https://github.com/getsentry/sentry-javascript/commit/458fa077818c282eead1b3736131dbf1c4a198d2
on Apr 14, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17251212477
pullhttps://github.com/apps/pull
on Apr 14, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17252543361
feat(vue): Apply stateTransformer to attachments in Pinia Plugin (ge…https://github.com/Stars1233/sentry-javascript/commit/458fa077818c282eead1b3736131dbf1c4a198d2
ge…https://github.com/getsentry/sentry-javascript/pull/16034
458fa07https://github.com/Stars1233/sentry-javascript/commit/458fa077818c282eead1b3736131dbf1c4a198d2
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 16, 2025https://github.com/getsentry/sentry-javascript/issues/14441#issuecomment-2809620023
GitHub Actionshttps://help.github.com/en/actions
#16034https://github.com/getsentry/sentry-javascript/pull/16034
9.13.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/9.13.0
stephanie-andersonhttps://github.com/stephanie-anderson
Vuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Vue%22
Package: vuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20vue%22
on May 2, 2025https://github.com/getsentry/sentry-javascript/issues/14441#event-17499843081
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/14441
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/14441
s1gr1dhttps://github.com/s1gr1d
Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Improvement%22
Vuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Vue%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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.