Skip to content

Commit f2338ec

Browse files
committed
fix
1 parent 3cd4330 commit f2338ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/handlers/otlp_log_push.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ async function handle (req, res) {
3030
}
3131
const labels = stringify(logAttrs)
3232
const fingerprint = fingerPrint(labels)
33-
const timestamp = logRecord.timeUnixNano
33+
const ts = logRecord.timeUnixNano
3434
? BigInt(logRecord.timeUnixNano)
3535
: logRecord.observedTimeUnixNano
3636
? BigInt(logRecord.observedTimeUnixNano)
3737
: BigInt(Date.now()) * BigInt(1000000)
38-
const ts = BigInt(timestamp)
3938
promises.push(bulk.add([[
4039
fingerprint,
4140
ts,

0 commit comments

Comments
 (0)