@aztec/telemetry-client 2.0.0-nightly.20250821 → 2.0.0-nightly.20250823
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/metrics.d.ts +2 -2
- package/dest/metrics.js +2 -2
- package/dest/start.js +3 -3
- package/package.json +3 -3
- package/src/metrics.ts +2 -2
- package/src/start.ts +3 -3
package/dest/metrics.d.ts
CHANGED
|
@@ -152,8 +152,8 @@ export declare const WORLD_STATE_DB_SIZE = "aztec.world_state.db_size";
|
|
|
152
152
|
export declare const WORLD_STATE_DB_MAP_SIZE = "aztec.world_state.db_map_size";
|
|
153
153
|
export declare const WORLD_STATE_DB_PHYSICAL_SIZE = "aztec.world_state.db_physical_size";
|
|
154
154
|
export declare const WORLD_STATE_TREE_SIZE = "aztec.world_state.tree_size";
|
|
155
|
-
export declare const
|
|
156
|
-
export declare const
|
|
155
|
+
export declare const WORLD_STATE_UNFINALIZED_HEIGHT = "aztec.world_state.unfinalized_height";
|
|
156
|
+
export declare const WORLD_STATE_FINALIZED_HEIGHT = "aztec.world_state.finalized_height";
|
|
157
157
|
export declare const WORLD_STATE_OLDEST_BLOCK = "aztec.world_state.oldest_block";
|
|
158
158
|
export declare const WORLD_STATE_DB_USED_SIZE = "aztec.world_state.db_used_size";
|
|
159
159
|
export declare const WORLD_STATE_DB_NUM_ITEMS = "aztec.world_state.db_num_items";
|
package/dest/metrics.js
CHANGED
|
@@ -150,8 +150,8 @@ export const WORLD_STATE_DB_SIZE = 'aztec.world_state.db_size';
|
|
|
150
150
|
export const WORLD_STATE_DB_MAP_SIZE = 'aztec.world_state.db_map_size';
|
|
151
151
|
export const WORLD_STATE_DB_PHYSICAL_SIZE = 'aztec.world_state.db_physical_size';
|
|
152
152
|
export const WORLD_STATE_TREE_SIZE = 'aztec.world_state.tree_size';
|
|
153
|
-
export const
|
|
154
|
-
export const
|
|
153
|
+
export const WORLD_STATE_UNFINALIZED_HEIGHT = 'aztec.world_state.unfinalized_height';
|
|
154
|
+
export const WORLD_STATE_FINALIZED_HEIGHT = 'aztec.world_state.finalized_height';
|
|
155
155
|
export const WORLD_STATE_OLDEST_BLOCK = 'aztec.world_state.oldest_block';
|
|
156
156
|
export const WORLD_STATE_DB_USED_SIZE = 'aztec.world_state.db_used_size';
|
|
157
157
|
export const WORLD_STATE_DB_NUM_ITEMS = 'aztec.world_state.db_num_items';
|
package/dest/start.js
CHANGED
|
@@ -2,11 +2,11 @@ import { createLogger } from '@aztec/foundation/log';
|
|
|
2
2
|
import { NoopTelemetryClient } from './noop.js';
|
|
3
3
|
import { OpenTelemetryClient } from './otel.js';
|
|
4
4
|
export * from './config.js';
|
|
5
|
-
let
|
|
5
|
+
let initialized = false;
|
|
6
6
|
let telemetry = new NoopTelemetryClient();
|
|
7
7
|
export function initTelemetryClient(config) {
|
|
8
8
|
const log = createLogger('telemetry:client');
|
|
9
|
-
if (
|
|
9
|
+
if (initialized) {
|
|
10
10
|
log.warn('Telemetry client has already been initialized once');
|
|
11
11
|
return telemetry;
|
|
12
12
|
}
|
|
@@ -16,7 +16,7 @@ export function initTelemetryClient(config) {
|
|
|
16
16
|
} else {
|
|
17
17
|
log.info('Using NoopTelemetryClient');
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
initialized = true;
|
|
20
20
|
return telemetry;
|
|
21
21
|
}
|
|
22
22
|
export function getTelemetryClient() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/telemetry-client",
|
|
3
|
-
"version": "2.0.0-nightly.
|
|
3
|
+
"version": "2.0.0-nightly.20250823",
|
|
4
4
|
"inherits": [
|
|
5
5
|
"../package.common.json"
|
|
6
6
|
],
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"!*.test.*"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aztec/foundation": "2.0.0-nightly.
|
|
29
|
-
"@aztec/stdlib": "2.0.0-nightly.
|
|
28
|
+
"@aztec/foundation": "2.0.0-nightly.20250823",
|
|
29
|
+
"@aztec/stdlib": "2.0.0-nightly.20250823",
|
|
30
30
|
"@opentelemetry/api": "^1.9.0",
|
|
31
31
|
"@opentelemetry/api-logs": "^0.55.0",
|
|
32
32
|
"@opentelemetry/core": "^1.28.0",
|
package/src/metrics.ts
CHANGED
|
@@ -184,8 +184,8 @@ export const WORLD_STATE_DB_SIZE = 'aztec.world_state.db_size';
|
|
|
184
184
|
export const WORLD_STATE_DB_MAP_SIZE = 'aztec.world_state.db_map_size';
|
|
185
185
|
export const WORLD_STATE_DB_PHYSICAL_SIZE = 'aztec.world_state.db_physical_size';
|
|
186
186
|
export const WORLD_STATE_TREE_SIZE = 'aztec.world_state.tree_size';
|
|
187
|
-
export const
|
|
188
|
-
export const
|
|
187
|
+
export const WORLD_STATE_UNFINALIZED_HEIGHT = 'aztec.world_state.unfinalized_height';
|
|
188
|
+
export const WORLD_STATE_FINALIZED_HEIGHT = 'aztec.world_state.finalized_height';
|
|
189
189
|
export const WORLD_STATE_OLDEST_BLOCK = 'aztec.world_state.oldest_block';
|
|
190
190
|
export const WORLD_STATE_DB_USED_SIZE = 'aztec.world_state.db_used_size';
|
|
191
191
|
export const WORLD_STATE_DB_NUM_ITEMS = 'aztec.world_state.db_num_items';
|
package/src/start.ts
CHANGED
|
@@ -7,12 +7,12 @@ import type { TelemetryClient } from './telemetry.js';
|
|
|
7
7
|
|
|
8
8
|
export * from './config.js';
|
|
9
9
|
|
|
10
|
-
let
|
|
10
|
+
let initialized = false;
|
|
11
11
|
let telemetry: TelemetryClient = new NoopTelemetryClient();
|
|
12
12
|
|
|
13
13
|
export function initTelemetryClient(config: TelemetryClientConfig): TelemetryClient {
|
|
14
14
|
const log = createLogger('telemetry:client');
|
|
15
|
-
if (
|
|
15
|
+
if (initialized) {
|
|
16
16
|
log.warn('Telemetry client has already been initialized once');
|
|
17
17
|
return telemetry;
|
|
18
18
|
}
|
|
@@ -24,7 +24,7 @@ export function initTelemetryClient(config: TelemetryClientConfig): TelemetryCli
|
|
|
24
24
|
log.info('Using NoopTelemetryClient');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
initialized = true;
|
|
28
28
|
return telemetry;
|
|
29
29
|
}
|
|
30
30
|
|