@tramvai/module-metrics 2.11.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.es.js +3 -3
- package/lib/server.js +2 -2
- package/package.json +16 -16
package/lib/server.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from 'tslib';
|
|
2
2
|
import { Module, commandLineListTokens, Scope, provide } from '@tramvai/core';
|
|
3
3
|
import { SERVER_MODULE_PAPI_PUBLIC_ROUTE, UTILITY_SERVER_PATHS } from '@tramvai/tokens-server';
|
|
4
|
-
import { WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, UTILITY_WEB_FASTIFY_APP_TOKEN,
|
|
4
|
+
import { WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, UTILITY_WEB_FASTIFY_APP_TOKEN, WEB_FASTIFY_APP_METRICS_TOKEN, WEB_FASTIFY_APP_TOKEN } from '@tramvai/tokens-server-private';
|
|
5
5
|
import { METRICS_MODULE_TOKEN, METRICS_SERVICES_REGISTRY_TOKEN, METRICS_MODULE_CONFIG_TOKEN, REGISTER_INSTANT_METRIC_TOKEN } from '@tramvai/tokens-metrics';
|
|
6
6
|
export * from '@tramvai/tokens-metrics';
|
|
7
7
|
import { fastifyMeasureRequests } from '@tinkoff/measure-fastify-requests';
|
|
@@ -503,7 +503,7 @@ MetricsModule = __decorate([
|
|
|
503
503
|
multi: true,
|
|
504
504
|
}),
|
|
505
505
|
provide({
|
|
506
|
-
provide:
|
|
506
|
+
provide: WEB_FASTIFY_APP_METRICS_TOKEN,
|
|
507
507
|
useFactory: ({ app, metrics, additionalLabelNamesList, getAdditionalLabelValuesList, httpRequestsDurationBuckets, metricsExcludePaths, }) => {
|
|
508
508
|
return async () => {
|
|
509
509
|
await app.register(fastifyMeasureRequests, {
|
|
@@ -525,7 +525,7 @@ MetricsModule = __decorate([
|
|
|
525
525
|
},
|
|
526
526
|
deps: {
|
|
527
527
|
metrics: METRICS_MODULE_TOKEN,
|
|
528
|
-
app:
|
|
528
|
+
app: WEB_FASTIFY_APP_TOKEN,
|
|
529
529
|
additionalLabelNamesList: {
|
|
530
530
|
token: 'additionalLabelNames',
|
|
531
531
|
multi: true,
|
package/lib/server.js
CHANGED
|
@@ -516,7 +516,7 @@ exports.MetricsModule = tslib.__decorate([
|
|
|
516
516
|
multi: true,
|
|
517
517
|
}),
|
|
518
518
|
core.provide({
|
|
519
|
-
provide: tokensServerPrivate.
|
|
519
|
+
provide: tokensServerPrivate.WEB_FASTIFY_APP_METRICS_TOKEN,
|
|
520
520
|
useFactory: ({ app, metrics, additionalLabelNamesList, getAdditionalLabelValuesList, httpRequestsDurationBuckets, metricsExcludePaths, }) => {
|
|
521
521
|
return async () => {
|
|
522
522
|
await app.register(measureFastifyRequests.fastifyMeasureRequests, {
|
|
@@ -538,7 +538,7 @@ exports.MetricsModule = tslib.__decorate([
|
|
|
538
538
|
},
|
|
539
539
|
deps: {
|
|
540
540
|
metrics: tokensMetrics.METRICS_MODULE_TOKEN,
|
|
541
|
-
app: tokensServerPrivate.
|
|
541
|
+
app: tokensServerPrivate.WEB_FASTIFY_APP_TOKEN,
|
|
542
542
|
additionalLabelNamesList: {
|
|
543
543
|
token: 'additionalLabelNames',
|
|
544
544
|
multi: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-metrics",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tramvai/core": "2.
|
|
23
|
-
"@tramvai/tokens-server": "2.
|
|
24
|
-
"@tramvai/tokens-server-private": "2.
|
|
25
|
-
"@tramvai/tokens-metrics": "2.
|
|
26
|
-
"@tramvai/tokens-router": "2.
|
|
27
|
-
"@tramvai/module-common": "2.
|
|
28
|
-
"@tramvai/tokens-http-client": "2.
|
|
29
|
-
"@tramvai/state": "2.
|
|
30
|
-
"@tramvai/papi": "2.
|
|
31
|
-
"@tinkoff/measure-fastify-requests": "0.
|
|
32
|
-
"@tinkoff/monkeypatch": "
|
|
33
|
-
"@tinkoff/url": "0.
|
|
22
|
+
"@tramvai/core": "2.21.0",
|
|
23
|
+
"@tramvai/tokens-server": "2.21.0",
|
|
24
|
+
"@tramvai/tokens-server-private": "2.21.0",
|
|
25
|
+
"@tramvai/tokens-metrics": "2.21.0",
|
|
26
|
+
"@tramvai/tokens-router": "2.21.0",
|
|
27
|
+
"@tramvai/module-common": "2.21.0",
|
|
28
|
+
"@tramvai/tokens-http-client": "2.21.0",
|
|
29
|
+
"@tramvai/state": "2.21.0",
|
|
30
|
+
"@tramvai/papi": "2.21.0",
|
|
31
|
+
"@tinkoff/measure-fastify-requests": "0.1.2",
|
|
32
|
+
"@tinkoff/monkeypatch": "2.0.2",
|
|
33
|
+
"@tinkoff/url": "0.8.2",
|
|
34
34
|
"@tinkoff/utils": "^2.1.2",
|
|
35
35
|
"prom-client": "^12.0.0",
|
|
36
|
-
"@tinkoff/logger": "0.10.
|
|
37
|
-
"@tinkoff/metrics-noop": "
|
|
38
|
-
"@tinkoff/browser-timings": "0.
|
|
36
|
+
"@tinkoff/logger": "0.10.51",
|
|
37
|
+
"@tinkoff/metrics-noop": "2.0.2",
|
|
38
|
+
"@tinkoff/browser-timings": "0.10.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"tslib": "^2.0.3"
|