@promster/metrics 15.3.0 → 15.3.1
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.
|
@@ -319,18 +319,14 @@ const createRequestRecorder = (metrics, options = defaultOptions) => {
|
|
|
319
319
|
if (recordingOptions.requestContentLength) {
|
|
320
320
|
if (metrics.httpRequestContentLengthInBytes) {
|
|
321
321
|
for (const httpRequestContentLengthInBytesMetricType of metrics.httpRequestContentLengthInBytes) {
|
|
322
|
-
httpRequestContentLengthInBytesMetricType.observe(labels,
|
|
323
|
-
// @ts-expect-error
|
|
324
|
-
recordingOptions.requestContentLength);
|
|
322
|
+
httpRequestContentLengthInBytesMetricType.observe(labels, recordingOptions.requestContentLength);
|
|
325
323
|
}
|
|
326
324
|
}
|
|
327
325
|
}
|
|
328
326
|
if (recordingOptions.responseContentLength) {
|
|
329
327
|
if (metrics.httpResponseContentLengthInBytes) {
|
|
330
328
|
for (const httpResponseContentLengthInBytesMetricType of metrics.httpResponseContentLengthInBytes) {
|
|
331
|
-
httpResponseContentLengthInBytesMetricType.observe(labels,
|
|
332
|
-
// @ts-expect-error
|
|
333
|
-
recordingOptions.responseContentLength);
|
|
329
|
+
httpResponseContentLengthInBytesMetricType.observe(labels, recordingOptions.responseContentLength);
|
|
334
330
|
}
|
|
335
331
|
}
|
|
336
332
|
}
|
|
@@ -319,18 +319,14 @@ const createRequestRecorder = (metrics, options = defaultOptions) => {
|
|
|
319
319
|
if (recordingOptions.requestContentLength) {
|
|
320
320
|
if (metrics.httpRequestContentLengthInBytes) {
|
|
321
321
|
for (const httpRequestContentLengthInBytesMetricType of metrics.httpRequestContentLengthInBytes) {
|
|
322
|
-
httpRequestContentLengthInBytesMetricType.observe(labels,
|
|
323
|
-
// @ts-expect-error
|
|
324
|
-
recordingOptions.requestContentLength);
|
|
322
|
+
httpRequestContentLengthInBytesMetricType.observe(labels, recordingOptions.requestContentLength);
|
|
325
323
|
}
|
|
326
324
|
}
|
|
327
325
|
}
|
|
328
326
|
if (recordingOptions.responseContentLength) {
|
|
329
327
|
if (metrics.httpResponseContentLengthInBytes) {
|
|
330
328
|
for (const httpResponseContentLengthInBytesMetricType of metrics.httpResponseContentLengthInBytes) {
|
|
331
|
-
httpResponseContentLengthInBytesMetricType.observe(labels,
|
|
332
|
-
// @ts-expect-error
|
|
333
|
-
recordingOptions.responseContentLength);
|
|
329
|
+
httpResponseContentLengthInBytesMetricType.observe(labels, recordingOptions.responseContentLength);
|
|
334
330
|
}
|
|
335
331
|
}
|
|
336
332
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promster/metrics",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.1",
|
|
4
4
|
"description": "Metrics utilities used by all other server integrations",
|
|
5
5
|
"main": "dist/promster-metrics.cjs.js",
|
|
6
6
|
"typings": "dist/promster-metrics.cjs.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"prometheus-gc-stats": "1.1.0",
|
|
43
43
|
"tslib": "2.8.1",
|
|
44
44
|
"url-value-parser": "2.2.0",
|
|
45
|
-
"@promster/types": "15.3.
|
|
45
|
+
"@promster/types": "15.3.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/lodash.once": "4.1.9",
|