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

Nuxt: Make use of Pinia Plugin in Nuxt #14039

Closed
s1gr1d opened this issue Oct 21, 2024 · 0 comments · Fixed by #14047
Closed

Nuxt: Make use of Pinia Plugin in Nuxt #14039

s1gr1d opened this issue Oct 21, 2024 · 0 comments · Fixed by #14047
Assignees

Comments

@s1gr1d
Copy link
Member

s1gr1d commented Oct 21, 2024

Description

Since we have a Sentry Pinia plugin, the Nuxt SDK has to inject the Sentry Pinia plugin to the Sentry Nuxt module

@s1gr1d s1gr1d assigned s1gr1d and unassigned s1gr1d Oct 21, 2024
s1gr1d added a commit that referenced this issue Oct 22, 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}`,
  },
});
```
s1gr1d added a commit that referenced this issue 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 a pull request may close this issue.

1 participant