@tramvai/tokens-metrics 2.56.1 → 2.56.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/lib/index.d.ts +12 -4
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export { Counter, Gauge, Histogram, Summary, Metrics };
|
|
|
13
13
|
* @description
|
|
14
14
|
* Metric module implementation
|
|
15
15
|
*/
|
|
16
|
-
export declare const METRICS_MODULE_TOKEN:
|
|
16
|
+
export declare const METRICS_MODULE_TOKEN: Metrics & {
|
|
17
|
+
__type?: "base token" | undefined;
|
|
18
|
+
};
|
|
17
19
|
export interface MetricsServicesRegistryInterface {
|
|
18
20
|
register(url: string, serviceName: string): void;
|
|
19
21
|
registerEnv(env: Record<string, unknown>): void;
|
|
@@ -23,14 +25,20 @@ export interface MetricsServicesRegistryInterface {
|
|
|
23
25
|
* @description
|
|
24
26
|
* Utility for pointing out to metric module which service name to set for different requests
|
|
25
27
|
*/
|
|
26
|
-
export declare const METRICS_SERVICES_REGISTRY_TOKEN:
|
|
28
|
+
export declare const METRICS_SERVICES_REGISTRY_TOKEN: MetricsServicesRegistryInterface & {
|
|
29
|
+
__type?: "base token" | undefined;
|
|
30
|
+
};
|
|
27
31
|
/**
|
|
28
32
|
* @description
|
|
29
33
|
* Token for registering counter metric which can be incremented with POST papi request
|
|
30
34
|
*/
|
|
31
|
-
export declare const REGISTER_INSTANT_METRIC_TOKEN:
|
|
35
|
+
export declare const REGISTER_INSTANT_METRIC_TOKEN: [string, Counter<string>] & {
|
|
36
|
+
__type?: "base token" | undefined;
|
|
37
|
+
};
|
|
32
38
|
/**
|
|
33
39
|
* @description
|
|
34
40
|
* Configuration for the metrics
|
|
35
41
|
*/
|
|
36
|
-
export declare const METRICS_MODULE_CONFIG_TOKEN:
|
|
42
|
+
export declare const METRICS_MODULE_CONFIG_TOKEN: ModuleConfig & {
|
|
43
|
+
__type?: "base token" | undefined;
|
|
44
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-metrics",
|
|
3
|
-
"version": "2.56.
|
|
3
|
+
"version": "2.56.5",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-metrics",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prom-client": "^12.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tinkoff/dippy": "0.8.
|
|
25
|
+
"@tinkoff/dippy": "0.8.11",
|
|
26
26
|
"tslib": "^2.4.0"
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0"
|