You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> You can also use environment variables to set the DSN using `NUXT_PUBLIC_SENTRY_DSN`
42
41
43
42
That's it! You can now use Nuxt Sentry in your Nuxt app ✨
@@ -48,7 +47,7 @@ The module can be configured by providing a `sentry` key in the `public` section
48
47
49
48
The `clientSdk` object is passed directly to the Sentry SDK. It consists of the properties specified in the [Sentry documentation here](https://docs.sentry.io/platforms/javascript/configuration/options/).
50
49
51
-
The `disableIntegrations` object takes a key of the integration name and a boolean value to enable or disable the integration. [See more details here](#disabling-integrations)
50
+
The `clientIntegrations` object takes a key of the integration name and either a boolean value or the integration configuration. [See more details here](#configuring-integrations)
52
51
53
52
Runtime config:
54
53
@@ -57,7 +56,7 @@ sentry: {
57
56
enabled?:boolean// Default: Enabled in production
58
57
dsn: string,
59
58
clientSdk?:SdkConfig
60
-
disableIntegrations?:Record<string, boolean>
59
+
clientIntegrations?:ClientIntegrationConfig
61
60
}
62
61
```
63
62
@@ -66,43 +65,16 @@ App config:
66
65
```ts
67
66
sentry: {
68
67
clientSdk?: (app:NuxtApp) =>SdkConfig|SdkConfig
68
+
clientIntegrations?:ClientIntegrationConfig
69
69
}
70
70
```
71
71
72
72
### Configuring Integrations
73
-
If you would like to enable or configure specific integrations or you would like to create custom integrations, you can do so by providing a `integrations` array in the `clientSdk` object in the `appConfig`. It's important to use the `appConfig` for this as integrations are not serializable and cannot be passed through the `runtimeConfig`.
74
-
75
-
The list of integrations is deduplicated based on the `name` property of the integration so you can configure the default integrations by adding them to the list with the desired configuration.
76
-
77
-
See the example below for adding and configuring integrations:
If you would like to disable specific integrations, you can do so by providing a `disableIntegrations` object in the `runtimeConfig`. The key should be the name of the integration and the value should be a boolean to enable or disable the integration. The key is case-insensitive.
73
+
If you would like to enable or configure specific integrations, you can do so by providing a `clientIntegrations` object in either `appConfig` or `runtimeConfig`. The key should be the name of the integration and the value should be either a boolean to enable or disable the integration or an object to configure the integration.
103
74
104
75
The default integrations that are enabled are:
105
76
- Breadcrumbs
77
+
- BrowserTracing
106
78
- Dedupe
107
79
- FunctionToString
108
80
- GlobalHandlers
@@ -111,28 +83,26 @@ The default integrations that are enabled are:
111
83
- LinkedErrors
112
84
- TryCatch
113
85
114
-
See the example below for disabling the default Breadcrumbs integration:
86
+
See the example below for adding and configuring integrations (You can also use `runtimeConfig` for this):
0 commit comments