@vendure/sentry-plugin 3.5.0-minor-202509261210 → 3.5.0-minor-202510031341
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/dist/instrument.js +37 -19
- package/dist/instrument.js.map +1 -1
- package/package.json +4 -4
package/dist/instrument.js
CHANGED
|
@@ -42,25 +42,43 @@ const SENTRY_TRACES_SAMPLE_RATE = process.env.SENTRY_TRACES_SAMPLE_RATE
|
|
|
42
42
|
const SENTRY_PROFILES_SAMPLE_RATE = process.env.SENTRY_PROFILES_SAMPLE_RATE
|
|
43
43
|
? Number(process.env.SENTRY_PROFILES_SAMPLE_RATE)
|
|
44
44
|
: undefined;
|
|
45
|
+
const SENTRY_ENABLE_LOGS = process.env.SENTRY_ENABLE_LOGS === 'true';
|
|
46
|
+
const SENTRY_CAPTURE_LOG_LEVELS = process.env.SENTRY_CAPTURE_LOG_LEVELS
|
|
47
|
+
? process.env.SENTRY_CAPTURE_LOG_LEVELS.split(',').map(l => l.trim())
|
|
48
|
+
: ['log', 'warn', 'error'];
|
|
45
49
|
if (!SENTRY_DSN) {
|
|
46
|
-
|
|
50
|
+
// eslint-disable-next-line
|
|
51
|
+
console.error('SENTRY_DSN is not set');
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
Sentry.init({
|
|
55
|
+
dsn: SENTRY_DSN,
|
|
56
|
+
integrations: [
|
|
57
|
+
(0, profiling_node_1.nodeProfilingIntegration)(),
|
|
58
|
+
...(SENTRY_ENABLE_LOGS
|
|
59
|
+
? [Sentry.consoleLoggingIntegration({ levels: SENTRY_CAPTURE_LOG_LEVELS })]
|
|
60
|
+
: []),
|
|
61
|
+
],
|
|
62
|
+
/**
|
|
63
|
+
* @description
|
|
64
|
+
* The sample rate for tracing. Value should be between 0 and 1.
|
|
65
|
+
* By default, tracing is disabled.
|
|
66
|
+
* @default undefined
|
|
67
|
+
*/
|
|
68
|
+
tracesSampleRate: SENTRY_TRACES_SAMPLE_RATE,
|
|
69
|
+
/**
|
|
70
|
+
* @description
|
|
71
|
+
* The sample rate for profiling. Value should be between 0 and 1.
|
|
72
|
+
* By default, profiling is disabled.
|
|
73
|
+
* @default undefined
|
|
74
|
+
*/
|
|
75
|
+
profilesSampleRate: SENTRY_PROFILES_SAMPLE_RATE,
|
|
76
|
+
/**
|
|
77
|
+
* @description
|
|
78
|
+
* Enable logs to be sent to Sentry.
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
enableLogs: SENTRY_ENABLE_LOGS,
|
|
82
|
+
});
|
|
47
83
|
}
|
|
48
|
-
Sentry.init({
|
|
49
|
-
dsn: SENTRY_DSN,
|
|
50
|
-
integrations: [(0, profiling_node_1.nodeProfilingIntegration)()],
|
|
51
|
-
/**
|
|
52
|
-
* @description
|
|
53
|
-
* The sample rate for tracing. Value should be between 0 and 1.
|
|
54
|
-
* By default, tracing is disabled.
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
57
|
-
tracesSampleRate: SENTRY_TRACES_SAMPLE_RATE,
|
|
58
|
-
/**
|
|
59
|
-
* @description
|
|
60
|
-
* The sample rate for profiling. Value should be between 0 and 1.
|
|
61
|
-
* By default, profiling is disabled.
|
|
62
|
-
* @default undefined
|
|
63
|
-
*/
|
|
64
|
-
profilesSampleRate: SENTRY_PROFILES_SAMPLE_RATE,
|
|
65
|
-
});
|
|
66
84
|
//# sourceMappingURL=instrument.js.map
|
package/dist/instrument.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uDAAyC;AACzC,2DAAkE;AAElE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG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AAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/sentry-plugin",
|
|
3
|
-
"version": "3.5.0-minor-
|
|
3
|
+
"version": "3.5.0-minor-202510031341",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@vendure/common": "^3.5.0-minor-
|
|
36
|
-
"@vendure/core": "^3.5.0-minor-
|
|
35
|
+
"@vendure/common": "^3.5.0-minor-202510031341",
|
|
36
|
+
"@vendure/core": "^3.5.0-minor-202510031341"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@sentry/nestjs": "^10.2.0",
|
|
40
40
|
"@sentry/profiling-node": "^10.2.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ffe957ddc6b419f17fced0b4b94fe66fc42528f8"
|
|
43
43
|
}
|