@agoric/telemetry 0.6.3-dev-83c2ebd.0 → 0.6.3-dev-1d8b7d2.0
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/package.json +4 -4
- package/src/flight-recorder.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/telemetry",
|
|
3
|
-
"version": "0.6.3-dev-
|
|
3
|
+
"version": "0.6.3-dev-1d8b7d2.0+1d8b7d2",
|
|
4
4
|
"description": "Agoric's telemetry implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/internal": "0.3.3-dev-
|
|
26
|
-
"@agoric/store": "0.9.3-dev-
|
|
25
|
+
"@agoric/internal": "0.3.3-dev-1d8b7d2.0+1d8b7d2",
|
|
26
|
+
"@agoric/store": "0.9.3-dev-1d8b7d2.0+1d8b7d2",
|
|
27
27
|
"@endo/errors": "^1.2.9",
|
|
28
28
|
"@endo/init": "^1.1.8",
|
|
29
29
|
"@endo/marshal": "^1.6.3",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"typeCoverage": {
|
|
69
69
|
"atLeast": 88.88
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "1d8b7d2258ae499fa59ec36372e99186fc23f9e8"
|
|
72
72
|
}
|
package/src/flight-recorder.js
CHANGED
|
@@ -8,6 +8,10 @@ import path from 'node:path';
|
|
|
8
8
|
import { Fail } from '@endo/errors';
|
|
9
9
|
import { serializeSlogObj } from './serialize-slog-obj.js';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @import {EReturn} from '@endo/far';
|
|
13
|
+
*/
|
|
14
|
+
|
|
11
15
|
export const DEFAULT_CBUF_SIZE = 100 * 1024 * 1024;
|
|
12
16
|
export const DEFAULT_CBUF_FILE = 'flight-recorder.bin';
|
|
13
17
|
export const SLOG_MAGIC = 0x41472d534c4f4721n; // 'AG-SLOG!'
|
|
@@ -63,7 +67,7 @@ const initializeCircularBuffer = async (bufferFile, circularBufferSize) => {
|
|
|
63
67
|
return arenaSize;
|
|
64
68
|
};
|
|
65
69
|
|
|
66
|
-
/** @typedef {
|
|
70
|
+
/** @typedef {EReturn<typeof makeSimpleCircularBuffer>} CircularBuffer */
|
|
67
71
|
|
|
68
72
|
/**
|
|
69
73
|
*
|
|
@@ -270,7 +274,7 @@ export const makeSimpleCircularBuffer = async ({
|
|
|
270
274
|
|
|
271
275
|
/**
|
|
272
276
|
*
|
|
273
|
-
* @param {Pick<
|
|
277
|
+
* @param {Pick<EReturn<typeof makeSimpleCircularBuffer>, 'writeCircBuf'>} circBuf
|
|
274
278
|
*/
|
|
275
279
|
export const makeSlogSenderFromBuffer = ({ writeCircBuf }) => {
|
|
276
280
|
/** @type {Promise<void>} */
|