@exodus/error-tracking 3.0.1 → 3.1.1
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/CHANGELOG.md +12 -0
- package/index.js +4 -0
- package/package.json +2 -2
- package/plugin/index.js +8 -2
- package/plugin/why-is-remote-tracking-disabled.js +23 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/error-tracking@3.1.0...@exodus/error-tracking@3.1.1) (2025-08-25)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix: pass through experiment id, make naming less confusing (#13685)
|
|
11
|
+
|
|
12
|
+
## [3.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/error-tracking@3.0.1...@exodus/error-tracking@3.1.0) (2025-08-25)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- feat: support sentry rollout for funded wallets in separate experiment (#13679)
|
|
17
|
+
|
|
6
18
|
## [3.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/error-tracking@3.0.0...@exodus/error-tracking@3.0.1) (2025-08-21)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const defaultConfig = {
|
|
|
10
10
|
maxErrorsCount: 100,
|
|
11
11
|
sentryConfig: undefined,
|
|
12
12
|
remoteErrorTrackingABExperimentId: 'sentry',
|
|
13
|
+
remoteErrorTrackingFundedWalletsABExperimentId: 'sentry-funded',
|
|
13
14
|
trackWalletsCreatedAfter: new Date('2025-07-21'),
|
|
14
15
|
trackFundedWallets: false,
|
|
15
16
|
}
|
|
@@ -18,6 +19,7 @@ const configSchema = {
|
|
|
18
19
|
maxErrorsCount: (value) => typeof value === 'number' && value > 0 && value <= 9999,
|
|
19
20
|
sentryConfig: '?Object',
|
|
20
21
|
remoteErrorTrackingABExperimentId: '?String',
|
|
22
|
+
remoteErrorTrackingFundedWalletsABExperimentId: '?String',
|
|
21
23
|
trackWalletsCreatedAfter: '?Date',
|
|
22
24
|
trackFundedWallets: '?Boolean',
|
|
23
25
|
}
|
|
@@ -29,6 +31,7 @@ const errorTracking = (config = Object.create(null)) => {
|
|
|
29
31
|
maxErrorsCount,
|
|
30
32
|
sentryConfig,
|
|
31
33
|
remoteErrorTrackingABExperimentId,
|
|
34
|
+
remoteErrorTrackingFundedWalletsABExperimentId,
|
|
32
35
|
trackWalletsCreatedAfter,
|
|
33
36
|
trackFundedWallets,
|
|
34
37
|
} = typeforce.parse(configSchema, config, true)
|
|
@@ -63,6 +66,7 @@ const errorTracking = (config = Object.create(null)) => {
|
|
|
63
66
|
definition: errorTrackingPluginDefinition,
|
|
64
67
|
config: {
|
|
65
68
|
remoteErrorTrackingABExperimentId,
|
|
69
|
+
remoteErrorTrackingFundedWalletsABExperimentId,
|
|
66
70
|
trackWalletsCreatedAfter,
|
|
67
71
|
trackFundedWallets,
|
|
68
72
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/error-tracking",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple error tracking package to let any feature collect errors and create the report",
|
|
6
6
|
"author": "Exodus Movement, Inc.",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "8d0dc9654666fca43daed44971e4bc52c4d5c9a2"
|
|
47
47
|
}
|
package/plugin/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { combine, compute } from '@exodus/atoms'
|
|
2
2
|
|
|
3
|
-
import whyIsRemoteTrackingDisabled from './why-is-remote-tracking-disabled.js'
|
|
3
|
+
import { whyIsRemoteTrackingDisabled } from './why-is-remote-tracking-disabled.js'
|
|
4
4
|
|
|
5
5
|
function errorTrackingPlugin({
|
|
6
6
|
abTestingAtom,
|
|
@@ -8,7 +8,12 @@ function errorTrackingPlugin({
|
|
|
8
8
|
walletCreatedAtAtom,
|
|
9
9
|
getBuildMetadata,
|
|
10
10
|
remoteErrorTrackingEnabledAtom,
|
|
11
|
-
config: {
|
|
11
|
+
config: {
|
|
12
|
+
remoteErrorTrackingABExperimentId,
|
|
13
|
+
remoteErrorTrackingFundedWalletsABExperimentId,
|
|
14
|
+
trackWalletsCreatedAfter,
|
|
15
|
+
trackFundedWallets,
|
|
16
|
+
},
|
|
12
17
|
logger,
|
|
13
18
|
}) {
|
|
14
19
|
const subscriptions = []
|
|
@@ -30,6 +35,7 @@ function errorTrackingPlugin({
|
|
|
30
35
|
selector: async ({ abTesting, earliestTxDate, walletCreatedAt }) => {
|
|
31
36
|
const reasonDisabled = whyIsRemoteTrackingDisabled({
|
|
32
37
|
remoteErrorTrackingABExperimentId,
|
|
38
|
+
remoteErrorTrackingFundedWalletsABExperimentId,
|
|
33
39
|
abTesting,
|
|
34
40
|
trackWalletsCreatedAfter,
|
|
35
41
|
walletCreatedAt,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function whyIsRemoteTrackingDisabled({
|
|
2
2
|
remoteErrorTrackingABExperimentId,
|
|
3
|
+
remoteErrorTrackingFundedWalletsABExperimentId,
|
|
3
4
|
abTesting,
|
|
4
5
|
trackWalletsCreatedAfter,
|
|
5
6
|
walletCreatedAt,
|
|
@@ -7,6 +8,8 @@ export default function whyIsRemoteTrackingDisabled({
|
|
|
7
8
|
earliestTxDate,
|
|
8
9
|
buildMetadata,
|
|
9
10
|
}) {
|
|
11
|
+
if (buildMetadata.dev) return 'dev-mode'
|
|
12
|
+
|
|
10
13
|
if (!remoteErrorTrackingABExperimentId) return 'missing-ab-experiment-id'
|
|
11
14
|
if (!abTesting.experiments?.[remoteErrorTrackingABExperimentId]?.enabled) {
|
|
12
15
|
return 'ab-experiment-disabled'
|
|
@@ -24,6 +27,23 @@ export default function whyIsRemoteTrackingDisabled({
|
|
|
24
27
|
return 'wallet-too-old'
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
if (
|
|
28
|
-
|
|
30
|
+
if (earliestTxDate) {
|
|
31
|
+
if (!trackFundedWallets) return 'not-tracking-funded-wallets'
|
|
32
|
+
} else {
|
|
33
|
+
// track unfunded wallet
|
|
34
|
+
return
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// FUNDED WALLETS: separate AB experiment
|
|
38
|
+
if (!remoteErrorTrackingFundedWalletsABExperimentId) {
|
|
39
|
+
return 'missing-funded-wallets-ab-experiment-id'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (!abTesting.experiments?.[remoteErrorTrackingFundedWalletsABExperimentId]?.enabled) {
|
|
43
|
+
return 'funded-wallets-ab-experiment-disabled'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (abTesting.variants?.[remoteErrorTrackingFundedWalletsABExperimentId] !== 'enabled') {
|
|
47
|
+
return 'funded-wallets-ab-experiment-variant-disabled'
|
|
48
|
+
}
|
|
29
49
|
}
|