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
Copy file name to clipboardExpand all lines: packages/gatsby/README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Register the package as a plugin in `gastby-config.js`:
24
24
}
25
25
```
26
26
27
-
Options will be passed directly to `Sentry.init`. The `environment` value defaults to `NODE_ENV` (or `development` if not set).
27
+
Options will be passed directly to `Sentry.init`. See all available options in [our docs](https://docs.sentry.io/error-reporting/configuration/?platform=javascript). The `environment` value defaults to `NODE_ENV` (or `development` if not set).
28
28
29
29
## GitHub Actions
30
30
@@ -38,6 +38,26 @@ The `release` value is inferred from `COMMIT_REF`.
38
38
39
39
To automatically capture the `release` value on Vercel you will need to register appropriate [system environment variable](https://vercel.com/docs/v2/build-step#system-environment-variables) (e.g. `VERCEL_GITHUB_COMMIT_SHA`) in your project.
40
40
41
+
## Sentry Performance
42
+
43
+
To enable Tracing support, supply the `tracesSampleRate` to the options and make sure you have installed the `@sentry/tracing` package.
44
+
45
+
```javascript
46
+
{
47
+
// ...
48
+
plugins: [
49
+
{
50
+
resolve:"@sentry/gatsby",
51
+
options: {
52
+
dsn:process.env.SENTRY_DSN, // this is the default
53
+
tracesSampleRate:1, // this is just to test, you should lower this in production
0 commit comments