@grest-ts/runtime 0.0.5
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/LICENSE +21 -0
- package/dist/src/GGRuntime.d.ts +41 -0
- package/dist/src/GGRuntime.d.ts.map +1 -0
- package/dist/src/GGRuntime.js +198 -0
- package/dist/src/GGRuntime.js.map +1 -0
- package/dist/src/GGRuntimeMetrics.d.ts +49 -0
- package/dist/src/GGRuntimeMetrics.d.ts.map +1 -0
- package/dist/src/GGRuntimeMetrics.js +75 -0
- package/dist/src/GGRuntimeMetrics.js.map +1 -0
- package/dist/src/index-node.d.ts +2 -0
- package/dist/src/index-node.d.ts.map +1 -0
- package/dist/src/index-node.js +2 -0
- package/dist/src/index-node.js.map +1 -0
- package/dist/src/tsconfig.json +16 -0
- package/dist/tsconfig.publish.tsbuildinfo +1 -0
- package/package.json +59 -0
- package/src/GGRuntime.ts +219 -0
- package/src/GGRuntimeMetrics.ts +85 -0
- package/src/index-node.ts +1 -0
- package/src/tsconfig.json +16 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Grest Games OÜ
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GGLocatorScope } from "@grest-ts/locator";
|
|
2
|
+
export interface GGRuntimeConfig {
|
|
3
|
+
shutdownTimeoutMs?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare enum GGRuntimeState {
|
|
6
|
+
CREATED = 0,
|
|
7
|
+
BOOTSTRAPPING = 1,
|
|
8
|
+
COMPOSING = 2,
|
|
9
|
+
STARTING = 3,
|
|
10
|
+
RUNNING = 4,
|
|
11
|
+
STOPPING = 5,
|
|
12
|
+
STOPPED = 6
|
|
13
|
+
}
|
|
14
|
+
export declare abstract class GGRuntime {
|
|
15
|
+
static readonly NAME: string;
|
|
16
|
+
static SOURCE_MODULE_URL?: string;
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly scope: GGLocatorScope;
|
|
19
|
+
private readonly runtimeConfig;
|
|
20
|
+
private readonly services;
|
|
21
|
+
private state;
|
|
22
|
+
constructor();
|
|
23
|
+
/**
|
|
24
|
+
* CLI entry point for runtime files.
|
|
25
|
+
*
|
|
26
|
+
* Call this at the end of your runtime file:
|
|
27
|
+
* ```typescript
|
|
28
|
+
* class MyRuntime extends GGRuntime { ... }
|
|
29
|
+
* MyRuntime.cli(import.meta.url);
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* When the file is run directly (not imported), this starts the runtime.
|
|
33
|
+
*/
|
|
34
|
+
static cli<T extends GGRuntime>(this: new () => T, moduleUrl: string): Promise<void>;
|
|
35
|
+
protected abstract compose(): void | Promise<void>;
|
|
36
|
+
start(): Promise<this>;
|
|
37
|
+
private callStartHandlers;
|
|
38
|
+
teardown(exit?: boolean): Promise<void>;
|
|
39
|
+
private callTeardownCallbacks;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=GGRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GGRuntime.d.ts","sourceRoot":"","sources":["../../src/GGRuntime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAKzF,MAAM,WAAW,eAAe;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,oBAAY,cAAc;IACtB,OAAO,IAAI;IACX,aAAa,IAAI;IACjB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,OAAO,IAAI;CACd;AAED,8BAAsB,SAAS;IAE3B,gBAA+B,IAAI,EAAE,MAAM,CAAC;IAE5C,OAAc,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAEzC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,KAAK,EAAE,cAAc,CAAC;IAEtC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkB;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuC;IAChE,OAAO,CAAC,KAAK,CAAyC;;IAuBtD;;;;;;;;;;OAUG;WACiB,GAAG,CAAC,CAAC,SAAS,SAAS,EACvC,IAAI,EAAE,UAAS,CAAC,EAChB,SAAS,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC;IAiBhB,SAAS,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAErC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YA4DrB,iBAAiB;IAmClB,QAAQ,CAAC,IAAI,GAAE,OAAe;YAoB7B,qBAAqB;CAetC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { withTimeout } from "@grest-ts/common";
|
|
2
|
+
import { GGLog } from "@grest-ts/logger";
|
|
3
|
+
import { GGLocator, GGLocatorScope } from "@grest-ts/locator";
|
|
4
|
+
import { GGContext } from "@grest-ts/context";
|
|
5
|
+
import { GG_TRACE } from "@grest-ts/trace";
|
|
6
|
+
import { GG_DISCOVERY } from "@grest-ts/discovery";
|
|
7
|
+
export var GGRuntimeState;
|
|
8
|
+
(function (GGRuntimeState) {
|
|
9
|
+
GGRuntimeState[GGRuntimeState["CREATED"] = 0] = "CREATED";
|
|
10
|
+
GGRuntimeState[GGRuntimeState["BOOTSTRAPPING"] = 1] = "BOOTSTRAPPING";
|
|
11
|
+
GGRuntimeState[GGRuntimeState["COMPOSING"] = 2] = "COMPOSING";
|
|
12
|
+
GGRuntimeState[GGRuntimeState["STARTING"] = 3] = "STARTING";
|
|
13
|
+
GGRuntimeState[GGRuntimeState["RUNNING"] = 4] = "RUNNING";
|
|
14
|
+
GGRuntimeState[GGRuntimeState["STOPPING"] = 5] = "STOPPING";
|
|
15
|
+
GGRuntimeState[GGRuntimeState["STOPPED"] = 6] = "STOPPED";
|
|
16
|
+
})(GGRuntimeState || (GGRuntimeState = {}));
|
|
17
|
+
export class GGRuntime {
|
|
18
|
+
static SOURCE_MODULE_URL;
|
|
19
|
+
name;
|
|
20
|
+
scope;
|
|
21
|
+
runtimeConfig;
|
|
22
|
+
services = [];
|
|
23
|
+
state = GGRuntimeState.CREATED;
|
|
24
|
+
constructor() {
|
|
25
|
+
this.name = this.constructor.NAME;
|
|
26
|
+
if (!this.name) {
|
|
27
|
+
throw new Error(`"${this.constructor.name}" must define static NAME property!\n
|
|
28
|
+
Just add 'public static readonly NAME = "MyRuntime";' to your class definition.`);
|
|
29
|
+
}
|
|
30
|
+
this.runtimeConfig = {
|
|
31
|
+
shutdownTimeoutMs: 10000,
|
|
32
|
+
};
|
|
33
|
+
const scopeName = this.constructor.name + "[" + this.name + "]";
|
|
34
|
+
if (GGLocator.hasScope()) {
|
|
35
|
+
// This most likely means we are running in the test worker. It has already configured a few things.
|
|
36
|
+
this.scope = GGLocator.getScope().branch(scopeName, this.name);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
// Standalone running, we need to fully configure everything.
|
|
40
|
+
this.scope = new GGLocatorScope(scopeName, undefined, this.name);
|
|
41
|
+
GGLog.init(this.scope);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* CLI entry point for runtime files.
|
|
46
|
+
*
|
|
47
|
+
* Call this at the end of your runtime file:
|
|
48
|
+
* ```typescript
|
|
49
|
+
* class MyRuntime extends GGRuntime { ... }
|
|
50
|
+
* MyRuntime.cli(import.meta.url);
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* When the file is run directly (not imported), this starts the runtime.
|
|
54
|
+
*/
|
|
55
|
+
static async cli(moduleUrl) {
|
|
56
|
+
this.SOURCE_MODULE_URL = moduleUrl;
|
|
57
|
+
const modulePath = moduleUrl.replace('file:///', '').replace(/\//g, '\\');
|
|
58
|
+
const argPath = process.argv[1]?.replace(/\//g, '\\');
|
|
59
|
+
const isMain = argPath && (modulePath === argPath ||
|
|
60
|
+
modulePath.endsWith(argPath) ||
|
|
61
|
+
argPath.endsWith(modulePath.split('\\').pop() || ''));
|
|
62
|
+
if (isMain) {
|
|
63
|
+
await new this().start();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async start() {
|
|
67
|
+
await this.scope.run(async () => {
|
|
68
|
+
if (this.state !== GGRuntimeState.CREATED) {
|
|
69
|
+
throw new Error("Runtime already started!");
|
|
70
|
+
}
|
|
71
|
+
this.state = GGRuntimeState.BOOTSTRAPPING;
|
|
72
|
+
await new GGContext("Runtime").run(async () => {
|
|
73
|
+
GG_TRACE.init();
|
|
74
|
+
// GGLog.info(this, "Runtime starting");
|
|
75
|
+
try {
|
|
76
|
+
process.on('SIGTERM', () => this.teardown(true));
|
|
77
|
+
process.on('SIGINT', () => this.teardown(true));
|
|
78
|
+
this.state = GGRuntimeState.COMPOSING;
|
|
79
|
+
// GGLog.info(this, "Composing services...");
|
|
80
|
+
// Enable service registration during compose
|
|
81
|
+
this.scope.setLifecycleOwner((lifecycle) => {
|
|
82
|
+
if (!this.services[lifecycle.type]) {
|
|
83
|
+
this.services[lifecycle.type] = [];
|
|
84
|
+
}
|
|
85
|
+
this.services[lifecycle.type].push(lifecycle);
|
|
86
|
+
});
|
|
87
|
+
await this.compose();
|
|
88
|
+
// Set up service discovery for test/local etc. (if service has not setup its own discovery)
|
|
89
|
+
if (process.env.NODE_ENV !== "production" && !GG_DISCOVERY.has()) {
|
|
90
|
+
// Inline import, we don't want these to get into production. (built version).
|
|
91
|
+
const { GG_LOCAL_ROUTER_PORT, GGLocalDiscoveryClient, GGLocalDiscoveryResilientClient } = await import("@grest-ts/discovery-local");
|
|
92
|
+
if (process.env[GG_LOCAL_ROUTER_PORT]) {
|
|
93
|
+
new GGLocalDiscoveryClient(Number(process.env[GG_LOCAL_ROUTER_PORT]));
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
new GGLocalDiscoveryResilientClient();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// Disable registration - any later calls will throw
|
|
100
|
+
this.scope.setLifecycleOwner(undefined);
|
|
101
|
+
Object.freeze(this.services);
|
|
102
|
+
for (let i = 0; i < this.services.length; i++) {
|
|
103
|
+
if (this.services[i])
|
|
104
|
+
Object.freeze(this.services[i]);
|
|
105
|
+
}
|
|
106
|
+
GGLog.info(this, "Starting...");
|
|
107
|
+
this.state = GGRuntimeState.STARTING;
|
|
108
|
+
await this.callStartHandlers();
|
|
109
|
+
this.state = GGRuntimeState.RUNNING;
|
|
110
|
+
GGLog.info(this, "Runtime running");
|
|
111
|
+
}
|
|
112
|
+
catch (err) {
|
|
113
|
+
this.scope.setLifecycleOwner(undefined);
|
|
114
|
+
GGLog.error(this, err);
|
|
115
|
+
await this.callTeardownCallbacks();
|
|
116
|
+
this.state = GGRuntimeState.STOPPED;
|
|
117
|
+
throw err;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
async callStartHandlers() {
|
|
124
|
+
const startedServices = [];
|
|
125
|
+
try {
|
|
126
|
+
for (let i = 0; i < this.services.length; i++) {
|
|
127
|
+
if (!this.services[i])
|
|
128
|
+
continue;
|
|
129
|
+
const startPromises = this.services[i].map(async (service) => {
|
|
130
|
+
try {
|
|
131
|
+
GGLog.info(this, "Starting service P" + service.type);
|
|
132
|
+
await service.start();
|
|
133
|
+
startedServices.push(service);
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
const results = await Promise.allSettled(startPromises);
|
|
140
|
+
const failed = results.filter((r) => r.status === 'rejected');
|
|
141
|
+
if (failed.length > 0) {
|
|
142
|
+
throw failed[0].reason;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
GGLog.error(this, "Service startup failed, cleaning up already-started services...");
|
|
148
|
+
for (let i = startedServices.length - 1; i >= 0; i--) {
|
|
149
|
+
try {
|
|
150
|
+
GGLog.info(this, "Cleaning up service");
|
|
151
|
+
await startedServices[i]?.teardown?.();
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
GGLog.error(this, "Failed to cleanup", error);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
async teardown(exit = false) {
|
|
161
|
+
await this.scope.run(async () => {
|
|
162
|
+
if (this.state === GGRuntimeState.STOPPING || this.state === GGRuntimeState.STOPPED) {
|
|
163
|
+
GGLog.warn(this, "Shutdown already in progress");
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
await new GGContext("Runtime").run(async () => {
|
|
167
|
+
GG_TRACE.init();
|
|
168
|
+
this.state = GGRuntimeState.STOPPING;
|
|
169
|
+
GGLog.info(this, "Gracefully shutting down");
|
|
170
|
+
await withTimeout(this.callTeardownCallbacks(), this.runtimeConfig.shutdownTimeoutMs, `Shutdown timeout after ${this.runtimeConfig.shutdownTimeoutMs}ms, forcing exit`);
|
|
171
|
+
GGLog.info(this, "Shutdown complete");
|
|
172
|
+
this.state = GGRuntimeState.STOPPED;
|
|
173
|
+
if (exit === true) {
|
|
174
|
+
process.exit(0);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
async callTeardownCallbacks() {
|
|
180
|
+
for (let i = this.services.length - 1; i >= 0; i--) {
|
|
181
|
+
if (!this.services[i])
|
|
182
|
+
continue;
|
|
183
|
+
const teardownPromises = this.services[i].map(async (service) => {
|
|
184
|
+
GGLog.info(this, "Tearing down service P" + service.type);
|
|
185
|
+
if (!service.teardown)
|
|
186
|
+
return;
|
|
187
|
+
try {
|
|
188
|
+
await service.teardown();
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
GGLog.error(this, error);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
await Promise.allSettled(teardownPromises);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=GGRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GGRuntime.js","sourceRoot":"","sources":["../../src/GGRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAC,SAAS,EAA+B,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAA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,EAAE,EAAE,CAAC;YACjD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAAE,SAAS;YAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;gBAC5D,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC1D,IAAI,CAAC,OAAO,CAAC,QAAQ;oBAAE,OAAO;gBAC9B,IAAI,CAAC;oBACD,MAAM,OAAO,CAAC,QAAQ,EAAE,CAAC;gBAC7B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAc,CAAC,CAAC;gBACtC,CAAC;YACL,CAAC,CAAC,CAAC;YACH,MAAM,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { GGGaugeKey } from "@grest-ts/metrics";
|
|
2
|
+
import { GGLazyGaugeKey } from "@grest-ts/metrics";
|
|
3
|
+
/**
|
|
4
|
+
* Runtime-level metrics for process monitoring.
|
|
5
|
+
* Uses lazy gauges for values that should be computed on read.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GGRuntimeMetrics: import("@grest-ts/metrics").GGMetricsDefinition<{
|
|
8
|
+
/**
|
|
9
|
+
* Unix timestamp (in seconds) when the process started.
|
|
10
|
+
* Set once at process startup. Uptime = now - startTime.
|
|
11
|
+
*/
|
|
12
|
+
startTime: GGGaugeKey<{}>;
|
|
13
|
+
memory: {
|
|
14
|
+
/**
|
|
15
|
+
* V8 heap memory currently in use (bytes).
|
|
16
|
+
*/
|
|
17
|
+
heapUsed: GGLazyGaugeKey;
|
|
18
|
+
/**
|
|
19
|
+
* Total V8 heap memory allocated (bytes).
|
|
20
|
+
*/
|
|
21
|
+
heapTotal: GGLazyGaugeKey;
|
|
22
|
+
/**
|
|
23
|
+
* Resident Set Size - total memory allocated for the process (bytes).
|
|
24
|
+
*/
|
|
25
|
+
rss: GGLazyGaugeKey;
|
|
26
|
+
/**
|
|
27
|
+
* Memory used by C++ objects bound to JavaScript objects managed by V8.
|
|
28
|
+
*/
|
|
29
|
+
external: GGLazyGaugeKey;
|
|
30
|
+
/**
|
|
31
|
+
* Memory allocated for ArrayBuffers and SharedArrayBuffers.
|
|
32
|
+
*/
|
|
33
|
+
arrayBuffers: GGLazyGaugeKey;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Number of active handles (timers, sockets, etc.) keeping the event loop alive.
|
|
37
|
+
*/
|
|
38
|
+
activeHandles: GGLazyGaugeKey;
|
|
39
|
+
/**
|
|
40
|
+
* Number of active requests (pending async operations).
|
|
41
|
+
*/
|
|
42
|
+
activeRequests: GGLazyGaugeKey;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Initialize runtime metrics - sets the start time.
|
|
46
|
+
* Should be called once at process/runtime startup.
|
|
47
|
+
*/
|
|
48
|
+
export declare function initRuntimeMetrics(): void;
|
|
49
|
+
//# sourceMappingURL=GGRuntimeMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GGRuntimeMetrics.d.ts","sourceRoot":"","sources":["../../src/GGRuntimeMetrics.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAEzB;;;OAGG;;;QAMC;;WAEG;;QAMH;;WAEG;;QAMH;;WAEG;;QAMH;;WAEG;;QAMH;;WAEG;;;IAOP;;OAEG;;IAMH;;OAEG;;EAMJ,CAAC;AAEJ;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { GGMetrics } from "@grest-ts/metrics";
|
|
2
|
+
import { GGGaugeKey } from "@grest-ts/metrics";
|
|
3
|
+
import { GGLazyGaugeKey } from "@grest-ts/metrics";
|
|
4
|
+
/**
|
|
5
|
+
* Runtime-level metrics for process monitoring.
|
|
6
|
+
* Uses lazy gauges for values that should be computed on read.
|
|
7
|
+
*/
|
|
8
|
+
export const GGRuntimeMetrics = GGMetrics.define('/runtime/', () => ({
|
|
9
|
+
/**
|
|
10
|
+
* Unix timestamp (in seconds) when the process started.
|
|
11
|
+
* Set once at process startup. Uptime = now - startTime.
|
|
12
|
+
*/
|
|
13
|
+
startTime: new GGGaugeKey('start_time_seconds', {
|
|
14
|
+
help: 'Unix timestamp when the process started'
|
|
15
|
+
}),
|
|
16
|
+
memory: {
|
|
17
|
+
/**
|
|
18
|
+
* V8 heap memory currently in use (bytes).
|
|
19
|
+
*/
|
|
20
|
+
heapUsed: new GGLazyGaugeKey('memory_heap_used_bytes', {
|
|
21
|
+
help: 'V8 heap memory used in bytes',
|
|
22
|
+
getValue: () => process.memoryUsage().heapUsed
|
|
23
|
+
}),
|
|
24
|
+
/**
|
|
25
|
+
* Total V8 heap memory allocated (bytes).
|
|
26
|
+
*/
|
|
27
|
+
heapTotal: new GGLazyGaugeKey('memory_heap_total_bytes', {
|
|
28
|
+
help: 'V8 heap memory total in bytes',
|
|
29
|
+
getValue: () => process.memoryUsage().heapTotal
|
|
30
|
+
}),
|
|
31
|
+
/**
|
|
32
|
+
* Resident Set Size - total memory allocated for the process (bytes).
|
|
33
|
+
*/
|
|
34
|
+
rss: new GGLazyGaugeKey('memory_rss_bytes', {
|
|
35
|
+
help: 'Resident Set Size in bytes',
|
|
36
|
+
getValue: () => process.memoryUsage().rss
|
|
37
|
+
}),
|
|
38
|
+
/**
|
|
39
|
+
* Memory used by C++ objects bound to JavaScript objects managed by V8.
|
|
40
|
+
*/
|
|
41
|
+
external: new GGLazyGaugeKey('memory_external_bytes', {
|
|
42
|
+
help: 'V8 external memory in bytes',
|
|
43
|
+
getValue: () => process.memoryUsage().external
|
|
44
|
+
}),
|
|
45
|
+
/**
|
|
46
|
+
* Memory allocated for ArrayBuffers and SharedArrayBuffers.
|
|
47
|
+
*/
|
|
48
|
+
arrayBuffers: new GGLazyGaugeKey('memory_array_buffers_bytes', {
|
|
49
|
+
help: 'Memory allocated for ArrayBuffers in bytes',
|
|
50
|
+
getValue: () => process.memoryUsage().arrayBuffers
|
|
51
|
+
}),
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* Number of active handles (timers, sockets, etc.) keeping the event loop alive.
|
|
55
|
+
*/
|
|
56
|
+
activeHandles: new GGLazyGaugeKey('active_handles', {
|
|
57
|
+
help: 'Number of active handles keeping the event loop alive',
|
|
58
|
+
getValue: () => process._getActiveHandles?.()?.length ?? 0
|
|
59
|
+
}),
|
|
60
|
+
/**
|
|
61
|
+
* Number of active requests (pending async operations).
|
|
62
|
+
*/
|
|
63
|
+
activeRequests: new GGLazyGaugeKey('active_requests', {
|
|
64
|
+
help: 'Number of active async requests',
|
|
65
|
+
getValue: () => process._getActiveRequests?.()?.length ?? 0
|
|
66
|
+
}),
|
|
67
|
+
}));
|
|
68
|
+
/**
|
|
69
|
+
* Initialize runtime metrics - sets the start time.
|
|
70
|
+
* Should be called once at process/runtime startup.
|
|
71
|
+
*/
|
|
72
|
+
export function initRuntimeMetrics() {
|
|
73
|
+
GGRuntimeMetrics.startTime.set(Math.floor(Date.now() / 1000));
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=GGRuntimeMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GGRuntimeMetrics.js","sourceRoot":"","sources":["../../src/GGRuntimeMetrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,mBA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AgB,EAAE;QAChD,IAAI,EAAE,uDAAuD;QAC7D,QAAQ,EAAE,GAAG,EAAE,CAAE,OAAe,CAAC,iBAAiB,EAAE,EAAE,EAAE,MAAM,IAAI,CAAC;KACtE,CAAC;IAEF;;OAEG;IACH,cAAc,EAAE,IAAI,cAAc,CAAC,iBAAiB,EAAE;QAClD,IAAI,EAAE,iCAAiC;QACvC,QAAQ,EAAE,GAAG,EAAE,CAAE,OAAe,CAAC,kBAAkB,EAAE,EAAE,EAAE,MAAM,IAAI,CAAC;KACvE,CAAC;CAEL,CAAC,CAAC,CAAC;AAEJ;;;GAGG;AACH,MAAM,UAAU,kBAAkB;IAC9B,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../../src/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node.js","sourceRoot":"","sources":["../../src/index-node.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../common/src/deepfreeze.ts","../../common/src/deepclone.ts","../../common/src/withtimeout.ts","../../common/src/ggerror.ts","../../common/src/unreachablecode.ts","../../common/src/types.ts","../../common/src/http.ts","../../common/src/secret.ts","../../common/src/sleep.ts","../../common/src/environment.ts","../../common/src/ggasyncstorage.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@nodelib/fs.stat/out/types/index.d.ts","../../../node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts","../../../node_modules/@nodelib/fs.stat/out/settings.d.ts","../../../node_modules/@nodelib/fs.stat/out/providers/async.d.ts","../../../node_modules/@nodelib/fs.stat/out/index.d.ts","../../../node_modules/@nodelib/fs.scandir/out/types/index.d.ts","../../../node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts","../../../node_modules/@nodelib/fs.scandir/out/settings.d.ts","../../../node_modules/@nodelib/fs.scandir/out/providers/async.d.ts","../../../node_modules/@nodelib/fs.scandir/out/index.d.ts","../../../node_modules/@nodelib/fs.walk/out/types/index.d.ts","../../../node_modules/@nodelib/fs.walk/out/settings.d.ts","../../../node_modules/@nodelib/fs.walk/out/readers/reader.d.ts","../../../node_modules/@nodelib/fs.walk/out/readers/async.d.ts","../../../node_modules/@nodelib/fs.walk/out/providers/async.d.ts","../../../node_modules/@nodelib/fs.walk/out/index.d.ts","../../../node_modules/fast-glob/out/types/index.d.ts","../../../node_modules/fast-glob/out/settings.d.ts","../../../node_modules/fast-glob/out/managers/tasks.d.ts","../../../node_modules/fast-glob/out/index.d.ts","../../common/src/ggextensiondiscovery.ts","../../common/src/index-node.ts","../../locator/src/gglocator.ts","../../locator/src/gglocatorkey.ts","../../locator/src/gglocatorscopedebug.ts","../../locator/src/gglocatorscope.ts","../../locator/src/gglocatorstorage.ts","../../locator/src/index-node.ts","../../logger/logger/src/types.ts","../../logger/logger/src/gglogger.ts","../../logger/logger/src/gglog.ts","../../logger/logger/src/iasynclocalstorage.ts","../../logger/logger/src/index-node.ts","../../context/src/ggcontextstore.ts","../../schema/schema/src/issue/ggissueregistry.ts","../../schema/schema/src/issue/ggissuekey.ts","../../schema/schema/src/issue/ggissueslist.ts","../../schema/schema/src/executor/aot/utils/compilerstate.ts","../../schema/schema/src/executor/aot/utils/helpers.ts","../../schema/schema/src/executor/standard/impl/code_is.ts","../../schema/schema/src/executor/aot/impl/aot_is.ts","../../schema/schema/src/executor/aot/impl/aot_clean.ts","../../schema/schema/src/executor/aot/impl/aot_stringify.ts","../../schema/schema/src/issue/issues/ggissueinvalid.ts","../../schema/schema/src/issue/issues/ggrangeissue.ts","../../schema/schema/src/errors.ts","../../schema/schema/src/executor/aot/impl/aot_validate.ts","../../schema/schema/src/executor/aot/impl/aot_coerce.ts","../../schema/schema/src/executor/aot/impl/aot_parse.ts","../../schema/schema/src/executor/aot/aotexecutor.ts","../../schema/schema/src/issue/types.ts","../../schema/schema/src/contract/ok.ts","../../schema/schema/src/contract/error.ts","../../schema/schema/src/ggtransform.ts","../../schema/schema/src/ggcodec.ts","../../schema/schema/src/ggschema.ts","../../schema/schema/src/definition.ts","../../schema/schema/src/executor/executorstrategy.ts","../../schema/schema/src/executor/standard/impl/code_clean.ts","../../schema/schema/src/executor/standard/impl/code_validate.ts","../../schema/schema/src/executor/standard/impl/code_parse.ts","../../schema/schema/src/executor/standard/impl/code_stringify.ts","../../schema/schema/src/executor/standard/standardexecutor.ts","../../schema/schema/src/schemas/isarray.ts","../../schema/schema/src/schemas/isliteral.ts","../../schema/schema/src/schemas/isobject.ts","../../schema/schema/src/schemas/isstring.ts","../../schema/schema/src/schemas/isany.ts","../../schema/schema/src/contract/standarderrors.ts","../../schema/schema/src/contract/ggpromise.ts","../../schema/schema/src/contract/ggcontractexecutor.ts","../../schema/schema/src/contract/ggcontractclass.ts","../../schema/schema/src/contract/ggcontractfunction.ts","../../schema/schema/src/executor/aot/typecompiler.ts","../../schema/schema/src/schemas/isnumber.ts","../../schema/schema/src/schemas/isboolean.ts","../../schema/schema/src/schemas/isbit.ts","../../schema/schema/src/schemas/isunion.ts","../../schema/schema/src/schemas/isunknown.ts","../../schema/schema/src/schemas/isenum.ts","../../schema/schema/src/schemas/isdiscriminated.ts","../../schema/schema/src/schemas/isrecord.ts","../../schema/schema/src/schemas/istuple.ts","../../schema/schema/src/custom/isdate.ts","../../schema/schema/src/custom/isdatetime.ts","../../schema/schema/src/custom/isint.ts","../../schema/schema/src/custom/islatitude.ts","../../schema/schema/src/custom/islongitude.ts","../../schema/schema/src/custom/isemail.ts","../../schema/schema/src/custom/ispassword.ts","../../schema/schema/src/custom/islanguage.ts","../../schema/schema/src/custom/iscountry.ts","../../schema/schema/src/custom/islocale.ts","../../schema/schema/src/index-node.ts","../../context/src/ggcontextkey.ts","../../context/src/ggcontext.ts","../../context/src/ggcontextstorage.ts","../../context/src/index-node.ts","../../trace/trace/src/gg_trace.ts","../../trace/trace/src/index-node.ts","../../discovery/discovery/src/ggdiscoveryclient.ts","../../discovery/discovery/src/index-node.ts","../../../node_modules/@types/http-proxy/index.d.ts","../../../node_modules/find-my-way/index.d.ts","../../ipc/src/server/httphandler.ts","../../../node_modules/@types/ws/index.d.mts","../../ipc/src/common/ipcsocket.ts","../../ipc/src/server/sockethandler.ts","../../ipc/src/common/ipctypes.ts","../../ipc/src/server/ipcserver.ts","../../ipc/src/client/ipcclient.ts","../../ipc/src/index-node.ts","../../discovery/discovery-local/src/local/ggdiscoveryipc.ts","../../discovery/discovery-local/src/local/gglocaldiscoveryclient.ts","../../discovery/discovery-local/src/local/routing/routingstrategy.ts","../../discovery/discovery-local/src/local/routing/strategies/firststrategy.ts","../../discovery/discovery-local/src/local/routing/strategies/laststrategy.ts","../../discovery/discovery-local/src/local/routing/strategies/randomstrategy.ts","../../discovery/discovery-local/src/local/routing/strategies/roundrobinstrategy.ts","../../discovery/discovery-local/src/local/gglocaldiscoveryserver.ts","../../discovery/discovery-local/src/local/gglocaldiscoveryresilientclient.ts","../../discovery/discovery-local/src/index-node.ts","../src/ggruntime.ts","../../metrics/src/ggmetricsdefinestorage.ts","../../metrics/src/ggmetrics.ts","../../metrics/src/ggmetricsstore.ts","../../metrics/src/ggmetricsloader.ts","../../metrics/src/ggmetrickey.ts","../../metrics/src/ggmetric.ts","../../metrics/src/keys/ggcounterkey.ts","../../metrics/src/metric/ggcounter.ts","../../metrics/src/keys/gggaugekey.ts","../../metrics/src/metric/gggauge.ts","../../metrics/src/keys/gglazygaugekey.ts","../../metrics/src/metric/gglazygauge.ts","../../metrics/src/keys/gghistogramkey.ts","../../metrics/src/metric/gghistogram.ts","../../metrics/src/exporters/ggmetricsexporter.ts","../../metrics/src/exporters/ggjsonmetricsexporter.ts","../../metrics/src/exporters/ggnestedmetricsexporter.ts","../../metrics/src/index-node.ts","../src/ggruntimemetrics.ts","../src/index-node.ts"],"fileIdsList":[[74,123,140,141,178,179],[74,123,140,141,179,180,181,182],[74,123,140,141,173,179,181],[74,123,140,141,178,180],[74,123,135,140,141,173],[74,123,135,140,141,173,174],[74,123,140,141,174,175,176,177],[74,123,140,141,174,176],[74,123,140,141,175],[74,123,140,141,155,173,183,184,185,188],[74,123,140,141,184,185,187],[74,123,134,140,141,173,183,184,185,186],[74,123,140,141,185],[74,123,140,141,183,184],[74,123,140,141,173,183],[74,123,134,137,139,140,141,143,155,166,173],[74,120,121,123,140,141],[74,122,123,140,141],[123,140,141],[74,123,128,140,141,158],[74,123,124,129,134,140,141,143,155,166],[74,123,124,125,134,140,141,143],[74,123,140,141],[69,70,71,74,123,140,141],[74,123,126,140,141,167],[74,123,127,128,135,140,141,144],[74,123,128,140,141,155,163],[74,123,129,131,134,140,141,143],[74,122,123,130,140,141],[74,123,131,132,140,141],[74,123,133,134,140,141],[74,122,123,134,140,141],[74,123,134,135,136,140,141,155,166],[74,123,134,135,136,140,141,150,155,158],[74,116,123,131,134,137,140,141,143,155,166],[74,123,134,135,137,138,140,141,143,155,163,166],[74,123,137,139,140,141,155,163,166],[72,73,74,75,76,77,78,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172],[74,123,134,140,141],[74,123,140,141,142,166],[74,123,131,134,140,141,143,155],[74,123,140,141,144],[74,123,140,141,145],[74,122,123,140,141,146],[74,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172],[74,123,140,141,148],[74,123,140,141,149],[74,123,134,140,141,150,151],[74,123,140,141,150,152,167,169],[74,123,135,140,141],[74,123,134,140,141,155,156,158],[74,123,140,141,157,158],[74,123,140,141,155,156],[74,123,140,141,158],[74,123,140,141,159],[74,120,123,140,141,155,160,166],[74,123,134,140,141,161,162],[74,123,140,141,161,162],[74,123,128,140,141,143,155,163],[74,123,140,141,164],[74,123,140,141,143,165],[74,123,137,140,141,149,166],[74,123,128,140,141,167],[74,123,140,141,155,168],[74,123,140,141,142,169],[74,123,140,141,170],[74,116,123,140,141],[74,116,123,134,136,140,141,146,155,158,166,168,169,171],[74,123,140,141,155,172],[74,123,134,137,139,140,141,143,155,163,166,172,173],[74,123,140,141,173,190,191,192],[74,123,140,141,190,191],[74,123,140,141,190],[74,123,140,141,173,189],[74,123,137,138,140,141],[74,88,92,123,140,141,166],[74,88,123,140,141,155,166],[74,83,123,140,141],[74,85,88,123,140,141,163,166],[74,123,140,141,143,163],[74,123,140,141,173],[74,83,123,140,141,173],[74,85,88,123,140,141,143,166],[74,80,81,84,87,123,134,140,141,155,166],[74,88,95,123,140,141],[74,80,86,123,140,141],[74,88,109,110,123,140,141],[74,84,88,123,140,141,158,166,173],[74,109,123,140,141,173],[74,82,83,123,140,141,173],[74,88,123,140,141],[74,82,83,84,85,86,87,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,123,140,141],[74,88,103,123,140,141],[74,88,95,96,123,140,141],[74,86,88,96,97,123,140,141],[74,87,123,140,141],[74,80,83,88,123,140,141],[74,88,92,96,97,123,140,141],[74,92,123,140,141],[74,86,88,91,123,140,141,166],[74,80,85,88,95,123,140,141],[74,123,140,141,155],[74,83,88,109,123,140,141,171,173],[74,123,135,140,141,145,166,193],[58,59,60,61,62,63,64,65,66,67,68,74,123,140,141,194],[74,123,140,141,207,268],[74,123,140,141,207,267],[74,123,140,141,195,269],[74,123,140,141,269,270],[74,122,123,140,141,207,268,269,270],[74,123,140,141,287,288,293,294],[74,123,140,141,285,287],[74,123,140,141,201,206,267,275,285,286],[74,123,140,141,206,285,287,293],[74,123,140,141,206,285,286,287,288,289,290,291,292],[74,123,140,141,287],[74,123,140,141,287,288],[74,123,140,141,201],[74,123,140,141,274],[74,123,140,141,201,206,279,280,281,282],[74,123,140,141,201,206,279],[74,123,140,141,280,281,282,283,284],[74,123,137,140,141,195,206,276,277],[74,123,137,140,141,143,155,195,201,206,271,273,278,281,282],[74,123,137,140,141,155,206,276,279,280],[74,123,140,141,199,200],[74,123,140,141,196],[74,123,140,141,197,198,200],[74,123,140,141,195,199],[74,122,123,140,141,196,197,199,200],[74,123,140,141,201,202,203],[74,123,140,141,202],[74,123,140,141,202,203,204,205],[74,123,140,141,302,304,306,308,310,311],[74,123,140,141,299,300,301,302],[74,123,140,141,301,302,304,306,308,310,311],[74,123,140,141,301],[74,123,140,141,298,300,302],[74,123,140,141,297,301],[74,123,140,141,195],[74,123,140,141,201,299],[74,123,140,141,301,302],[74,122,123,140,141,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313],[74,123,140,141,301,302,304],[74,123,140,141,301,302,306],[74,123,140,141,301,302,310],[74,123,140,141,301,302,308],[74,123,140,141,302,303],[74,123,140,141,302,305],[74,123,140,141,302,309],[74,123,140,141,302,307],[74,123,140,141,195,201,206,271,273,275,295],[74,123,140,141,314],[74,123,140,141,296],[74,123,140,141,225,229],[74,123,140,141,226,229,242,243,244],[74,123,140,141,225,226,229,242,243,245],[74,123,140,141,243,244,245],[74,123,140,141,225,226],[74,123,140,141,226,237,239,240,241],[74,123,140,141,217,240],[74,123,140,141,248],[74,123,140,141,210,217,229,230],[74,123,140,141,209,210,229],[74,123,140,141,217,218],[74,123,140,141,214,215,216,222,231],[74,123,140,141,211,212,229,230],[74,123,140,141,211,212,213,229,230],[74,123,140,141,210,214,215,220,221,229,230],[74,123,140,141,209,210,211,212,213,219,229,230],[74,123,135,140,141,214,215,216,220,229],[74,123,140,141,229],[74,123,140,141,210,229,230],[74,123,140,141,213,230],[74,123,140,141,230],[74,123,140,141,209,210,230,232,233],[74,123,140,141,230,232],[74,123,140,141,209,210,213,219,230],[74,123,140,141,213,230,231,232,234,235],[74,123,140,141,227,229],[74,123,140,141,209,210,223,224,227,228,230,231],[74,123,140,141,224,226,229],[74,123,140,141,208,209,210,217,218,223,224,225,226,227,228,229,230,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266],[74,123,140,141,208,210],[74,123,140,141,209],[74,123,140,141,217],[74,123,140,141,229,230],[74,123,140,141,238],[74,123,140,141,229,230,238],[74,123,140,141,217,229,230],[74,123,140,141,267,271],[74,123,140,141,272]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"472816436c6db76434485c6257583dc150a2017733cd2e9aca9d91904584c040","fa5a1bbd7930a3aa8dbbd8ce19e89603df3daca14f080e1b7ad815d3f42408d3","e4542756b59d74ff2c036478942546e5937d35808eae08b6ae934164a7f2b97e","f369191ac0c4224b491791d2b711e0d8a29eaae730578a13c63016ee71feddb0","6fc71745fb086db4de247f9f62c7e1932d5c7c6f9d6a593feee7d76f0f2a5010","1f083bc5e8f2791b54ae5ebf69380dace5da834ecb9d37864dbe046aff3796cd","af392737db53a482cfda4c6ad3c013a62a806fe7be9e31c3b00ba3977ac39f75","565b2d44f499b7041ab79933ac8a041bdad5629dd4aec003bea4ba02a5ca1098","a527c423aeb061ecf2d971a6e3bf624880c0408bcf72a97dacf82013235e6731","ade68182d7a12c48e460596b96462aa18372bd505e8c21577445b0dc2343b6ee","04a4003ab34c3db124058179940c00f366f871d87ff1d318f13720c0b6269499",{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2bc7425ef40526650d6db7e072c1ff4a51101c3ac2cc4b666623b19496a6e27","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"0dba70b3fb0dcd713fda33c2df64fa6751fff6460e536971cee917260fb17882","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1},{"version":"46324183533e34fad2461b51174132e8e0e4b3ac1ceb5032e4952992739d1eab","impliedFormat":1},{"version":"d3fa0530dfb1df408f0abd76486de39def69ca47683d4a3529b2d22fce27c693","impliedFormat":1},{"version":"d9be977c415df16e4defe4995caeca96e637eeef9d216d0d90cdba6fc617e97e","impliedFormat":1},{"version":"98e0c2b48d855a844099123e8ec20fe383ecd1c5877f3895b048656befe268d0","impliedFormat":1},{"version":"ff53802a97b7d11ab3c4395aa052baa14cd12d2b1ed236b520a833fdd2a15003","impliedFormat":1},{"version":"fce9262f840a74118112caf685b725e1cc86cd2b0927311511113d90d87cc61e","impliedFormat":1},{"version":"d7a7cac49af2a3bfc208fe68831fbfa569864f74a7f31cc3a607f641e6c583fd","impliedFormat":1},{"version":"9a80e3322d08274f0e41b77923c91fe67b2c8a5134a5278c2cb60a330441554e","impliedFormat":1},{"version":"2460af41191009298d931c592fb6d4151beea320f1f25b73605e2211e53e4e88","impliedFormat":1},{"version":"2f87ea988d84d1c617afdeba9d151435473ab24cd5fc456510c8db26d8bd1581","impliedFormat":1},{"version":"b7336c1c536e3deaedbda956739c6250ac2d0dd171730c42cb57b10368f38a14","impliedFormat":1},{"version":"6fb67d664aaab2f1d1ad4613b58548aecb4b4703b9e4c5dba6b865b31bd14722","impliedFormat":1},{"version":"4414644199b1a047b4234965e07d189781a92b578707c79c3933918d67cd9d85","impliedFormat":1},{"version":"04a4b38c6a1682059eac00e7d0948d99c46642b57003d61d0fe9ccc9df442887","impliedFormat":1},{"version":"f12ea658b060da1752c65ae4f1e4c248587f6cd4cb4acabbf79a110b6b02ff75","impliedFormat":1},{"version":"011b2857871a878d5eae463bedc4b3dd14755dc3a67d5d10f8fbb7823d119294","impliedFormat":1},{"version":"d406b797d7b2aff9f8bd6c023acfaa5a5fc415bfbf01975e23d415d3f54857af","impliedFormat":1},{"version":"7d71b2d1a537fe41760a16441cd95d98fcb59ddf9c714aba2fecba961ab253b6","impliedFormat":1},{"version":"a9bd8a2bbd03a72054cbdf0cd2a77fabea4e3ae591dd02b8f58bda0c34e50c1c","impliedFormat":1},{"version":"386cc88a3bdee8bc651ead59f8afc9dc5729fc933549bbd217409eabad05ba3e","impliedFormat":1},"3db191719d15341432d04b4bec0767f2e52c3bf7a3b10c1869604b312ec167b3","1c558f5e6f4eeab86fff25eaa83643725ae793810f98aaf0513ed187e0157231","17be926233fbcdc26fafc190963670783b6fd0d6599514e6da7dafa36a9f303c","c6578a2cfbf3805f6fa3678a2c4ba87531de73b21b44ebf9b28363f7443ab9b7","6b2576b1abe55752930c6bd60816269ae86cc98926c40dd275cc92b5cc6cb144","f2d12830e127ca729fda42a8cf802501c76d1edf75034cefa1e3404c2d3d2d04","0f4ef1eb9f2d2e445dbc75bc2b48151006e0ece965e2443bf2da9416da5b4b2b","7d4e17170c6bcf5175fba2a917c55a7ef8c3c5ccb78edaefe65ccb679d46033c","a05355e1d9cb4d38cb6a0b160f66e5f63fdbef4891ff32ffaccfbcd97e929d05","8c6ce5c3558af5061ddd8c13f90aec6247ce3319dc997f17969a9a9eb25701e9","9dc0addfdf70a744f13ad96f68034eb65ca4fa1da2f22b7aad9f9273a4e2b6f7","1ca67d95e78d178426521e07f979c6b61b15802229a53c74ac574eefc2f1dccb","2a5cc2e143e023edd913fd53855e1e3dc9a4a4b13efc39096a97939a3f7aa803","7a9eefe55f30724d62070a7ff23762953f23ca943f91e0a2794a294de9c6889a","6dda9ed335e808d3e6c6c7913580d52cfe7b83ad7a407c30707a84ce09dbbc8d","e4f962359a5de05815e5514290f8395064286792e6797ec6d9640fa264a96816","c1cbe74128ce47317c607d3d37acdedd34517129ba52466a1f9be9e91126a153","71f6312bca202aeecf96fce2be0b540bce15ef57344cf3ca6d6b2f944bb78f76","c5d9678a302aa17e65268bf175dde4351c67a4efc63a004037852f56ee0d9537","55ab129057e401989e77e23e594c7db73d53bbfc16a89f5f9d89779976c2350d","e4b823394a10cc111c315a09b5597cb7a6411f9453ad94002a20c0033bedce6d","4af14b11b64207604b6436bfb69ea48f1c06ec49c416e07c2929a4498348f35d","ee60d55c961fe4a8fe611b264724751135a2d10f64a545a168b2ea31ec9a2710","b86c3de7f1457e96e2647f5bad29fe02165bfb48d45195912e340ce850e4b825","9614071786bdbaab336355260b20dcb079c98a4d2bdf4c7b93b971de5442f55a","fd1c37e48ed750d9b732614bec90c00c1bad40b82290dce1b399e2ef629a8ff9","78af30bd752fdc6a380c34a7d265628cf005a485c63ac07461d9f474be60cf04","c997d867e37f77fbe74923a7da826b110ef3622434fb78a16e42ebbc0e9dd5d3","7fcbd87fdac44071981d53dfd3c9486dec3e8e681faa0e8b242eb02e697505b3","eef5d49efa58f87fc8adf58af6a973229ccbf15d02c41c9c36abdd8e1acde27a","58b32bad22d6299f71b97f88711785722bb9ac07aa322b0f79b5dfb7c938cdf9","d0f90e162407dbdfb8972aaff199aff270701d2ef379822fe3d03b0137716154","3d02fb0fa562d47079043b4ce46f3f6a45c27484e19368cc79b536c9d669a3d4","cf50774c14be53de14f7e4d911fe69b87ec7648d1192f9a08f3add88a7e3959f","668de9ba46248ff77c8c42f0348c20869aff68b6914496462297fad61d83cda7","0ee6b2fad2a4ca64df11f45b9df701d7c64e742e1a72ccb9803aa7dd744c01f5","a7f5400a5c42d5c7acfd8ddd6c0d4667c7f49da74d3248b73ba9fe62920dfd86","6f55f7f113a67ae113fc7d998712bb21358e1377c7cf5927b76132f8cafd9f63","d743e9a3d80a405c55e249202037f7f462cbffb7c88074ecd2b22fc413f654e1","35104d0632ad6d2bcdea723ff70ee6aaa98b26c4edbdd1d932a61ba0caa40bd7","1eba2f2bab1412fa111c23280faa78a7e48c6c8dbf3ffc69efce33f80d81579f","760a6e6528fe846a7d6886f22c6cb6562a2749ce21649adda208f3bd50d1681f","6d6b50963f410f5ae1a3c8acd5f26a6243c4fd20c1108c2c39fcd29c924615b4","0d71d05f34f326f74f9e80035024874fb2248d35ec0dc2566a23c13b35be08b2","35b7415675495780cc215f86364ff7cb3cc7f6ccda935d0cb12fb24e40ae0b19","973ca4c71f41c7b69a1b96e0baed13d5a672f3b567ed72a993a64d04325cc47b","9caf37688cb1bf9c6ba02914afd3f8a362386eacfed3643d85544e957e8e5220","06f0c719153c13f3b5402828c27d2b06b768d0d018ee212121ba7bff104606d9","79b5337a12f42549a8434edb08ee2c519c9b38d1fa4615a25b00aab03d58340a","63f63054c8763e1f2eeff9f968d326f61582390b5b10d0f00a6d4451857b59b2","781eb690d5fe95b306ae404c36fb7729096f7de38f99b656d6669e921fcde4e9","1b9370a466bb1c2463a87fd017195959769994c02abf9c0f84eee56300b93b45","6634f2625deba5d4c035686fbbb6f41f05a8126d493e000ff494b463174b366e","c1d6d7b43436f5bff3dbc5b0b7e44dc499be5ea0b3dda5039a4be11ca698b494","da5239dff4eb02eb436ff45bc5bd7d2ddf606f22f7695c930df30b1c30fc45db","561790d37729ad9fcbda96cb56aa6b3e61ea1ba252f5e180b842b6243dc3f280","33f445524ca27f21c97501361ca8de8510028d8aca61a1bf969fcdab900f26f2","dbc92439171fb41df4c1f17e5d2b320942a7841db3bce2fae6c65c61d6c77ab5","51d9d9249aa7a5f70b80964125dac09e16831d632b55cb5463df1c4a2e00b7e8","c4f1819b3684e55a1d95cddbba72290a001823b2fdd5270a08a89ad32264bd0a","f8036ce871bd1365c6a062691c8f4ceeb421542e1338295482b6a87fbdb0d6ed","4efe99bfb1cb83d27367383d1a5172452d0443213bca41fe353ae8d50d6eece8","42a989d547ed70afb6f1087a11d5c22f91d73ce8633b6cb1a1ed2cb229c982a2","0a0c4cd99890dffd0c1b218f330c4ef39fd73354799147f832ad9ce2bf6d54c3","53095cb747500235b66215127e40722d137e5da07074e3d9cf5171e2c3058082","0569c219196e3b2b5995a3011be70f2005f4c412c73da9f01d7990c7cf32763a","04d001bf26b5faa883b2e94c9f24d81e7b40fe1f4dad9f34e91441d483a1d408","a922c76e71ae3873d4f61352f91fbfb184444bf46e68760323e3a6d546fdef4c","b4531771b1b3e3780d0b32dab9a734a538a77a1dc634e97a06aec2393655a709","b7b3395362937b230c2c2dfc7b2d7563070a832cd764d2c0ddf11119657f0469","bb4a632288522e1da530da4990d6e3e01c9a8d2aa68f307f120adb435b9a340a","6a3a277d27350eeea0c263905a156f67e894011bebccf9cb39cf30fd493b638f","8c2912684c31e117d0c249add0f5b2717046249653db137053e2dca56204a046","0422f739f406d5387be11ae697b7026042de1394d0cb00ef6de49f8a74f46f8c","1de0dc87b09b3c11d27f9e5fdf676cff3e203cda24e0a76f40dc20e3b3838005","705daa5505e9d37a40b14358b7fe64770e49e97ea8b82ddb8a5878802f6a8f9d","e634cfd449f6d80a1ac4196bf412ed10e233cd25142d4c639fa19e19736dfb58","2f718a9f89b40192ceadc7aeea5bf3f03830e9e0b75b8b5c1203a65f62d779d1","f37de70f9d35340e00aa8db22b12fc5e5ad80b7a7975231b292100e1e71f82b3","7d3b3db165c4c85bffc95c457e59b7f1db98a17ca99f041ff252f07e49e441ba","945d549e0c875b839fc667fc0da46a08f380ee1221278c67fb4a3e2ffda73ce3","e1be3803e1e93936fdf559bbeb5ae5a7e2a1bc8d223695dccf99ebc427e8c089",{"version":"26b7d0cd4b41ab557ef9e3bfeec42dcf24252843633e3d29f38d2c0b13aaa528","impliedFormat":1},{"version":"49f6e5eb1e6d34bd4a63d26294f48c046e467e9f58b5ed10943aae4cabb778da","impliedFormat":1},"2fc40c2096ab86d00440762b13044f9705bbeffc98c77726d844d9116530d0fb",{"version":"316f1486e15cbf7896425f0a16dfe12d447dd57cfb3244b8b119c77df870858f","impliedFormat":99},"ea18ed1aba0c62f4b8da5e072173e5d175d2da1cca2b8c520b84e07544dd33e1","2fe66999439b3f436f142ae7e462621c639733ea6af5cee8ebb49de849811f59","92ee0e15497ebfe454f3d942d0bc0fbdbecf5bd64ee5f3cb41b6e4744aa14660","c6b141e140f2d672135c9689604eb3cae318a7a272eef268cd59bc7119d43861","e29155c70ca5ab74aafc3825b75487aa9b003bffeb7f2796abb408462e29c350","ccb2fca8f71a0d0b37724a83c61a37693aac3f2566cf2b65329e2a1cd789890e","b25043e3429af0fe4e44fd5575ba2b29a02977c0e0462ddcbf4f0fe5ed0263ef","24da87bdbc08b4288ca1e37416d7043637daee817d75f7c775038f0002841284","f6ebb10c7ce4505002c183bf77cfa626ac03224ff2af20d53e6c8e01510956e2","dca9e95ea3ce85ef5e1c82c094ccb6ef71f70776f98026366d9aea3b5e593d7c","802640c3336a60704ab65f0d549384304ed56da3c56cd8719189d12ebd842891","64acdebd553db4f5c6bbc5a275312d1467238eeb81573dee3efcece5c14868a2","4bfe17da74f41ef1fcff6f8a1cad242636141ce1552a804958dbc0560f53126e","f6e16d27d67153540f37fac5d3bd0666f350f7ea3d95fe4f9427ca60b5b0df7f","9005fd08d0fb8fdaa38f10fabfbc7c2fb49a03e0d4801a942373281de89cf1e5","dd45d8eb8b9b4d728b6a106cd916abb052e2fdb602cf1ef6da05a4d2bd8cdf8e",{"version":"36e9b6ab697e3b5780a79b948dde8dec5fd6f92b7d6de30080c6c6e6d534a9e0","signature":"fbd8cd39f0ed8e1fc4d930e022f6d1ed641b85348035aa603455255e6bcab2e2"},"60130d926b81b48043201940904d87279e3799b43575a568f8a9653f6a753323","b0cb329a093bc089bbe319d08cc2029b292552a16239ebbb97c5db822ae0cfe2","91ec14b6fc3fa05a131e82579a33cbc9fe0b2b84aa4aff7505f0990bc8be5f97","03817ce05219ece1c00ef0143df4a3ea811062a79347b38a8a4dce10d202eb5e","67bd777e9b055a357e1834224849528c781e78663f6d48909b43c70867fdb2e6","831478d4aa389a949ab0484159ac6efd60cbad7015087d9fb4e15c5192a30c6b","38499f3569ea8a18621e5564b0088b89217c24cf51b631fc43fb700a8773298a","4657789bc539e1afbd04d2d8068bf27f4c89c6dffc7c2a0a513384b64a803a91","41a81410b5a9e0cf5153422261c0cfaeabfeac80caf9827fabaf1b0337306a10","119f2ab1cc13683ccfea921251fdbe5c0b78d5f892846345a0df610abd75661e","ac5ef43603449cf5d77e375ed6b96af2b31b459e70ab4345c9566dc3ec913b17","6baebf1b6a23ea01178ba14096e22783530a1c4b39ed8013008d29809e6e8b54","c3f37367ebfc081953f1ba955082e4d3215d10ce94c4b7c8c622f7b60ccd57dd","28622ead4168a5364deff7832b35325c44a604a96162e92de43fe1929772ab97","42ed1bdb8dbf150f150c57c53c42e7b9b696244eab5628b5922fa9a692dbcf05","72e0fa33c8e7de53d581294c5945e9fc95f9ee88e6b78c31519984354abd3a54","538a22b70a867a738dfa49715eb7325ddafd0f684a4513eea0ffb5588cdfedb0","e23e08f1416ebe03e8ca3d70f653e4d53404351d5a74084d76d59701512b6fc1",{"version":"f0df6e300c759180b23813e092881e35fd39310483ec6dce32751cc004d44e7b","signature":"c825daec45e2effa9471a9442482c043a1c5d4d18531e9bb86b096bf7ee859f6"},{"version":"131946a41220bf5d7b90578ff5072bbf8b884a3710adb053de267966485f5e3b","signature":"222ea5606d3e6602053f004d3c71f45ed76c83a4d0addaec953ca85043a8ca0b"}],"root":[296,315,316],"options":{"allowJs":false,"checkJs":false,"composite":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":99,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":false,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"target":9},"referencedMap":[[180,1],[183,2],[182,3],[181,4],[179,5],[175,6],[178,7],[177,8],[176,9],[174,5],[189,10],[188,11],[187,12],[186,13],[185,14],[184,15],[276,16],[120,17],[121,17],[122,18],[74,19],[123,20],[124,21],[125,22],[69,23],[72,24],[70,23],[71,23],[126,25],[127,26],[128,27],[129,28],[130,29],[131,30],[132,30],[133,31],[134,32],[135,33],[136,34],[75,23],[73,23],[137,35],[138,36],[139,37],[173,38],[140,39],[141,23],[142,40],[143,41],[144,42],[145,43],[146,44],[147,45],[148,46],[149,47],[150,48],[151,48],[152,49],[153,23],[154,50],[155,51],[157,52],[156,53],[158,54],[159,55],[160,56],[161,57],[162,58],[163,59],[164,60],[165,61],[166,62],[167,63],[168,64],[169,65],[170,66],[76,23],[77,23],[78,23],[117,67],[118,23],[119,23],[171,68],[172,69],[279,70],[79,23],[193,71],[192,72],[191,73],[190,74],[277,75],[56,23],[57,23],[11,23],[10,23],[2,23],[12,23],[13,23],[14,23],[15,23],[16,23],[17,23],[18,23],[19,23],[3,23],[20,23],[21,23],[4,23],[22,23],[26,23],[23,23],[24,23],[25,23],[27,23],[28,23],[29,23],[5,23],[30,23],[31,23],[32,23],[33,23],[6,23],[37,23],[34,23],[35,23],[36,23],[38,23],[7,23],[39,23],[44,23],[45,23],[40,23],[41,23],[42,23],[43,23],[8,23],[49,23],[46,23],[47,23],[48,23],[50,23],[9,23],[51,23],[52,23],[53,23],[55,23],[54,23],[1,23],[95,76],[105,77],[94,76],[115,78],[86,79],[85,80],[114,81],[108,82],[113,83],[88,84],[102,85],[87,86],[111,87],[83,88],[82,81],[112,89],[84,90],[89,91],[90,23],[93,91],[80,23],[116,92],[106,93],[97,94],[98,95],[100,96],[96,97],[99,98],[109,81],[91,99],[92,100],[101,101],[81,102],[104,93],[103,91],[107,23],[110,103],[59,23],[58,23],[67,23],[68,23],[61,23],[194,104],[64,23],[195,105],[65,23],[66,23],[63,23],[62,23],[60,23],[269,106],[268,107],[270,108],[207,109],[271,110],[295,111],[286,112],[287,113],[294,114],[293,115],[288,116],[289,117],[290,117],[291,117],[292,117],[274,118],[275,119],[284,120],[280,121],[282,23],[285,122],[278,123],[283,124],[281,125],[196,126],[197,127],[199,128],[198,23],[200,129],[201,130],[204,131],[203,132],[205,18],[206,133],[202,23],[312,134],[311,135],[313,136],[302,137],[301,138],[298,139],[297,140],[300,141],[299,142],[314,143],[303,144],[305,145],[309,146],[307,147],[304,148],[306,149],[310,150],[308,151],[296,152],[315,153],[316,154],[226,155],[245,156],[244,157],[246,158],[243,159],[225,23],[242,160],[265,161],[257,161],[258,161],[262,161],[259,162],[264,161],[260,162],[266,161],[261,162],[263,163],[230,164],[219,165],[223,166],[215,167],[221,168],[214,168],[222,169],[216,167],[220,170],[247,171],[211,172],[212,23],[231,173],[232,174],[213,175],[234,176],[235,177],[233,178],[236,179],[228,180],[229,181],[227,182],[267,183],[209,184],[208,185],[210,185],[217,185],[218,186],[224,23],[241,187],[237,187],[250,187],[249,187],[254,187],[253,188],[238,187],[248,187],[239,189],[255,187],[240,190],[256,187],[251,187],[252,187],[272,191],[273,192]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316],"checkPending":true,"version":"5.9.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@grest-ts/runtime",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "Service bootstrap and lifecycle management utilities",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/src/index-node.d.ts",
|
|
10
|
+
"import": "./dist/src/index-node.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"src"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"typecheck": "tsc --noEmit -p src"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/grest-ts/grest-ts.git",
|
|
26
|
+
"directory": "packages/runtime"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/grest-ts/grest-ts/tree/master/packages/runtime",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/grest-ts/grest-ts/issues"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"typescript",
|
|
34
|
+
"framework",
|
|
35
|
+
"contract",
|
|
36
|
+
"api",
|
|
37
|
+
"microservices",
|
|
38
|
+
"testing",
|
|
39
|
+
"runtime",
|
|
40
|
+
"bootstrap",
|
|
41
|
+
"lifecycle"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=22"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@grest-ts/common": "0.0.5",
|
|
48
|
+
"@grest-ts/context": "0.0.5",
|
|
49
|
+
"@grest-ts/discovery": "0.0.5",
|
|
50
|
+
"@grest-ts/discovery-local": "0.0.5",
|
|
51
|
+
"@grest-ts/locator": "0.0.5",
|
|
52
|
+
"@grest-ts/logger": "0.0.5",
|
|
53
|
+
"@grest-ts/metrics": "0.0.5",
|
|
54
|
+
"@grest-ts/trace": "0.0.5"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@grest-ts/x-packager": "0.0.5"
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/GGRuntime.ts
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import {withTimeout} from "@grest-ts/common";
|
|
2
|
+
import {GGLog} from "@grest-ts/logger";
|
|
3
|
+
import {GGLocator, GGLocatorLifecycleCallbacks, GGLocatorScope} from "@grest-ts/locator";
|
|
4
|
+
import {GGContext} from "@grest-ts/context";
|
|
5
|
+
import {GG_TRACE} from "@grest-ts/trace";
|
|
6
|
+
import {GG_DISCOVERY} from "@grest-ts/discovery";
|
|
7
|
+
|
|
8
|
+
export interface GGRuntimeConfig {
|
|
9
|
+
shutdownTimeoutMs?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum GGRuntimeState {
|
|
13
|
+
CREATED = 0,
|
|
14
|
+
BOOTSTRAPPING = 1,
|
|
15
|
+
COMPOSING = 2,
|
|
16
|
+
STARTING = 3,
|
|
17
|
+
RUNNING = 4,
|
|
18
|
+
STOPPING = 5,
|
|
19
|
+
STOPPED = 6,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export abstract class GGRuntime {
|
|
23
|
+
|
|
24
|
+
declare public static readonly NAME: string;
|
|
25
|
+
|
|
26
|
+
public static SOURCE_MODULE_URL?: string;
|
|
27
|
+
|
|
28
|
+
public readonly name: string;
|
|
29
|
+
public readonly scope: GGLocatorScope;
|
|
30
|
+
|
|
31
|
+
private readonly runtimeConfig: GGRuntimeConfig;
|
|
32
|
+
private readonly services: GGLocatorLifecycleCallbacks[][] = [];
|
|
33
|
+
private state: GGRuntimeState = GGRuntimeState.CREATED
|
|
34
|
+
|
|
35
|
+
public constructor() {
|
|
36
|
+
this.name = (this.constructor as any).NAME;
|
|
37
|
+
if (!this.name) {
|
|
38
|
+
throw new Error(`"${this.constructor.name}" must define static NAME property!\n
|
|
39
|
+
Just add 'public static readonly NAME = "MyRuntime";' to your class definition.`)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
this.runtimeConfig = {
|
|
43
|
+
shutdownTimeoutMs: 10000,
|
|
44
|
+
};
|
|
45
|
+
const scopeName = this.constructor.name + "[" + this.name + "]";
|
|
46
|
+
if (GGLocator.hasScope()) {
|
|
47
|
+
// This most likely means we are running in the test worker. It has already configured a few things.
|
|
48
|
+
this.scope = GGLocator.getScope().branch(scopeName, this.name);
|
|
49
|
+
} else {
|
|
50
|
+
// Standalone running, we need to fully configure everything.
|
|
51
|
+
this.scope = new GGLocatorScope(scopeName, undefined, this.name);
|
|
52
|
+
GGLog.init(this.scope)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* CLI entry point for runtime files.
|
|
58
|
+
*
|
|
59
|
+
* Call this at the end of your runtime file:
|
|
60
|
+
* ```typescript
|
|
61
|
+
* class MyRuntime extends GGRuntime { ... }
|
|
62
|
+
* MyRuntime.cli(import.meta.url);
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* When the file is run directly (not imported), this starts the runtime.
|
|
66
|
+
*/
|
|
67
|
+
public static async cli<T extends GGRuntime>(
|
|
68
|
+
this: new() => T,
|
|
69
|
+
moduleUrl: string,
|
|
70
|
+
): Promise<void> {
|
|
71
|
+
(this as unknown as typeof GGRuntime).SOURCE_MODULE_URL = moduleUrl;
|
|
72
|
+
|
|
73
|
+
const modulePath = moduleUrl.replace('file:///', '').replace(/\//g, '\\');
|
|
74
|
+
const argPath = process.argv[1]?.replace(/\//g, '\\');
|
|
75
|
+
|
|
76
|
+
const isMain = argPath && (
|
|
77
|
+
modulePath === argPath ||
|
|
78
|
+
modulePath.endsWith(argPath) ||
|
|
79
|
+
argPath.endsWith(modulePath.split('\\').pop() || '')
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
if (isMain) {
|
|
83
|
+
await new this().start()
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
protected abstract compose(): void | Promise<void>;
|
|
88
|
+
|
|
89
|
+
public async start(): Promise<this> {
|
|
90
|
+
await this.scope.run(async () => {
|
|
91
|
+
if (this.state !== GGRuntimeState.CREATED) {
|
|
92
|
+
throw new Error("Runtime already started!");
|
|
93
|
+
}
|
|
94
|
+
this.state = GGRuntimeState.BOOTSTRAPPING;
|
|
95
|
+
await new GGContext("Runtime").run(async () => {
|
|
96
|
+
GG_TRACE.init();
|
|
97
|
+
// GGLog.info(this, "Runtime starting");
|
|
98
|
+
try {
|
|
99
|
+
process.on('SIGTERM', () => this.teardown(true));
|
|
100
|
+
process.on('SIGINT', () => this.teardown(true));
|
|
101
|
+
this.state = GGRuntimeState.COMPOSING;
|
|
102
|
+
// GGLog.info(this, "Composing services...");
|
|
103
|
+
|
|
104
|
+
// Enable service registration during compose
|
|
105
|
+
this.scope.setLifecycleOwner((lifecycle) => {
|
|
106
|
+
if (!this.services[lifecycle.type]) {
|
|
107
|
+
this.services[lifecycle.type] = [];
|
|
108
|
+
}
|
|
109
|
+
this.services[lifecycle.type].push(lifecycle);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
await this.compose();
|
|
113
|
+
|
|
114
|
+
// Set up service discovery for test/local etc. (if service has not setup its own discovery)
|
|
115
|
+
if (process.env.NODE_ENV !== "production" && !GG_DISCOVERY.has()) {
|
|
116
|
+
// Inline import, we don't want these to get into production. (built version).
|
|
117
|
+
const {GG_LOCAL_ROUTER_PORT, GGLocalDiscoveryClient, GGLocalDiscoveryResilientClient} = await import("@grest-ts/discovery-local");
|
|
118
|
+
if (process.env[GG_LOCAL_ROUTER_PORT]) {
|
|
119
|
+
new GGLocalDiscoveryClient(Number(process.env[GG_LOCAL_ROUTER_PORT]));
|
|
120
|
+
} else {
|
|
121
|
+
new GGLocalDiscoveryResilientClient();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Disable registration - any later calls will throw
|
|
126
|
+
this.scope.setLifecycleOwner(undefined);
|
|
127
|
+
Object.freeze(this.services);
|
|
128
|
+
for (let i = 0; i < this.services.length; i++) {
|
|
129
|
+
if (this.services[i]) Object.freeze(this.services[i]);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
GGLog.info(this, "Starting...");
|
|
133
|
+
this.state = GGRuntimeState.STARTING;
|
|
134
|
+
await this.callStartHandlers();
|
|
135
|
+
this.state = GGRuntimeState.RUNNING;
|
|
136
|
+
GGLog.info(this, "Runtime running");
|
|
137
|
+
} catch (err) {
|
|
138
|
+
this.scope.setLifecycleOwner(undefined);
|
|
139
|
+
GGLog.error(this, err);
|
|
140
|
+
await this.callTeardownCallbacks();
|
|
141
|
+
this.state = GGRuntimeState.STOPPED;
|
|
142
|
+
throw err;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
})
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
private async callStartHandlers(): Promise<void> {
|
|
150
|
+
const startedServices: GGLocatorLifecycleCallbacks[] = [];
|
|
151
|
+
try {
|
|
152
|
+
for (let i = 0; i < this.services.length; i++) {
|
|
153
|
+
if (!this.services[i]) continue;
|
|
154
|
+
const startPromises = this.services[i].map(async (service) => {
|
|
155
|
+
try {
|
|
156
|
+
GGLog.info(this, "Starting service P" + service.type);
|
|
157
|
+
await service.start();
|
|
158
|
+
startedServices.push(service);
|
|
159
|
+
} catch (error) {
|
|
160
|
+
throw error;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
const results = await Promise.allSettled(startPromises);
|
|
165
|
+
const failed = results.filter((r): r is PromiseRejectedResult => r.status === 'rejected');
|
|
166
|
+
if (failed.length > 0) {
|
|
167
|
+
throw failed[0].reason;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
} catch (error) {
|
|
171
|
+
GGLog.error(this, "Service startup failed, cleaning up already-started services...");
|
|
172
|
+
for (let i = startedServices.length - 1; i >= 0; i--) {
|
|
173
|
+
try {
|
|
174
|
+
GGLog.info(this, "Cleaning up service");
|
|
175
|
+
await startedServices[i]?.teardown?.();
|
|
176
|
+
} catch (error) {
|
|
177
|
+
GGLog.error(this, "Failed to cleanup", error);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
throw error;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
public async teardown(exit: boolean = false) {
|
|
185
|
+
await this.scope.run(async () => {
|
|
186
|
+
if (this.state === GGRuntimeState.STOPPING || this.state === GGRuntimeState.STOPPED) {
|
|
187
|
+
GGLog.warn(this, "Shutdown already in progress");
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
await new GGContext("Runtime").run(async () => {
|
|
191
|
+
GG_TRACE.init();
|
|
192
|
+
this.state = GGRuntimeState.STOPPING;
|
|
193
|
+
GGLog.info(this, "Gracefully shutting down");
|
|
194
|
+
await withTimeout(this.callTeardownCallbacks(), this.runtimeConfig.shutdownTimeoutMs, `Shutdown timeout after ${this.runtimeConfig.shutdownTimeoutMs}ms, forcing exit`)
|
|
195
|
+
GGLog.info(this, "Shutdown complete");
|
|
196
|
+
this.state = GGRuntimeState.STOPPED;
|
|
197
|
+
if (exit === true) {
|
|
198
|
+
process.exit(0);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
private async callTeardownCallbacks(): Promise<void> {
|
|
205
|
+
for (let i = this.services.length - 1; i >= 0; i--) {
|
|
206
|
+
if (!this.services[i]) continue;
|
|
207
|
+
const teardownPromises = this.services[i].map(async (service) => {
|
|
208
|
+
GGLog.info(this, "Tearing down service P" + service.type);
|
|
209
|
+
if (!service.teardown) return;
|
|
210
|
+
try {
|
|
211
|
+
await service.teardown();
|
|
212
|
+
} catch (error) {
|
|
213
|
+
GGLog.error(this, error as Error);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
await Promise.allSettled(teardownPromises);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {GGMetrics} from "@grest-ts/metrics";
|
|
2
|
+
import {GGGaugeKey} from "@grest-ts/metrics";
|
|
3
|
+
import {GGLazyGaugeKey} from "@grest-ts/metrics";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Runtime-level metrics for process monitoring.
|
|
7
|
+
* Uses lazy gauges for values that should be computed on read.
|
|
8
|
+
*/
|
|
9
|
+
export const GGRuntimeMetrics = GGMetrics.define('/runtime/', () => ({
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Unix timestamp (in seconds) when the process started.
|
|
13
|
+
* Set once at process startup. Uptime = now - startTime.
|
|
14
|
+
*/
|
|
15
|
+
startTime: new GGGaugeKey<{}>('start_time_seconds', {
|
|
16
|
+
help: 'Unix timestamp when the process started'
|
|
17
|
+
}),
|
|
18
|
+
|
|
19
|
+
memory: {
|
|
20
|
+
/**
|
|
21
|
+
* V8 heap memory currently in use (bytes).
|
|
22
|
+
*/
|
|
23
|
+
heapUsed: new GGLazyGaugeKey('memory_heap_used_bytes', {
|
|
24
|
+
help: 'V8 heap memory used in bytes',
|
|
25
|
+
getValue: () => process.memoryUsage().heapUsed
|
|
26
|
+
}),
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Total V8 heap memory allocated (bytes).
|
|
30
|
+
*/
|
|
31
|
+
heapTotal: new GGLazyGaugeKey('memory_heap_total_bytes', {
|
|
32
|
+
help: 'V8 heap memory total in bytes',
|
|
33
|
+
getValue: () => process.memoryUsage().heapTotal
|
|
34
|
+
}),
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Resident Set Size - total memory allocated for the process (bytes).
|
|
38
|
+
*/
|
|
39
|
+
rss: new GGLazyGaugeKey('memory_rss_bytes', {
|
|
40
|
+
help: 'Resident Set Size in bytes',
|
|
41
|
+
getValue: () => process.memoryUsage().rss
|
|
42
|
+
}),
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Memory used by C++ objects bound to JavaScript objects managed by V8.
|
|
46
|
+
*/
|
|
47
|
+
external: new GGLazyGaugeKey('memory_external_bytes', {
|
|
48
|
+
help: 'V8 external memory in bytes',
|
|
49
|
+
getValue: () => process.memoryUsage().external
|
|
50
|
+
}),
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Memory allocated for ArrayBuffers and SharedArrayBuffers.
|
|
54
|
+
*/
|
|
55
|
+
arrayBuffers: new GGLazyGaugeKey('memory_array_buffers_bytes', {
|
|
56
|
+
help: 'Memory allocated for ArrayBuffers in bytes',
|
|
57
|
+
getValue: () => process.memoryUsage().arrayBuffers
|
|
58
|
+
}),
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Number of active handles (timers, sockets, etc.) keeping the event loop alive.
|
|
63
|
+
*/
|
|
64
|
+
activeHandles: new GGLazyGaugeKey('active_handles', {
|
|
65
|
+
help: 'Number of active handles keeping the event loop alive',
|
|
66
|
+
getValue: () => (process as any)._getActiveHandles?.()?.length ?? 0
|
|
67
|
+
}),
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Number of active requests (pending async operations).
|
|
71
|
+
*/
|
|
72
|
+
activeRequests: new GGLazyGaugeKey('active_requests', {
|
|
73
|
+
help: 'Number of active async requests',
|
|
74
|
+
getValue: () => (process as any)._getActiveRequests?.()?.length ?? 0
|
|
75
|
+
}),
|
|
76
|
+
|
|
77
|
+
}));
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Initialize runtime metrics - sets the start time.
|
|
81
|
+
* Should be called once at process/runtime startup.
|
|
82
|
+
*/
|
|
83
|
+
export function initRuntimeMetrics(): void {
|
|
84
|
+
GGRuntimeMetrics.startTime.set(Math.floor(Date.now() / 1000));
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GGRuntime'
|