@balena/open-balena-api 30.2.4 → 30.2.5-build-omit-nanotimestamp-3f3bb3506a9f8649517930e0a4a6d3931cfa7849-2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/features/device-logs/lib/backends/loki.js +3 -2
- package/dist/features/device-logs/lib/backends/loki.js.map +1 -1
- package/dist/features/device-logs/lib/config.d.ts +1 -0
- package/dist/features/device-logs/lib/config.js +1 -0
- package/dist/features/device-logs/lib/config.js.map +1 -1
- package/dist/features/device-logs/lib/read.js +5 -3
- package/dist/features/device-logs/lib/read.js.map +1 -1
- package/package.json +2 -2
@@ -6,6 +6,7 @@ import { LOKI_READ_HOST, LOKI_READ_PORT, LOKI_WRITE_HOST, LOKI_WRITE_PORT, } fro
|
|
6
6
|
import { captureException } from '../../../../infra/error-handling/index.js';
|
7
7
|
import { setCurrentSubscriptions, incrementSubscriptionTotal, incrementPublishCallSuccessTotal, incrementPublishCallFailedTotal, incrementLokiPushErrorTotal, incrementPublishLogMessagesTotal, incrementPublishLogMessagesDropped, incrementLokiPushTotal, updateLokiPushDurationHistogram, incrementPublishCallTotal, } from './metrics.js';
|
8
8
|
import { setTimeout } from 'timers/promises';
|
9
|
+
import { omitNanoTimestamp } from '../config.js';
|
9
10
|
const { BadRequestError } = errors;
|
10
11
|
// invert status object for quick lookup of status identifier using status code
|
11
12
|
const statusKeys = _.transform(loki.status, function (result, value, key) {
|
@@ -138,7 +139,7 @@ export class LokiBackend {
|
|
138
139
|
incrementPublishLogMessagesDropped(countLogs);
|
139
140
|
let message = `Failed to publish logs to ${lokiPushAddress} for device ${ctx.uuid}`;
|
140
141
|
if (VERBOSE_ERROR_MESSAGE) {
|
141
|
-
message += JSON.stringify(logs,
|
142
|
+
message += JSON.stringify(logs, omitNanoTimestamp, '\t').substring(0, 1000);
|
142
143
|
}
|
143
144
|
captureException(err, message);
|
144
145
|
throw new BadRequestError(`Failed to publish logs for device ${ctx.uuid}`);
|
@@ -266,7 +267,7 @@ export class LokiBackend {
|
|
266
267
|
timestamp.setSeconds(Math.floor(Number(log.nanoTimestamp / 1000000000n)));
|
267
268
|
timestamp.setNanos(Number(log.nanoTimestamp % 1000000000n));
|
268
269
|
// store log line as JSON
|
269
|
-
const logJson = JSON.stringify(log,
|
270
|
+
const logJson = JSON.stringify(log, omitNanoTimestamp);
|
270
271
|
// create entry with labels, line and timestamp
|
271
272
|
const entry = new loki.EntryAdapter()
|
272
273
|
.setLine(logJson)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"loki.js","sourceRoot":"","sources":["../../../../../src/features/device-logs/lib/backends/loki.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EACN,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,GACf,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EACN,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,EAChC,+BAA+B,EAC/B,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;AAEnC,+EAA+E;AAC/E,MAAM,UAAU,GAAG,CAAC,CAAC,SAAS,CAC7B,IAAI,CAAC,MAAM,EACX,UAAU,MAA0B,EAAE,KAAK,EAAE,GAAG;IAC/C,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;AACrB,CAAC,EACD,EAAE,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAA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B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACtB,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;YACtB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACvC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAC1E,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC;YAC5D,yBAAyB;YACzB,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;YACvD,+CAA+C;YAC/C,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE;iBACnC,OAAO,CAAC,OAAO,CAAC;iBAChB,YAAY,CAAC,SAAS,CAAC,CAAC;YAC1B,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YACnC,yBAAyB;YACzB,IAAI,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;YACjC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACb,sCAAsC;gBACtC,MAAM,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBAClC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;gBACzB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACrB,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;YAC9B,CAAC;YACD,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD"}
|
@@ -5,3 +5,4 @@ export declare const shouldReadFromLoki: () => boolean | "" | undefined;
|
|
5
5
|
export declare function addRetentionLimit(ctx: Omit<LogContext, 'retention_limit'>): LogContext;
|
6
6
|
export declare const getBackend: () => DeviceLogsBackend;
|
7
7
|
export declare const getLokiBackend: () => Promise<DeviceLogsBackend>;
|
8
|
+
export declare const omitNanoTimestamp: (key: string, value: any) => any;
|
@@ -15,4 +15,5 @@ export const getLokiBackend = _.once(async () => {
|
|
15
15
|
const { LokiBackend } = await import('./backends/loki.js');
|
16
16
|
return new LokiBackend();
|
17
17
|
});
|
18
|
+
export const omitNanoTimestamp = (key, value) => key === 'nanoTimestamp' ? undefined : value;
|
18
19
|
//# sourceMappingURL=config.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/features/device-logs/lib/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACN,4BAA4B,EAC5B,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,GACd,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACxB,cAAc,IAAI,eAAe,IAAI,cAAc,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CACvC,YAAY,IAAI,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AACtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CACtC,YAAY,IAAI,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;AAErD,MAAM,UAAU,iBAAiB,CAChC,GAAwC;IAExC,OAAO;QACN,GAAG,GAAG;QACN,eAAe,EAAE,4BAA4B;KAC7C,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,GAAsB,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,I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,CAAC,GAAW,EAAE,KAAU,EAAE,EAAE,CAC5D,GAAG,KAAK,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC"}
|
@@ -3,7 +3,7 @@ import _ from 'lodash';
|
|
3
3
|
import { sbvrUtils, errors } from '@balena/pinejs';
|
4
4
|
import { captureException, handleHttpErrors, } from '../../../infra/error-handling/index.js';
|
5
5
|
import { StreamState } from './struct.js';
|
6
|
-
import { addRetentionLimit, getBackend, getLokiBackend, shouldReadFromLoki, } from './config.js';
|
6
|
+
import { addRetentionLimit, getBackend, getLokiBackend, omitNanoTimestamp, shouldReadFromLoki, } from './config.js';
|
7
7
|
import { getNanoTimestamp } from '../../../lib/utils.js';
|
8
8
|
import { LOGS_DEFAULT_HISTORY_COUNT, LOGS_DEFAULT_SUBSCRIPTION_COUNT, LOGS_HEARTBEAT_INTERVAL, LOGS_READ_STREAM_FLUSH_INTERVAL, NDJSON_CTYPE, } from '../../../lib/config.js';
|
9
9
|
const { NotFoundError } = errors;
|
@@ -18,7 +18,9 @@ export const read = (onLogReadStreamInitialized) => async (req, res) => {
|
|
18
18
|
}
|
19
19
|
else {
|
20
20
|
const logs = await getHistory(await getReadBackend(), ctx, req, LOGS_DEFAULT_HISTORY_COUNT);
|
21
|
-
res
|
21
|
+
res
|
22
|
+
.set('Content-Type', 'application/json')
|
23
|
+
.send(JSON.stringify(logs, omitNanoTimestamp));
|
22
24
|
}
|
23
25
|
}
|
24
26
|
catch (err) {
|
@@ -52,7 +54,7 @@ async function handleStreamingRead(ctx, req, res) {
|
|
52
54
|
dropped++;
|
53
55
|
}
|
54
56
|
else if (state !== StreamState.Closed) {
|
55
|
-
if (!write(JSON.stringify(log,
|
57
|
+
if (!write(JSON.stringify(log, omitNanoTimestamp) + '\n') &&
|
56
58
|
state === StreamState.Writable) {
|
57
59
|
state = StreamState.Saturated;
|
58
60
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"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EpB,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAA2B,EAAE,YAAY,CAAC,CAAC;IAExE,8DAA8D;IAC9D,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,EAAE,CAAC;IACX,CAAC;IAED,6DAA6D;IAC7D,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AACpC,CAAC;AAED,KAAK,UAAU,cAAc,CAAC,GAAY;IACzC,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAC5B,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;QAClC,QAAQ,EAAE,QAAQ;QAClB,EAAE,EAAE,EAAE,IAAI,EAAE;QACZ,WAAW,EAAE,EAAE,GAAG,EAAE;QACpB,OAAO,EAAE;YACR,OAAO,EAAE,CAAC,IAAI,CAAC;SACf;KACD,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,MAAM,IAAI,aAAa,CAAC,sBAAsB,GAAG,IAAI,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,iBAAiB,CAAC;QACxB,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,IAAI;KACJ,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "30.2.
|
4
|
+
"version": "30.2.5-build-omit-nanotimestamp-3f3bb3506a9f8649517930e0a4a6d3931cfa7849-2",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -167,6 +167,6 @@
|
|
167
167
|
"loader": "ts-node/esm/transpile-only"
|
168
168
|
},
|
169
169
|
"versionist": {
|
170
|
-
"publishedAt": "2024-10-
|
170
|
+
"publishedAt": "2024-10-28T17:12:36.590Z"
|
171
171
|
}
|
172
172
|
}
|