mirror of
https://github.com/metrico/qryn.git
synced 2025-03-14 10:07:18 +00:00
fix
This commit is contained in:
@ -30,7 +30,12 @@ async function handle (req, res) {
|
||||
}
|
||||
const labels = stringify(logAttrs)
|
||||
const fingerprint = fingerPrint(labels)
|
||||
const ts = BigInt(logRecord.timeUnixNano)
|
||||
const timestamp = 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,
|
||||
|
Reference in New Issue
Block a user