mirror of
https://github.com/metrico/qryn.git
synced 2025-03-14 10:07:18 +00:00
fix
This commit is contained in:
@ -30,12 +30,11 @@ async function handle (req, res) {
|
|||||||
}
|
}
|
||||||
const labels = stringify(logAttrs)
|
const labels = stringify(logAttrs)
|
||||||
const fingerprint = fingerPrint(labels)
|
const fingerprint = fingerPrint(labels)
|
||||||
const timestamp = logRecord.timeUnixNano
|
const ts = logRecord.timeUnixNano
|
||||||
? BigInt(logRecord.timeUnixNano)
|
? BigInt(logRecord.timeUnixNano)
|
||||||
: logRecord.observedTimeUnixNano
|
: logRecord.observedTimeUnixNano
|
||||||
? BigInt(logRecord.observedTimeUnixNano)
|
? BigInt(logRecord.observedTimeUnixNano)
|
||||||
: BigInt(Date.now()) * BigInt(1000000)
|
: BigInt(Date.now()) * BigInt(1000000)
|
||||||
const ts = BigInt(timestamp)
|
|
||||||
promises.push(bulk.add([[
|
promises.push(bulk.add([[
|
||||||
fingerprint,
|
fingerprint,
|
||||||
ts,
|
ts,
|
||||||
|
Reference in New Issue
Block a user