@agoric/internal 0.4.0-u19.2 → 0.4.0-u21.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 +25 -21
- package/src/config.d.ts +2 -4
- package/src/config.js +4 -2
- package/src/hex.d.ts +15 -0
- package/src/hex.d.ts.map +1 -0
- package/src/hex.js +105 -0
- package/src/index.d.ts +3 -3
- package/src/index.js +3 -4
- package/src/js-utils.d.ts +29 -4
- package/src/js-utils.d.ts.map +1 -1
- package/src/js-utils.js +144 -23
- package/src/lib-chainStorage.d.ts +25 -1
- package/src/lib-chainStorage.d.ts.map +1 -1
- package/src/lib-chainStorage.js +7 -15
- package/src/marshal.d.ts +11 -4
- package/src/marshal.d.ts.map +1 -1
- package/src/marshal.js +19 -7
- package/src/method-tools.d.ts.map +1 -1
- package/src/method-tools.js +8 -50
- package/src/metrics.d.ts +183 -0
- package/src/metrics.d.ts.map +1 -0
- package/src/metrics.js +476 -0
- package/src/module-utils.d.ts +2 -0
- package/src/module-utils.d.ts.map +1 -0
- package/src/module-utils.js +27 -0
- package/src/ses-utils.d.ts +7 -0
- package/src/ses-utils.d.ts.map +1 -1
- package/src/ses-utils.js +66 -2
- package/src/storage-test-utils.d.ts.map +1 -1
- package/src/tmpDir.d.ts +2 -0
- package/src/tmpDir.d.ts.map +1 -0
- package/src/tmpDir.js +17 -0
- package/src/types.d.ts +12 -0
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +21 -0
package/src/marshal.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export function makeBoardRemote({ boardId, iface }: {
|
|
|
4
4
|
}): BoardRemote;
|
|
5
5
|
export function slotToBoardRemote(boardId: string, iface: string): BoardRemote;
|
|
6
6
|
export function boardSlottingMarshaller(slotToVal?: (slot: string, iface: string) => any): Omit<import("@endo/marshal").Marshal<string | null>, "serialize" | "unserialize">;
|
|
7
|
+
/**
|
|
8
|
+
* @type {TypedPattern<CapData<any>>}
|
|
9
|
+
*/
|
|
10
|
+
export const CapDataShape: TypedPattern<CapData<any>>;
|
|
11
|
+
export function assertCapData(data: unknown): asserts data is CapData<unknown>;
|
|
7
12
|
export function unmarshalFromVstorage(data: Map<string, string>, key: string, fromCapData: ReturnType<typeof import("@endo/marshal").makeMarshal>["fromCapData"], index: number): any;
|
|
8
13
|
export function makeHistoryReviver(entries: [string, string][], slotToVal?: (slot: string, iface?: string) => any): {
|
|
9
14
|
getItem: (key: string) => any;
|
|
@@ -11,10 +16,10 @@ export function makeHistoryReviver(entries: [string, string][], slotToVal?: (slo
|
|
|
11
16
|
has: (k: string) => boolean;
|
|
12
17
|
};
|
|
13
18
|
export const pureDataMarshaller: {
|
|
14
|
-
toCapData: import("@endo/marshal").ToCapData<
|
|
15
|
-
fromCapData: import("@endo/marshal").FromCapData<
|
|
16
|
-
serialize: import("@endo/marshal").ToCapData<
|
|
17
|
-
unserialize: import("@endo/marshal").FromCapData<
|
|
19
|
+
toCapData: import("@endo/marshal").ToCapData<CapData<unknown>>;
|
|
20
|
+
fromCapData: import("@endo/marshal").FromCapData<CapData<unknown>>;
|
|
21
|
+
serialize: import("@endo/marshal").ToCapData<CapData<unknown>>;
|
|
22
|
+
unserialize: import("@endo/marshal").FromCapData<CapData<unknown>>;
|
|
18
23
|
};
|
|
19
24
|
/**
|
|
20
25
|
* Should be a union with Remotable, but that's `any`, making this type
|
|
@@ -23,4 +28,6 @@ export const pureDataMarshaller: {
|
|
|
23
28
|
export type BoardRemote = {
|
|
24
29
|
getBoardId: () => string | null;
|
|
25
30
|
};
|
|
31
|
+
import type { CapData } from '@endo/marshal';
|
|
32
|
+
import type { TypedPattern } from './types.js';
|
|
26
33
|
//# sourceMappingURL=marshal.d.ts.map
|
package/src/marshal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marshal.d.ts","sourceRoot":"","sources":["marshal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"marshal.d.ts","sourceRoot":"","sources":["marshal.js"],"names":[],"mappings":"AAuBO,oDAHI;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACxC,WAAW,CAKvB;AAMM,2CAHI,MAAM,SACN,MAAM,eAGoB;AAqB9B,oDANI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,GAAG,GAClC,IAAI,CAChB,OAAW,eAAe,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,EAClD,WAAe,GAAG,aAAa,CAC5B,CAMH;AAGD;;GAEG;AACH,2BAFU,aAAa,QAAQ,GAAG,CAAC,CAAC,CAE+B;AAS5D,oCAHI,OAAO,GACL,QAAQ,IAAI,IAAI,QAAQ,OAAO,CAAC,CAO5C;AAeM,4CATI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,OACnB,MAAM,eACN,UAAU,CACpB,cAAkB,eAAe,EAAE,WAAW,CAC3C,CAAC,aAAa,CAAC,SACR,MAAM,GAEJ,GAAG,CAwBf;AASM,4CAHI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,cAClB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,GAAG;mBAQlC,MAAM;uBAEN,MAAM;aAYN,MAAM;EAInB;AAID;;;;;EAEG;;;;;0BA1IU;IAAE,UAAU,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;CAAE;6BARtB,eAAe;kCACV,YAAY"}
|
package/src/marshal.js
CHANGED
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
import { Fail } from '@endo/errors';
|
|
3
3
|
import { Far } from '@endo/far';
|
|
4
4
|
import { makeMarshal } from '@endo/marshal';
|
|
5
|
+
import { M } from '@endo/patterns';
|
|
5
6
|
import { isStreamCell } from './lib-chainStorage.js';
|
|
6
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @import {CapData} from '@endo/marshal';
|
|
10
|
+
* @import {TypedPattern} from './types.js';
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
/**
|
|
8
14
|
* Should be a union with Remotable, but that's `any`, making this type
|
|
9
15
|
* meaningless
|
|
@@ -52,18 +58,24 @@ export const boardSlottingMarshaller = (slotToVal = undefined) => {
|
|
|
52
58
|
});
|
|
53
59
|
};
|
|
54
60
|
|
|
55
|
-
// TODO
|
|
56
|
-
// swingset-xsnap-supervisor, etc.
|
|
61
|
+
// TODO move CapDataShape to Endo
|
|
57
62
|
/**
|
|
63
|
+
* @type {TypedPattern<CapData<any>>}
|
|
64
|
+
*/
|
|
65
|
+
export const CapDataShape = { body: M.string(), slots: M.array() };
|
|
66
|
+
harden(CapDataShape);
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Assert that this is CapData
|
|
70
|
+
*
|
|
58
71
|
* @param {unknown} data
|
|
59
|
-
* @returns {asserts data is
|
|
72
|
+
* @returns {asserts data is CapData<unknown>}
|
|
60
73
|
*/
|
|
61
|
-
const assertCapData = data => {
|
|
74
|
+
export const assertCapData = data => {
|
|
62
75
|
assert.typeof(data, 'object');
|
|
63
76
|
assert(data);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
// XXX check that the .slots array elements are actually strings
|
|
77
|
+
typeof data.body === 'string' || Fail`data has non-string .body ${data.body}`;
|
|
78
|
+
Array.isArray(data.slots) || Fail`data has non-Array slots ${data.slots}`;
|
|
67
79
|
};
|
|
68
80
|
harden(assertCapData);
|
|
69
81
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-tools.d.ts","sourceRoot":"","sources":["method-tools.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"method-tools.d.ts","sourceRoot":"","sources":["method-tools.js"],"names":[],"mappings":"AAmBO,+BAJoB,CAAC,SAAd,WAAY,OACf,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GACZ,CAAC,EAAE,CAG8B;AAUvC,qCAJoB,CAAC,SAAd,WAAY,OACf,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GACZ,MAAM,EAAE,CAKlB;AA+BI,+BAJiC,CAAC,SAA3B,MAAM,CAAC,WAAW,EAAE,GAAG,CAAE,OAC5B,CAAC,GACC,CAAC,CAiBX"}
|
package/src/method-tools.js
CHANGED
|
@@ -1,66 +1,24 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import {
|
|
2
|
+
import { getMethodNames as realGetMethodNames } from '@endo/eventual-send/utils.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @file method-tools use dynamic property lookup, which is not
|
|
6
6
|
* Jessie-compatible
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
const {
|
|
10
|
-
|
|
11
|
-
const { ownKeys, apply } = Reflect;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Prioritize symbols as earlier than strings.
|
|
15
|
-
*
|
|
16
|
-
* @param {string | symbol} a
|
|
17
|
-
* @param {string | symbol} b
|
|
18
|
-
* @returns {-1 | 0 | 1}
|
|
19
|
-
*/
|
|
20
|
-
const compareStringified = (a, b) => {
|
|
21
|
-
if (typeof a === typeof b) {
|
|
22
|
-
const left = String(a);
|
|
23
|
-
const right = String(b);
|
|
24
|
-
// eslint-disable-next-line no-nested-ternary
|
|
25
|
-
return left < right ? -1 : left > right ? 1 : 0;
|
|
26
|
-
}
|
|
27
|
-
if (typeof a === 'symbol') {
|
|
28
|
-
assert(typeof b === 'string');
|
|
29
|
-
return -1;
|
|
30
|
-
}
|
|
31
|
-
assert(typeof a === 'string');
|
|
32
|
-
assert(typeof b === 'symbol');
|
|
33
|
-
return 1;
|
|
34
|
-
};
|
|
9
|
+
const { create, fromEntries } = Object;
|
|
10
|
+
const { apply } = Reflect;
|
|
35
11
|
|
|
36
12
|
/**
|
|
37
13
|
* TODO Consolidate with the `getMethodNames` in `@endo/eventual-send`
|
|
38
14
|
*
|
|
15
|
+
* @deprecated Use `getMethodNames` from `@endo/eventual-send/utils.js` instead.
|
|
39
16
|
* @template {PropertyKey} K
|
|
40
17
|
* @param {Record<K, any>} val
|
|
41
18
|
* @returns {K[]}
|
|
42
19
|
*/
|
|
43
|
-
export const getMethodNames = val =>
|
|
44
|
-
|
|
45
|
-
const names = new Set(); // Set to deduplicate
|
|
46
|
-
while (layer !== null && layer !== Object.prototype) {
|
|
47
|
-
// be tolerant of non-objects
|
|
48
|
-
const descs = getOwnPropertyDescriptors(layer);
|
|
49
|
-
const ownNames = /** @type {K[]} */ (ownKeys(descs));
|
|
50
|
-
for (const name of ownNames) {
|
|
51
|
-
// In case a method is overridden by a non-method,
|
|
52
|
-
// test `val[name]` rather than `layer[name]`
|
|
53
|
-
if (typeof val[name] === 'function') {
|
|
54
|
-
names.add(name);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
if (!isObject(val)) {
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
layer = getPrototypeOf(layer);
|
|
61
|
-
}
|
|
62
|
-
return harden([...names].sort(compareStringified));
|
|
63
|
-
};
|
|
20
|
+
export const getMethodNames = val =>
|
|
21
|
+
/** @type {K[]} */ (realGetMethodNames(val));
|
|
64
22
|
harden(getMethodNames);
|
|
65
23
|
|
|
66
24
|
/**
|
|
@@ -72,7 +30,7 @@ harden(getMethodNames);
|
|
|
72
30
|
*/
|
|
73
31
|
export const getStringMethodNames = val =>
|
|
74
32
|
/** @type {string[]} */ (
|
|
75
|
-
|
|
33
|
+
realGetMethodNames(val).filter(name => typeof name === 'string')
|
|
76
34
|
);
|
|
77
35
|
|
|
78
36
|
/**
|
|
@@ -109,7 +67,7 @@ export const bindAllMethods = obj =>
|
|
|
109
67
|
create(
|
|
110
68
|
obj,
|
|
111
69
|
fromEntries(
|
|
112
|
-
|
|
70
|
+
realGetMethodNames(obj).map(name => [
|
|
113
71
|
name,
|
|
114
72
|
{
|
|
115
73
|
value: (/** @type {unknown[]} */ ...args) =>
|
package/src/metrics.d.ts
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
export namespace HISTOGRAM_METRICS {
|
|
2
|
+
namespace swingset_crank_processing_time {
|
|
3
|
+
let description: "Processing time per crank (ms)";
|
|
4
|
+
let unit: "ms";
|
|
5
|
+
let boundaries: number[];
|
|
6
|
+
}
|
|
7
|
+
namespace swingset_block_processing_seconds {
|
|
8
|
+
let description_1: "Processing time per block";
|
|
9
|
+
export { description_1 as description };
|
|
10
|
+
let unit_1: "s";
|
|
11
|
+
export { unit_1 as unit };
|
|
12
|
+
export { HISTOGRAM_SECONDS_LATENCY_BOUNDARIES as boundaries };
|
|
13
|
+
}
|
|
14
|
+
namespace swingset_vat_startup {
|
|
15
|
+
let description_2: "Vat startup time (ms)";
|
|
16
|
+
export { description_2 as description };
|
|
17
|
+
let unit_2: "ms";
|
|
18
|
+
export { unit_2 as unit };
|
|
19
|
+
export { HISTOGRAM_MS_LATENCY_BOUNDARIES as boundaries };
|
|
20
|
+
}
|
|
21
|
+
namespace swingset_vat_delivery {
|
|
22
|
+
let description_3: "Vat delivery time (ms)";
|
|
23
|
+
export { description_3 as description };
|
|
24
|
+
let unit_3: "ms";
|
|
25
|
+
export { unit_3 as unit };
|
|
26
|
+
export { HISTOGRAM_MS_LATENCY_BOUNDARIES as boundaries };
|
|
27
|
+
}
|
|
28
|
+
namespace swingset_meter_usage {
|
|
29
|
+
let description_4: "Vat meter usage";
|
|
30
|
+
export { description_4 as description };
|
|
31
|
+
let unit_4: "ms";
|
|
32
|
+
export { unit_4 as unit };
|
|
33
|
+
export { HISTOGRAM_MS_LATENCY_BOUNDARIES as boundaries };
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export namespace BLOCK_HISTOGRAM_METRICS {
|
|
37
|
+
namespace swingsetRunSeconds {
|
|
38
|
+
let unit_5: string;
|
|
39
|
+
export { unit_5 as unit };
|
|
40
|
+
export namespace advice {
|
|
41
|
+
let explicitBucketBoundaries: number[];
|
|
42
|
+
}
|
|
43
|
+
let description_5: "Per-block time spent executing SwingSet";
|
|
44
|
+
export { description_5 as description };
|
|
45
|
+
}
|
|
46
|
+
namespace swingsetChainSaveSeconds {
|
|
47
|
+
let unit_6: string;
|
|
48
|
+
export { unit_6 as unit };
|
|
49
|
+
export namespace advice_1 { }
|
|
50
|
+
export { advice_1 as advice };
|
|
51
|
+
let description_6: "Per-block time spent propagating SwingSet state into cosmos";
|
|
52
|
+
export { description_6 as description };
|
|
53
|
+
}
|
|
54
|
+
namespace swingsetCommitSeconds {
|
|
55
|
+
let unit_7: string;
|
|
56
|
+
export { unit_7 as unit };
|
|
57
|
+
export namespace advice_2 { }
|
|
58
|
+
export { advice_2 as advice };
|
|
59
|
+
let description_7: "Per-block time spent committing SwingSet state to host storage";
|
|
60
|
+
export { description_7 as description };
|
|
61
|
+
}
|
|
62
|
+
namespace cosmosCommitSeconds {
|
|
63
|
+
let unit_8: string;
|
|
64
|
+
export { unit_8 as unit };
|
|
65
|
+
export namespace advice_3 { }
|
|
66
|
+
export { advice_3 as advice };
|
|
67
|
+
let description_8: "Per-block time spent committing cosmos state";
|
|
68
|
+
export { description_8 as description };
|
|
69
|
+
}
|
|
70
|
+
namespace fullCommitSeconds {
|
|
71
|
+
let unit_9: string;
|
|
72
|
+
export { unit_9 as unit };
|
|
73
|
+
export namespace advice_4 { }
|
|
74
|
+
export { advice_4 as advice };
|
|
75
|
+
let description_9: "Per-block time spent committing state, inclusive of COMMIT_BLOCK processing plus time spent [outside of cosmic-swingset] before and after it";
|
|
76
|
+
export { description_9 as description };
|
|
77
|
+
}
|
|
78
|
+
namespace interBlockSeconds {
|
|
79
|
+
let unit_10: string;
|
|
80
|
+
export { unit_10 as unit };
|
|
81
|
+
export namespace advice_5 { }
|
|
82
|
+
export { advice_5 as advice };
|
|
83
|
+
let description_10: "Time spent idle between blocks";
|
|
84
|
+
export { description_10 as description };
|
|
85
|
+
}
|
|
86
|
+
namespace afterCommitHangoverSeconds {
|
|
87
|
+
let unit_11: string;
|
|
88
|
+
export { unit_11 as unit };
|
|
89
|
+
export namespace advice_6 { }
|
|
90
|
+
export { advice_6 as advice };
|
|
91
|
+
let description_11: "Per-block time spent waiting for previous-block afterCommit work";
|
|
92
|
+
export { description_11 as description };
|
|
93
|
+
}
|
|
94
|
+
namespace blockLagSeconds {
|
|
95
|
+
export namespace advice_7 {
|
|
96
|
+
let explicitBucketBoundaries_1: number[];
|
|
97
|
+
export { explicitBucketBoundaries_1 as explicitBucketBoundaries };
|
|
98
|
+
}
|
|
99
|
+
export { advice_7 as advice };
|
|
100
|
+
let unit_12: string;
|
|
101
|
+
export { unit_12 as unit };
|
|
102
|
+
let description_12: "The delay of each block from its expected begin time";
|
|
103
|
+
export { description_12 as description };
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export type QueueMetricAspect = (typeof QueueMetricAspect)[keyof typeof QueueMetricAspect];
|
|
107
|
+
export namespace QueueMetricAspect {
|
|
108
|
+
let Length: "length";
|
|
109
|
+
let IncrementCount: "increments";
|
|
110
|
+
let DecrementCount: "decrements";
|
|
111
|
+
}
|
|
112
|
+
export function makeQueueMetricsMeta(namePrefix: string, descPrefix: string): Record<QueueMetricAspect, {
|
|
113
|
+
name: string;
|
|
114
|
+
options: MetricAttributes;
|
|
115
|
+
}>;
|
|
116
|
+
export function makeQueueMetrics<QueueName extends string>({ otelMeter, namePrefix, descPrefix, console, }: {
|
|
117
|
+
otelMeter: OTelMeter;
|
|
118
|
+
namePrefix: string;
|
|
119
|
+
descPrefix: string;
|
|
120
|
+
console?: Pick<Console, "warn"> | undefined;
|
|
121
|
+
}): QueueMetrics<QueueName>;
|
|
122
|
+
/**
|
|
123
|
+
* @typedef KernelMetricMeta
|
|
124
|
+
* @property {string} key
|
|
125
|
+
* @property {string} name
|
|
126
|
+
* @property {{ dimension: string; value: string }} [sub]
|
|
127
|
+
* @property {string} description
|
|
128
|
+
* @property {boolean} [consensus]
|
|
129
|
+
* @property {MetricType} metricType
|
|
130
|
+
*/
|
|
131
|
+
/** @type {Omit<KernelMetricMeta, 'metricType'>[]} */
|
|
132
|
+
export const KERNEL_STATS_SUM_METRICS: Omit<KernelMetricMeta, "metricType">[];
|
|
133
|
+
/** @type {Omit<KernelMetricMeta, 'metricType'>[]} */
|
|
134
|
+
export const KERNEL_STATS_UPDOWN_METRICS: Omit<KernelMetricMeta, "metricType">[];
|
|
135
|
+
/** @type {KernelMetricMeta[]} */
|
|
136
|
+
export const KERNEL_STATS_METRICS: KernelMetricMeta[];
|
|
137
|
+
export type QueueMetrics<QueueName extends string> = {
|
|
138
|
+
/**
|
|
139
|
+
* must be
|
|
140
|
+
* called before any other function
|
|
141
|
+
*/
|
|
142
|
+
initLengths: (lengths: Record<QueueName, number>) => void;
|
|
143
|
+
updateLengths: (lengths: Record<QueueName, number>) => void;
|
|
144
|
+
/**
|
|
145
|
+
* for a
|
|
146
|
+
* non-negative delta
|
|
147
|
+
*/
|
|
148
|
+
incLength: (queue: QueueName, delta?: number) => void;
|
|
149
|
+
/**
|
|
150
|
+
* for a
|
|
151
|
+
* non-negative delta
|
|
152
|
+
*/
|
|
153
|
+
decLength: (queue: QueueName, delta?: number) => void;
|
|
154
|
+
};
|
|
155
|
+
export type KernelMetricMeta = {
|
|
156
|
+
key: string;
|
|
157
|
+
name: string;
|
|
158
|
+
sub?: {
|
|
159
|
+
dimension: string;
|
|
160
|
+
value: string;
|
|
161
|
+
} | undefined;
|
|
162
|
+
description: string;
|
|
163
|
+
consensus?: boolean | undefined;
|
|
164
|
+
metricType: MetricType;
|
|
165
|
+
};
|
|
166
|
+
declare const HISTOGRAM_SECONDS_LATENCY_BOUNDARIES: number[];
|
|
167
|
+
/**
|
|
168
|
+
* @import {Meter as OTelMeter, MetricAttributes} from '@opentelemetry/api';
|
|
169
|
+
* @import {TotalMap} from '@agoric/internal';
|
|
170
|
+
*/
|
|
171
|
+
declare const HISTOGRAM_MS_LATENCY_BOUNDARIES: number[];
|
|
172
|
+
import type { MetricAttributes } from '@opentelemetry/api';
|
|
173
|
+
import type { Meter as OTelMeter } from '@opentelemetry/api';
|
|
174
|
+
/**
|
|
175
|
+
* MetricType
|
|
176
|
+
*/
|
|
177
|
+
type MetricType = (typeof MetricType)[keyof typeof MetricType];
|
|
178
|
+
declare namespace MetricType {
|
|
179
|
+
let Counter: "counter";
|
|
180
|
+
let Gauge: "gauge";
|
|
181
|
+
}
|
|
182
|
+
export {};
|
|
183
|
+
//# sourceMappingURL=metrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["metrics.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAqH2C,MAAM,EAAE;;;;;;;;;;gCAQxC,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC;;;;;;AAiB9D,iDAPI,MAAM,cACN,MAAM,GACJ,MAAM,CACd,iBAAiB,EACrB;IAAM,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAC5C,CAoBH;AA0BM,iCARe,SAAS,SAAlB,MAAQ,mDAElB;IAA0B,SAAS,EAA3B,SAAS;IACM,UAAU,EAAzB,MAAM;IACS,UAAU,EAAzB,MAAM;IACyB,OAAO;CAC9C,GAAU,YAAY,CAAC,SAAS,CAAC,CA8GnC;AAQD;;;;;;;;GAQG;AACH,qDAAqD;AACrD,uCADW,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAAE,CAkF/C;AAEF,qDAAqD;AACrD,0CADW,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC,EAAE,CA4D/C;AAGF,iCAAiC;AACjC,mCADW,gBAAgB,EAAE,CAI1B;yBA3SmB,SAAS,SAAlB,MAAQ;;;;;iBAEP,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,IAAI;mBAE5C,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,KAAK,IAAI;;;;;eAC5C,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI;;;;;eAE1C,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI;;;SAsI1C,MAAM;UACN,MAAM;;mBACO,MAAM;eAAS,MAAM;;iBAClC,MAAM;;gBAEN,UAAU;;AAnRxB,6DACuD;AApBvD;;;GAGG;AAEH,wDAaE;sCAjBqD,oBAAoB;wCAApB,oBAAoB;;;;kBAyRhE,CAAC,OAAO,UAAU,EAAE,MAAM,OAAO,UAAU,CAAC"}
|