sentry-vir 3.2.2 → 3.2.4
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.
|
@@ -9,6 +9,8 @@ export function createSentryConfig({ executionEnv, sentryDep, requiredSentryOpti
|
|
|
9
9
|
defaultIntegrations: false,
|
|
10
10
|
enabled: true,
|
|
11
11
|
maxValueLength: 10_000,
|
|
12
|
+
tracesSampleRate: undefined,
|
|
13
|
+
tracesSampler: undefined,
|
|
12
14
|
};
|
|
13
15
|
const envSentryConfig = sentryConfigByEnv[executionEnv](
|
|
14
16
|
/**
|
|
@@ -30,6 +32,7 @@ const sentryConfigByEnv = {
|
|
|
30
32
|
BrowserSentry.functionToStringIntegration(),
|
|
31
33
|
BrowserSentry.globalHandlersIntegration(),
|
|
32
34
|
],
|
|
35
|
+
normalizeDepth: 100,
|
|
33
36
|
};
|
|
34
37
|
return options;
|
|
35
38
|
},
|
|
@@ -42,6 +45,7 @@ const sentryConfigByEnv = {
|
|
|
42
45
|
NodeSentry.nodeContextIntegration(),
|
|
43
46
|
NodeSentry.functionToStringIntegration(),
|
|
44
47
|
],
|
|
48
|
+
normalizeDepth: 100,
|
|
45
49
|
};
|
|
46
50
|
return options;
|
|
47
51
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getOrSetFromMap, mergeDefinedProperties, } from '@augment-vir/common';
|
|
2
2
|
import { calculateRelativeDate, getNowInUtcTimezone, isDateAfter, } from 'date-vir';
|
|
3
3
|
import { sendLog } from '../logging/send-log.js';
|
|
4
4
|
import { extractOriginalMessage } from './event-processor.js';
|
|
@@ -7,7 +7,7 @@ import { extractOriginalMessage } from './event-processor.js';
|
|
|
7
7
|
*
|
|
8
8
|
* @category Internal
|
|
9
9
|
*/
|
|
10
|
-
export const throttleCache =
|
|
10
|
+
export const throttleCache = new Map();
|
|
11
11
|
/**
|
|
12
12
|
* Default values for {@link ThrottleOptions}.
|
|
13
13
|
*
|
|
@@ -29,14 +29,14 @@ export function shouldThrottleEvent(
|
|
|
29
29
|
/** Event from Sentry. */
|
|
30
30
|
event,
|
|
31
31
|
/** EventHint generated by Sentry. */
|
|
32
|
-
hint
|
|
32
|
+
hint, userOptions = defaultThrottleOptions) {
|
|
33
33
|
const options = mergeDefinedProperties(defaultThrottleOptions, userOptions);
|
|
34
34
|
if (options.disableThrottling) {
|
|
35
35
|
return false;
|
|
36
36
|
}
|
|
37
37
|
const errorKey = extractOriginalMessage(event, hint);
|
|
38
38
|
const now = getNowInUtcTimezone();
|
|
39
|
-
const errorThrottleData =
|
|
39
|
+
const errorThrottleData = getOrSetFromMap(throttleCache, errorKey, () => {
|
|
40
40
|
return {
|
|
41
41
|
intervalCount: 0,
|
|
42
42
|
intervalStartAt: now,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sentry-vir",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "Easily use Sentry.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -44,55 +44,55 @@
|
|
|
44
44
|
"test:update": "npm test update"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@augment-vir/assert": "^31.
|
|
48
|
-
"@augment-vir/common": "^31.
|
|
49
|
-
"@sentry/browser": "^10.
|
|
50
|
-
"@sentry/core": "^10.
|
|
51
|
-
"@sentry/node": "^10.
|
|
52
|
-
"date-vir": "^8.
|
|
53
|
-
"type-fest": "^5.
|
|
47
|
+
"@augment-vir/assert": "^31.65.0",
|
|
48
|
+
"@augment-vir/common": "^31.65.0",
|
|
49
|
+
"@sentry/browser": "^10.39.0",
|
|
50
|
+
"@sentry/core": "^10.39.0",
|
|
51
|
+
"@sentry/node": "^10.39.0",
|
|
52
|
+
"date-vir": "^8.1.1",
|
|
53
|
+
"type-fest": "^5.4.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@augment-vir/test": "^31.
|
|
57
|
-
"@eslint/eslintrc": "^3.3.
|
|
58
|
-
"@eslint/js": "^9.
|
|
59
|
-
"@stylistic/eslint-plugin": "^5.
|
|
56
|
+
"@augment-vir/test": "^31.65.0",
|
|
57
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
58
|
+
"@eslint/js": "^9.39.2",
|
|
59
|
+
"@stylistic/eslint-plugin": "^5.9.0",
|
|
60
60
|
"@stylistic/eslint-plugin-ts": "^4.4.1",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
62
|
-
"@web/dev-server-esbuild": "^1.0.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
62
|
+
"@web/dev-server-esbuild": "^1.0.5",
|
|
63
63
|
"@web/test-runner": "^0.20.2",
|
|
64
64
|
"@web/test-runner-commands": "^0.9.0",
|
|
65
65
|
"@web/test-runner-playwright": "^0.11.1",
|
|
66
66
|
"@web/test-runner-visual-regression": "^0.10.0",
|
|
67
|
-
"cspell": "^9.2.
|
|
68
|
-
"dependency-cruiser": "^17.
|
|
69
|
-
"esbuild": "^0.
|
|
70
|
-
"eslint": "^9.
|
|
67
|
+
"cspell": "^9.2.2",
|
|
68
|
+
"dependency-cruiser": "^17.3.8",
|
|
69
|
+
"esbuild": "^0.27.3",
|
|
70
|
+
"eslint": "^9.39.2",
|
|
71
71
|
"eslint-config-prettier": "^10.1.8",
|
|
72
|
-
"eslint-plugin-jsdoc": "^
|
|
72
|
+
"eslint-plugin-jsdoc": "^62.7.0",
|
|
73
73
|
"eslint-plugin-monorepo-cop": "^1.0.2",
|
|
74
|
-
"eslint-plugin-playwright": "^2.
|
|
75
|
-
"eslint-plugin-prettier": "^5.5.
|
|
74
|
+
"eslint-plugin-playwright": "^2.7.0",
|
|
75
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
76
76
|
"eslint-plugin-require-extensions": "^0.1.3",
|
|
77
|
-
"eslint-plugin-sonarjs": "^
|
|
78
|
-
"eslint-plugin-unicorn": "^
|
|
77
|
+
"eslint-plugin-sonarjs": "^4.0.0",
|
|
78
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
79
79
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
80
80
|
"markdown-code-example-inserter": "^3.0.3",
|
|
81
|
-
"npm-check-updates": "^19.
|
|
81
|
+
"npm-check-updates": "^19.4.1",
|
|
82
82
|
"prettier": "~3.3.3",
|
|
83
83
|
"prettier-plugin-interpolated-html-tags": "^2.0.1",
|
|
84
|
-
"prettier-plugin-jsdoc": "^1.
|
|
85
|
-
"prettier-plugin-multiline-arrays": "^4.
|
|
84
|
+
"prettier-plugin-jsdoc": "^1.8.0",
|
|
85
|
+
"prettier-plugin-multiline-arrays": "^4.1.4",
|
|
86
86
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
87
|
-
"prettier-plugin-packagejson": "^
|
|
88
|
-
"prettier-plugin-sort-json": "^4.
|
|
87
|
+
"prettier-plugin-packagejson": "^3.0.0",
|
|
88
|
+
"prettier-plugin-sort-json": "^4.2.0",
|
|
89
89
|
"prettier-plugin-toml": "^2.0.6",
|
|
90
|
-
"runstorm": "^0.
|
|
91
|
-
"typedoc": "^0.28.
|
|
90
|
+
"runstorm": "^1.0.0",
|
|
91
|
+
"typedoc": "^0.28.17",
|
|
92
92
|
"typescript": "^5.9.3",
|
|
93
|
-
"typescript-eslint": "^8.
|
|
94
|
-
"virmator": "^14.1
|
|
95
|
-
"vite": "^7.1
|
|
93
|
+
"typescript-eslint": "^8.56.0",
|
|
94
|
+
"virmator": "^14.6.1",
|
|
95
|
+
"vite": "^7.3.1"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
98
|
"node": ">=22"
|