@tramvai/tokens-metrics 1.38.0 → 1.41.2
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/README.md +2 -2
- package/lib/index.d.ts +3 -4
- package/lib/index.es.js +3 -4
- package/lib/index.js +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Metrics tokens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Tramvai tokens for integration and extension [metric module](references/modules/metrics.md).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Tokens list
|
|
6
6
|
|
|
7
7
|
@inline src/index.ts
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ interface Metrics {
|
|
|
8
8
|
export { Counter, Gauge, Histogram, Summary, Metrics };
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
11
|
-
*
|
|
11
|
+
* Metric module implementation
|
|
12
12
|
*/
|
|
13
13
|
export declare const METRICS_MODULE_TOKEN: Metrics;
|
|
14
14
|
export interface MetricsServicesRegistryInterface {
|
|
@@ -18,12 +18,11 @@ export interface MetricsServicesRegistryInterface {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @description
|
|
21
|
-
*
|
|
21
|
+
* Utility for pointing out to metric module which service name to set for different requests
|
|
22
22
|
*/
|
|
23
23
|
export declare const METRICS_SERVICES_REGISTRY_TOKEN: MetricsServicesRegistryInterface;
|
|
24
24
|
/**
|
|
25
25
|
* @description
|
|
26
|
-
*
|
|
27
|
-
* запрос papi роута
|
|
26
|
+
* Token for registering counter metric which can be incremented with POST papi request
|
|
28
27
|
*/
|
|
29
28
|
export declare const REGISTER_INSTANT_METRIC_TOKEN: [string, Counter<string>];
|
package/lib/index.es.js
CHANGED
|
@@ -2,18 +2,17 @@ import { createToken } from '@tinkoff/dippy';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
|
-
*
|
|
5
|
+
* Metric module implementation
|
|
6
6
|
*/
|
|
7
7
|
const METRICS_MODULE_TOKEN = createToken('metricsModule');
|
|
8
8
|
/**
|
|
9
9
|
* @description
|
|
10
|
-
*
|
|
10
|
+
* Utility for pointing out to metric module which service name to set for different requests
|
|
11
11
|
*/
|
|
12
12
|
const METRICS_SERVICES_REGISTRY_TOKEN = createToken('metricsServicesRegistry');
|
|
13
13
|
/**
|
|
14
14
|
* @description
|
|
15
|
-
*
|
|
16
|
-
* запрос papi роута
|
|
15
|
+
* Token for registering counter metric which can be incremented with POST papi request
|
|
17
16
|
*/
|
|
18
17
|
const REGISTER_INSTANT_METRIC_TOKEN = createToken('registerInstantMetric');
|
|
19
18
|
|
package/lib/index.js
CHANGED
|
@@ -6,18 +6,17 @@ var dippy = require('@tinkoff/dippy');
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @description
|
|
9
|
-
*
|
|
9
|
+
* Metric module implementation
|
|
10
10
|
*/
|
|
11
11
|
const METRICS_MODULE_TOKEN = dippy.createToken('metricsModule');
|
|
12
12
|
/**
|
|
13
13
|
* @description
|
|
14
|
-
*
|
|
14
|
+
* Utility for pointing out to metric module which service name to set for different requests
|
|
15
15
|
*/
|
|
16
16
|
const METRICS_SERVICES_REGISTRY_TOKEN = dippy.createToken('metricsServicesRegistry');
|
|
17
17
|
/**
|
|
18
18
|
* @description
|
|
19
|
-
*
|
|
20
|
-
* запрос papi роута
|
|
19
|
+
* Token for registering counter metric which can be incremented with POST papi request
|
|
21
20
|
*/
|
|
22
21
|
const REGISTER_INSTANT_METRIC_TOKEN = dippy.createToken('registerInstantMetric');
|
|
23
22
|
|