@maestro-js/metrics 1.0.0-alpha.23 → 1.0.0-alpha.4
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/dist/index.d.ts +1 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ interface MetricFunctions {
|
|
|
54
54
|
|
|
55
55
|
declare function sentryMetricsTransport(sentryMetrics: MetricFunctions): Log.Transport<[MetricsLogMessage]>;
|
|
56
56
|
|
|
57
|
-
type MetricsFunctions = MetricFunctions;
|
|
58
57
|
declare function create(config: Metrics.Provider.MetricsServiceConfig): {
|
|
59
58
|
increment: (name: string, value?: number, data?: MetricsAdditionalData) => void;
|
|
60
59
|
distribution: (name: string, value: number, data?: MetricsAdditionalData) => void;
|
|
@@ -86,7 +85,7 @@ declare namespace Metrics {
|
|
|
86
85
|
/** Discriminated union of the four metric operations, keyed by `op` */
|
|
87
86
|
type LogMessage = MetricsLogMessage;
|
|
88
87
|
/** Interface matching the four metric methods, used to type external metric providers like Sentry */
|
|
89
|
-
type MetricFunctions =
|
|
88
|
+
type MetricFunctions = MetricFunctions;
|
|
90
89
|
namespace Provider {
|
|
91
90
|
interface MetricsServiceConfig {
|
|
92
91
|
logger: Log.Logger<[MetricsLogMessage]>;
|
package/package.json
CHANGED
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@maestro-js/service-registry": "1.0.0-alpha.
|
|
12
|
+
"@maestro-js/service-registry": "1.0.0-alpha.4"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@maestro-js/log": "1.0.0-alpha.
|
|
15
|
+
"@maestro-js/log": "1.0.0-alpha.4"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@maestro-js/log": "1.0.0-alpha.
|
|
18
|
+
"@maestro-js/log": "1.0.0-alpha.4"
|
|
19
19
|
},
|
|
20
|
-
"version": "1.0.0-alpha.
|
|
20
|
+
"version": "1.0.0-alpha.4",
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "restricted"
|
|
23
23
|
},
|