@sentry/gatsby 11.0.0 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -76
- package/build/esm/package.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,83 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
# Official Sentry SDK for GatsbyJS
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The official Sentry SDK for monitoring Gatsby applications.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
module.exports = {
|
|
13
|
-
// ...
|
|
14
|
-
plugins: [
|
|
15
|
-
{
|
|
16
|
-
resolve: '@sentry/gatsby',
|
|
17
|
-
options: {
|
|
18
|
-
dsn: process.env.SENTRY_DSN, // this is the default
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
// ...
|
|
22
|
-
],
|
|
23
|
-
};
|
|
24
|
-
```
|
|
11
|
+
## Documentation
|
|
25
12
|
|
|
26
|
-
|
|
13
|
+
- [Getting started](https://docs.sentry.io/platforms/javascript/guides/gatsby/)
|
|
14
|
+
- [Configuration](https://docs.sentry.io/platforms/javascript/guides/gatsby/configuration/)
|
|
27
15
|
|
|
28
|
-
|
|
29
|
-
import * as Sentry from '@sentry/gatsby';
|
|
16
|
+
## Support
|
|
30
17
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
|
|
34
|
-
|
|
35
|
-
// Set tracesSampleRate to 1.0 to capture 100%
|
|
36
|
-
// of transactions for performance monitoring.
|
|
37
|
-
// We recommend adjusting this value in production
|
|
38
|
-
tracesSampleRate: 1.0,
|
|
39
|
-
|
|
40
|
-
// Capture Replay for 10% of all sessions,
|
|
41
|
-
// plus for 100% of sessions with an error
|
|
42
|
-
replaysSessionSampleRate: 0.1,
|
|
43
|
-
replaysOnErrorSampleRate: 1.0,
|
|
44
|
-
|
|
45
|
-
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
|
|
46
|
-
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
|
|
47
|
-
});
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
The Gatsby SDK also automatically sets up sourcemaps uploading for you. To disable this functionality, set the
|
|
51
|
-
`enableClientWebpackPlugin` option to be `false`.
|
|
52
|
-
|
|
53
|
-
```javascript
|
|
54
|
-
module.exports = {
|
|
55
|
-
// ...
|
|
56
|
-
plugins: [
|
|
57
|
-
{
|
|
58
|
-
resolve: '@sentry/gatsby',
|
|
59
|
-
options: {
|
|
60
|
-
enableClientWebpackPlugin: false,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
// ...
|
|
64
|
-
],
|
|
65
|
-
};
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Additionally, you can delete source map files after they have been uploaded by setting the `deleteSourcemapsAfterUpload`
|
|
69
|
-
option to be `true`.
|
|
70
|
-
|
|
71
|
-
```javascript
|
|
72
|
-
module.exports = {
|
|
73
|
-
// ...
|
|
74
|
-
plugins: [
|
|
75
|
-
{
|
|
76
|
-
resolve: '@sentry/gatsby',
|
|
77
|
-
options: {
|
|
78
|
-
deleteSourcemapsAfterUpload: true,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
// ...
|
|
82
|
-
],
|
|
83
|
-
};
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Links
|
|
87
|
-
|
|
88
|
-
- [Official SDK Docs](https://docs.sentry.io/quickstart/)
|
|
18
|
+
- [Report a bug](https://github.com/getsentry/sentry-javascript/issues/new/choose)
|
|
19
|
+
- [Contributing](https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md)
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"11.
|
|
1
|
+
{"type":"module","version":"11.2.0","sideEffects":false}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/gatsby",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Official Sentry SDK for Gatsby.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@sentry/core": "11.
|
|
42
|
-
"@sentry/react": "11.
|
|
43
|
-
"@sentry/bundler-plugins": "11.
|
|
41
|
+
"@sentry/core": "11.2.0",
|
|
42
|
+
"@sentry/react": "11.2.0",
|
|
43
|
+
"@sentry/bundler-plugins": "11.2.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"gatsby": "^3.0.0 || ^4.0.0 || ^5.0.0",
|