@toa.io/extensions.telemetry 1.0.0-alpha.299 → 1.0.0-alpha.301
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 +6 -5
- package/transpiled/extension.d.ts +13 -2
- package/transpiled/extension.js +11 -13
- package/transpiled/extension.js.map +1 -1
- package/transpiled/index.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/extensions.telemetry",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.301",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa Telemetry extension",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -29,9 +29,10 @@
|
|
|
29
29
|
"transpile": "tsc"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@toa.io/
|
|
33
|
-
"@toa.io/
|
|
34
|
-
"
|
|
32
|
+
"@toa.io/core": "1.0.0-alpha.301",
|
|
33
|
+
"@toa.io/definitions": "1.0.0-alpha.301",
|
|
34
|
+
"@toa.io/generic": "1.0.0-alpha.301",
|
|
35
|
+
"openspan": "1.0.0-alpha.301"
|
|
35
36
|
},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "cc49bc90efd35464b2ad7803246786c607a44685"
|
|
37
38
|
}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Locator } from '@toa.io/core';
|
|
2
2
|
import type { extensions } from '@toa.io/core/types';
|
|
3
|
+
type Resident = extensions.Resident;
|
|
3
4
|
export declare class Factory implements extensions.Factory {
|
|
4
5
|
private readonly logsOptions;
|
|
5
6
|
private readonly ready;
|
|
6
7
|
constructor();
|
|
7
8
|
aspect(locator: Locator): extensions.Aspect[];
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The probe answers for the process, so it is the process it belongs to — and not whichever
|
|
11
|
+
* composition happens to be nearest, which in a service is the one nested inside it. That is
|
|
12
|
+
* why the explorer reported ready when the components it hosts connected rather than when
|
|
13
|
+
* the explorer did, and why the gateway carries a probe of its own to work around it.
|
|
14
|
+
*
|
|
15
|
+
* It binds before the process is built and answers `503` until `complete()`, which is the
|
|
16
|
+
* phase the `connect` this used to patch was standing in for.
|
|
17
|
+
*/
|
|
18
|
+
resident(): Resident | null;
|
|
9
19
|
private createLogs;
|
|
10
20
|
}
|
|
21
|
+
export {};
|
package/transpiled/extension.js
CHANGED
|
@@ -27,19 +27,17 @@ export class Factory {
|
|
|
27
27
|
const span = new Span(locator);
|
|
28
28
|
return [logs, span];
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
return composition;
|
|
30
|
+
/**
|
|
31
|
+
* The probe answers for the process, so it is the process it belongs to — and not whichever
|
|
32
|
+
* composition happens to be nearest, which in a service is the one nested inside it. That is
|
|
33
|
+
* why the explorer reported ready when the components it hosts connected rather than when
|
|
34
|
+
* the explorer did, and why the gateway carries a probe of its own to work around it.
|
|
35
|
+
*
|
|
36
|
+
* It binds before the process is built and answers `503` until `complete()`, which is the
|
|
37
|
+
* phase the `connect` this used to patch was standing in for.
|
|
38
|
+
*/
|
|
39
|
+
resident() {
|
|
40
|
+
return this.ready;
|
|
43
41
|
}
|
|
44
42
|
createLogs(locator) {
|
|
45
43
|
const overEnv = environment.get(`${LOGS_PREFIX}_${locator.uppercase}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../source/extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM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MAAM,KAAK,GACT,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,GAAG,CAAA;IAEjF,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;AACpD,CAAC"}
|
package/transpiled/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './extension.
|
|
2
|
-
export * from './Ready.
|
|
3
|
-
export type * from './aspects.
|
|
1
|
+
export * from './extension.ts';
|
|
2
|
+
export * from './Ready.ts';
|
|
3
|
+
export type * from './aspects.ts';
|