When using multiple pinia stores and the sentry pinia integration, when using the state transformer, only the latest updated store has its state captured as the state of the sentry event. (Sentry Event -> Context -> Application State)
The state transformer reacts to each state update, and changes made (to e.g. change the state, redacting information or add new info) is captured in the state, but only that last changed store. You can see the stateTransformer in the console.log.
All pinia stores get captured as attachements, but the state transformer transformations don't get captured by the attachments, so redactions don't take place. There is a separate bug for this (getsentry/sentry-javascript#14441)
This bug report is not about the attachements. It is about the 'Application State' under 'Context' in the Sentry events.
To get this working, you need to add two files:
.env
NUXT_PUBLIC_SENTRY_DNS=https://...
.env.sentry-build-plugin
SENTRY_AUTH_TOKEN=...
Then run it using npm run dev