@agoric/telemetry 0.6.3-dev-5073886.0.5073886 → 0.6.3-dev-b084a06.0.b084a06
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/kv-string-store.js +7 -2
- package/src/slog-to-otel.js +1 -0
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-b084a06.0.b084a06",
|
|
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-b084a06.0.b084a06",
|
|
26
|
+
"@agoric/store": "0.9.3-dev-b084a06.0.b084a06",
|
|
27
27
|
"@endo/errors": "^1.2.13",
|
|
28
28
|
"@endo/init": "^1.1.12",
|
|
29
29
|
"@endo/marshal": "^1.8.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typeCoverage": {
|
|
72
72
|
"atLeast": 89.28
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b084a067b866127f7d05c66e6865750132c4a7d8"
|
|
75
75
|
}
|
package/src/kv-string-store.js
CHANGED
|
@@ -2,7 +2,12 @@ import sqlite3ambient from 'better-sqlite3';
|
|
|
2
2
|
import tmpambient from 'tmp';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @
|
|
5
|
+
* @import {Database} from 'better-sqlite3';
|
|
6
|
+
* @import {LegacyMap} from '@agoric/store';
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @param {{ sqlite3?: (filename: string) => Database, tmp?: typeof tmpambient }} [io]
|
|
6
11
|
*/
|
|
7
12
|
export const makeTempKVDatabase = io => {
|
|
8
13
|
const { sqlite3 = sqlite3ambient, tmp = tmpambient } = io || {};
|
|
@@ -39,7 +44,7 @@ export const makeKVDatabaseTransactionManager = db => {
|
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* @param {string} kind
|
|
42
|
-
* @param {
|
|
47
|
+
* @param {Database} [db]
|
|
43
48
|
*/
|
|
44
49
|
export const makeKVStringStore = (kind, db = makeTempKVDatabase()) => {
|
|
45
50
|
/** @type {Pick<LegacyMap<string, string>, 'get'|'has'|'set'>} */
|
package/src/slog-to-otel.js
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
* @import {SwingSetCapData} from '@agoric/swingset-vat';
|
|
21
21
|
* @import {Message} from '@agoric/swingset-vat';
|
|
22
22
|
* @import {KernelSyscallObject} from '@agoric/swingset-vat';
|
|
23
|
+
* @import {LegacyMap} from '@agoric/store';
|
|
23
24
|
*/
|
|
24
25
|
/** @import {SpanContext, SpanOptions} from '@opentelemetry/api' */
|
|
25
26
|
|