@aztec/aztec-node 0.0.1-commit.96bb3f7 → 0.0.1-commit.a072138
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/dest/aztec-node/node_metrics.d.ts +1 -1
- package/dest/aztec-node/node_metrics.d.ts.map +1 -1
- package/dest/aztec-node/node_metrics.js +8 -4
- package/dest/aztec-node/server.d.ts +25 -92
- package/dest/aztec-node/server.d.ts.map +1 -1
- package/dest/aztec-node/server.js +149 -158
- package/dest/sentinel/factory.d.ts +1 -1
- package/dest/sentinel/factory.d.ts.map +1 -1
- package/dest/sentinel/factory.js +1 -1
- package/dest/sentinel/sentinel.js +1 -1
- package/dest/sentinel/store.d.ts +2 -2
- package/dest/sentinel/store.d.ts.map +1 -1
- package/package.json +26 -25
- package/src/aztec-node/node_metrics.ts +12 -5
- package/src/aztec-node/server.ts +192 -221
- package/src/sentinel/factory.ts +1 -6
- package/src/sentinel/sentinel.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec-node",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.a072138",
|
|
4
4
|
"main": "dest/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -65,29 +65,30 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@aztec/archiver": "0.0.1-commit.
|
|
69
|
-
"@aztec/bb-prover": "0.0.1-commit.
|
|
70
|
-
"@aztec/blob-client": "0.0.1-commit.
|
|
71
|
-
"@aztec/constants": "0.0.1-commit.
|
|
72
|
-
"@aztec/epoch-cache": "0.0.1-commit.
|
|
73
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
74
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
75
|
-
"@aztec/kv-store": "0.0.1-commit.
|
|
76
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
77
|
-
"@aztec/merkle-tree": "0.0.1-commit.
|
|
78
|
-
"@aztec/node-keystore": "0.0.1-commit.
|
|
79
|
-
"@aztec/node-lib": "0.0.1-commit.
|
|
80
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
81
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
82
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
83
|
-
"@aztec/prover-client": "0.0.1-commit.
|
|
84
|
-
"@aztec/sequencer-client": "0.0.1-commit.
|
|
85
|
-
"@aztec/simulator": "0.0.1-commit.
|
|
86
|
-
"@aztec/slasher": "0.0.1-commit.
|
|
87
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
88
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
89
|
-
"@aztec/validator-client": "0.0.1-commit.
|
|
90
|
-
"@aztec/
|
|
68
|
+
"@aztec/archiver": "0.0.1-commit.a072138",
|
|
69
|
+
"@aztec/bb-prover": "0.0.1-commit.a072138",
|
|
70
|
+
"@aztec/blob-client": "0.0.1-commit.a072138",
|
|
71
|
+
"@aztec/constants": "0.0.1-commit.a072138",
|
|
72
|
+
"@aztec/epoch-cache": "0.0.1-commit.a072138",
|
|
73
|
+
"@aztec/ethereum": "0.0.1-commit.a072138",
|
|
74
|
+
"@aztec/foundation": "0.0.1-commit.a072138",
|
|
75
|
+
"@aztec/kv-store": "0.0.1-commit.a072138",
|
|
76
|
+
"@aztec/l1-artifacts": "0.0.1-commit.a072138",
|
|
77
|
+
"@aztec/merkle-tree": "0.0.1-commit.a072138",
|
|
78
|
+
"@aztec/node-keystore": "0.0.1-commit.a072138",
|
|
79
|
+
"@aztec/node-lib": "0.0.1-commit.a072138",
|
|
80
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.a072138",
|
|
81
|
+
"@aztec/p2p": "0.0.1-commit.a072138",
|
|
82
|
+
"@aztec/protocol-contracts": "0.0.1-commit.a072138",
|
|
83
|
+
"@aztec/prover-client": "0.0.1-commit.a072138",
|
|
84
|
+
"@aztec/sequencer-client": "0.0.1-commit.a072138",
|
|
85
|
+
"@aztec/simulator": "0.0.1-commit.a072138",
|
|
86
|
+
"@aztec/slasher": "0.0.1-commit.a072138",
|
|
87
|
+
"@aztec/stdlib": "0.0.1-commit.a072138",
|
|
88
|
+
"@aztec/telemetry-client": "0.0.1-commit.a072138",
|
|
89
|
+
"@aztec/validator-client": "0.0.1-commit.a072138",
|
|
90
|
+
"@aztec/validator-ha-signer": "0.0.1-commit.a072138",
|
|
91
|
+
"@aztec/world-state": "0.0.1-commit.a072138",
|
|
91
92
|
"koa": "^2.16.1",
|
|
92
93
|
"koa-router": "^13.1.1",
|
|
93
94
|
"tslib": "^2.4.0",
|
|
@@ -97,7 +98,7 @@
|
|
|
97
98
|
"@jest/globals": "^30.0.0",
|
|
98
99
|
"@types/jest": "^30.0.0",
|
|
99
100
|
"@types/node": "^22.15.17",
|
|
100
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
101
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
101
102
|
"jest": "^30.0.0",
|
|
102
103
|
"jest-mock-extended": "^4.0.0",
|
|
103
104
|
"ts-node": "^10.9.1",
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Attributes,
|
|
3
|
+
type Histogram,
|
|
4
|
+
Metrics,
|
|
5
|
+
type TelemetryClient,
|
|
6
|
+
type UpDownCounter,
|
|
7
|
+
createUpDownCounterWithDefault,
|
|
8
|
+
} from '@aztec/telemetry-client';
|
|
2
9
|
|
|
3
10
|
export class NodeMetrics {
|
|
4
11
|
private receiveTxCount: UpDownCounter;
|
|
@@ -9,14 +16,14 @@ export class NodeMetrics {
|
|
|
9
16
|
|
|
10
17
|
constructor(client: TelemetryClient, name = 'AztecNode') {
|
|
11
18
|
const meter = client.getMeter(name);
|
|
12
|
-
this.receiveTxCount = meter
|
|
19
|
+
this.receiveTxCount = createUpDownCounterWithDefault(meter, Metrics.NODE_RECEIVE_TX_COUNT, {
|
|
20
|
+
[Attributes.OK]: [true, false],
|
|
21
|
+
});
|
|
13
22
|
this.receiveTxDuration = meter.createHistogram(Metrics.NODE_RECEIVE_TX_DURATION);
|
|
14
23
|
|
|
15
24
|
this.snapshotDuration = meter.createHistogram(Metrics.NODE_SNAPSHOT_DURATION);
|
|
16
25
|
|
|
17
|
-
this.snapshotErrorCount = meter
|
|
18
|
-
|
|
19
|
-
this.snapshotErrorCount.add(0);
|
|
26
|
+
this.snapshotErrorCount = createUpDownCounterWithDefault(meter, Metrics.NODE_SNAPSHOT_ERROR_COUNT);
|
|
20
27
|
}
|
|
21
28
|
|
|
22
29
|
receivedTx(durationMs: number, isAccepted: boolean) {
|