@agoric/telemetry 0.6.3-dev-5349a2e.0.5349a2e → 0.6.3-dev-70d05b1.0.70d05b1
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-70d05b1.0.70d05b1",
|
|
4
4
|
"description": "Agoric's telemetry implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/Agoric/agoric-sdk",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"lint-fix": "yarn lint:eslint --fix",
|
|
14
14
|
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
15
15
|
"lint:types": "yarn run -T tsc",
|
|
16
|
-
"lint:eslint": "
|
|
16
|
+
"lint:eslint": "node ../../scripts/eslint-repo.mjs ."
|
|
17
17
|
},
|
|
18
18
|
"bin": {
|
|
19
19
|
"frcat": "./src/frcat-entrypoint.js"
|
|
@@ -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-70d05b1.0.70d05b1",
|
|
26
|
+
"@agoric/store": "0.9.3-dev-70d05b1.0.70d05b1",
|
|
27
27
|
"@endo/errors": "^1.2.13",
|
|
28
28
|
"@endo/init": "^1.1.12",
|
|
29
29
|
"@endo/marshal": "^1.8.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"typeCoverage": {
|
|
71
71
|
"atLeast": 89.28
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "70d05b17afffdebceb4c12d6bc7f0a1db569dbb3"
|
|
74
74
|
}
|
|
@@ -67,7 +67,7 @@ const SLOG_TYPES = {
|
|
|
67
67
|
FINISH: 'cosmic-swingset-end-block-finish',
|
|
68
68
|
START: 'cosmic-swingset-end-block-start',
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
|
|
71
71
|
RUN: {
|
|
72
72
|
FINISH: 'cosmic-swingset-run-finish',
|
|
73
73
|
START: 'cosmic-swingset-run-start',
|
|
@@ -227,7 +227,7 @@ export const makeContextualSlogProcessor = (
|
|
|
227
227
|
|
|
228
228
|
break;
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
|
|
231
231
|
case SLOG_TYPES.COSMIC_SWINGSET.RUN.START: {
|
|
232
232
|
if (!finalBody.runNum) {
|
|
233
233
|
assert(!triggerContext);
|
|
@@ -353,7 +353,7 @@ export const makeContextualSlogProcessor = (
|
|
|
353
353
|
blockContext = null;
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
|
|
357
357
|
case SLOG_TYPES.COSMIC_SWINGSET.RUN.FINISH: {
|
|
358
358
|
assert(!!triggerContext);
|
|
359
359
|
persistContext(
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-env node */
|
|
3
3
|
import '@endo/init';
|
|
4
4
|
|
|
5
|
-
import fs from 'fs';
|
|
6
|
-
import zlib from 'zlib';
|
|
7
|
-
import readline from 'readline';
|
|
8
|
-
import process from 'process';
|
|
5
|
+
import fs from 'node:fs';
|
|
6
|
+
import zlib from 'node:zlib';
|
|
7
|
+
import readline from 'node:readline';
|
|
8
|
+
import process from 'node:process';
|
|
9
9
|
|
|
10
10
|
import { makeSlogSender } from './make-slog-sender.js';
|
|
11
11
|
|
package/src/make-slog-sender.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
LoggerProvider,
|
|
7
7
|
SimpleLogRecordProcessor,
|
|
8
8
|
} from '@opentelemetry/sdk-logs';
|
|
9
|
-
import { readFileSync, writeFileSync } from 'fs';
|
|
9
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
10
10
|
import { makeContextualSlogProcessor } from './context-aware-slog.js';
|
|
11
11
|
import { getResourceAttributes } from './index.js';
|
|
12
12
|
import { serializeSlogObj } from './serialize-slog-obj.js';
|
package/src/slog-sender-pipe.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* https://nodejs.org/docs/latest/api/child_process.html#advanced-serialization
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { fork } from 'child_process';
|
|
10
|
-
import path from 'path';
|
|
11
|
-
import { promisify } from 'util';
|
|
9
|
+
import { fork } from 'node:child_process';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
import { promisify } from 'node:util';
|
|
12
12
|
import anylogger from '@agoric/internal/vendor/anylogger.js';
|
|
13
13
|
|
|
14
14
|
import { q, Fail } from '@endo/errors';
|