Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nuxt): Add Sentry Pinia plugin #14047

Merged
merged 3 commits into from
Oct 22, 2024
Merged

feat(nuxt): Add Sentry Pinia plugin #14047

merged 3 commits into from
Oct 22, 2024

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