@tramvai/module-common 1.61.0 → 1.62.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.
@@ -360,6 +360,7 @@ function createConsumerContext({ di, dispatcherContext, pubsub, store }) {
360
360
  });
361
361
  }
362
362
 
363
+ const DEFAULT_BUCKETS = [0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 20, 40, 60];
363
364
  const resolveDi = (type, status, diContainer, providers) => {
364
365
  let di = diContainer;
365
366
  if (status === 'customer' && type !== 'client') {
@@ -469,6 +470,7 @@ class CommandLineRunner {
469
470
  name: `command_line_runner_execution_time`,
470
471
  help: 'Command line processing duration',
471
472
  labelNames: ['line'],
473
+ buckets: DEFAULT_BUCKETS,
472
474
  });
473
475
  }
474
476
  return this.metricsInstance.startTimer();
package/lib/index.es.js CHANGED
@@ -357,6 +357,7 @@ function createConsumerContext({ di, dispatcherContext, pubsub, store }) {
357
357
  });
358
358
  }
359
359
 
360
+ const DEFAULT_BUCKETS = [0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 20, 40, 60];
360
361
  const resolveDi = (type, status, diContainer, providers) => {
361
362
  let di = diContainer;
362
363
  if (status === 'customer' && type !== 'client') {
@@ -466,6 +467,7 @@ class CommandLineRunner {
466
467
  name: `command_line_runner_execution_time`,
467
468
  help: 'Command line processing duration',
468
469
  labelNames: ['line'],
470
+ buckets: DEFAULT_BUCKETS,
469
471
  });
470
472
  }
471
473
  return this.metricsInstance.startTimer();
package/lib/index.js CHANGED
@@ -375,6 +375,7 @@ function createConsumerContext({ di, dispatcherContext, pubsub, store }) {
375
375
  });
376
376
  }
377
377
 
378
+ const DEFAULT_BUCKETS = [0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 20, 40, 60];
378
379
  const resolveDi = (type, status, diContainer, providers) => {
379
380
  let di = diContainer;
380
381
  if (status === 'customer' && type !== 'client') {
@@ -484,6 +485,7 @@ class CommandLineRunner {
484
485
  name: `command_line_runner_execution_time`,
485
486
  help: 'Command line processing duration',
486
487
  labelNames: ['line'],
488
+ buckets: DEFAULT_BUCKETS,
487
489
  });
488
490
  }
489
491
  return this.metricsInstance.startTimer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-common",
3
- "version": "1.61.0",
3
+ "version": "1.62.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -31,24 +31,24 @@
31
31
  "@tinkoff/errors": "0.2.18",
32
32
  "@tinkoff/pubsub": "0.4.23",
33
33
  "@tinkoff/url": "0.7.37",
34
- "@tramvai/module-cookie": "1.61.0",
35
- "@tramvai/module-environment": "1.61.0",
36
- "@tramvai/module-log": "1.61.0",
37
- "@tramvai/tokens-child-app": "1.61.0",
38
- "@tramvai/tokens-common": "1.61.0",
39
- "@tramvai/tokens-render": "1.61.0",
40
- "@tramvai/experiments": "1.61.0",
34
+ "@tramvai/module-cookie": "1.62.0",
35
+ "@tramvai/module-environment": "1.62.0",
36
+ "@tramvai/module-log": "1.62.0",
37
+ "@tramvai/tokens-child-app": "1.62.0",
38
+ "@tramvai/tokens-common": "1.62.0",
39
+ "@tramvai/tokens-render": "1.62.0",
40
+ "@tramvai/experiments": "1.62.0",
41
41
  "@tinkoff/hook-runner": "0.3.21",
42
42
  "lru-cache": "^6.0.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@tinkoff/utils": "^2.1.2",
46
- "@tramvai/cli": "1.61.0",
47
- "@tramvai/core": "1.61.0",
48
- "@tramvai/papi": "1.61.0",
49
- "@tramvai/state": "1.61.0",
50
- "@tramvai/tokens-metrics": "1.61.0",
51
- "@tramvai/tokens-server": "1.61.0",
46
+ "@tramvai/cli": "1.62.0",
47
+ "@tramvai/core": "1.62.0",
48
+ "@tramvai/papi": "1.62.0",
49
+ "@tramvai/state": "1.62.0",
50
+ "@tramvai/tokens-metrics": "1.62.0",
51
+ "@tramvai/tokens-server": "1.62.0",
52
52
  "@tinkoff/dippy": "0.7.38",
53
53
  "react": ">=16.8.0",
54
54
  "tslib": "^2.0.3"