This commit is contained in:
akvlad
2025-01-29 13:46:15 +02:00
parent 3cd4330089
commit f2338ec57b

View File

@ -30,12 +30,11 @@ async function handle (req, res) {
}
const labels = stringify(logAttrs)
const fingerprint = fingerPrint(labels)
const timestamp = logRecord.timeUnixNano
const ts = logRecord.timeUnixNano
? BigInt(logRecord.timeUnixNano)
: logRecord.observedTimeUnixNano
? BigInt(logRecord.observedTimeUnixNano)
: BigInt(Date.now()) * BigInt(1000000)
const ts = BigInt(timestamp)
promises.push(bulk.add([[
fingerprint,
ts,