Skip to content

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Oct 22, 2024

closes #14039

By adding trackPinia, the Pinia store is monitored with Sentry.

Sentry.init({
  dsn: useRuntimeConfig().public.sentry.dsn,
  trackPinia: true
});

or with custom options:

Sentry.init({
  dsn: useRuntimeConfig().public.sentry.dsn,
  trackPinia: {
    actionTransformer: action => `Transformed: ${action}`,
  },
});

@s1gr1d s1gr1d merged commit 7b815bf into develop Oct 22, 2024
119 checks passed
@s1gr1d s1gr1d deleted the sig/nuxt-pinia branch October 22, 2024 11:16
@s1gr1d s1gr1d self-assigned this Oct 22, 2024
s1gr1d added a commit that referenced this pull request Oct 30, 2024
s1gr1d added a commit that referenced this pull request Oct 30, 2024
reverts #14047

This change needs to be re-evaluated as it currently adds bundle size
for all users.
s1gr1d added a commit that referenced this pull request Oct 30, 2024
closes #14039

By adding `trackPinia`, the Pinia store is monitored with Sentry.

```js
Sentry.init({
  dsn: useRuntimeConfig().public.sentry.dsn,
  trackPinia: true
});
```
or with custom options:
```js
Sentry.init({
  dsn: useRuntimeConfig().public.sentry.dsn,
  trackPinia: {
    actionTransformer: action => `Transformed: ${action}`,
  },
});
```

(cherry picked from commit 7b815bf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nuxt: Make use of Pinia Plugin in Nuxt

2 participants