@agoric/telemetry 0.6.3-dev-f0367d7.0 → 0.6.3-dev-b988686.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/telemetry",
|
|
3
|
-
"version": "0.6.3-dev-
|
|
3
|
+
"version": "0.6.3-dev-b988686.0+b988686",
|
|
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-b988686.0+b988686",
|
|
26
|
+
"@agoric/store": "0.9.3-dev-b988686.0+b988686",
|
|
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.87
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "b988686ae9289a4c2d6fd61f0ce1cd608215132d"
|
|
72
72
|
}
|
|
@@ -31,8 +31,18 @@ const bufferTests = test.macro(
|
|
|
31
31
|
circularBufferSize: BUFFER_SIZE,
|
|
32
32
|
circularBufferFilename: tmpFile,
|
|
33
33
|
});
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const realSlogSender = makeSlogSenderFromBuffer({
|
|
35
|
+
fileHandle,
|
|
36
|
+
writeCircBuf,
|
|
37
|
+
});
|
|
38
|
+
t.teardown(realSlogSender.shutdown);
|
|
39
|
+
// To verify lack of attempted mutation by the consumer, send only hardened
|
|
40
|
+
// entries.
|
|
41
|
+
/** @type {typeof realSlogSender} */
|
|
42
|
+
const slogSender = Object.assign(
|
|
43
|
+
(obj, serialized) => realSlogSender(harden(obj), serialized),
|
|
44
|
+
realSlogSender,
|
|
45
|
+
);
|
|
36
46
|
slogSender({ type: 'start' });
|
|
37
47
|
await slogSender.forceFlush();
|
|
38
48
|
t.is(fs.readFileSync(tmpFile, { encoding: 'utf8' }).length, BUFFER_SIZE);
|