Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Jan 29, 2025
1 parent 3cd4330 commit f2338ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/handlers/otlp_log_push.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2338ec

Please sign in to comment.