@tramvai/module-metrics 2.7.1 → 2.20.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 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, WEB_FASTIFY_APP_INIT_TOKEN } from '@tramvai/tokens-server-private';
4
+ import { WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, UTILITY_WEB_FASTIFY_APP_TOKEN, WEB_FASTIFY_APP_METRICS_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: WEB_FASTIFY_APP_INIT_TOKEN,
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, {
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.WEB_FASTIFY_APP_INIT_TOKEN,
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-metrics",
3
- "version": "2.7.1",
3
+ "version": "2.20.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.7.1",
23
- "@tramvai/tokens-server": "2.7.1",
24
- "@tramvai/tokens-server-private": "2.7.1",
25
- "@tramvai/tokens-metrics": "2.7.1",
26
- "@tramvai/tokens-router": "2.7.1",
27
- "@tramvai/module-common": "2.7.1",
28
- "@tramvai/tokens-http-client": "2.7.1",
29
- "@tramvai/state": "2.7.1",
30
- "@tramvai/papi": "2.7.1",
31
- "@tinkoff/measure-fastify-requests": "0.0.4",
32
- "@tinkoff/monkeypatch": "1.3.5",
33
- "@tinkoff/url": "0.7.39",
22
+ "@tramvai/core": "2.20.0",
23
+ "@tramvai/tokens-server": "2.20.0",
24
+ "@tramvai/tokens-server-private": "2.20.0",
25
+ "@tramvai/tokens-metrics": "2.20.0",
26
+ "@tramvai/tokens-router": "2.20.0",
27
+ "@tramvai/module-common": "2.20.0",
28
+ "@tramvai/tokens-http-client": "2.20.0",
29
+ "@tramvai/state": "2.20.0",
30
+ "@tramvai/papi": "2.20.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.19",
37
- "@tinkoff/metrics-noop": "1.0.4",
38
- "@tinkoff/browser-timings": "0.9.7"
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"