Skip to content

Commit

Permalink
fix: correct telemetry timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
marknguyen1302 authored Jul 9, 2024
1 parent bafe1e8 commit 11c9290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cortex-js/src/domain/telemetry/telemetry.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ interface ScopeLog {

export interface TelemetryLog {
traceId: string;
startTimeUnixNano?: string;
timeUnixNano?: string;
endTimeUnixNano?: string;
severityText: string;
body: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository {
logRecords: [
{
traceId: cypto.randomBytes(16).toString('hex'),
startTimeUnixNano: (
timeUnixNano: (
BigInt(Date.now()) * BigInt(1000000)
).toString(),
body: { stringValue: body },
Expand Down

0 comments on commit 11c9290

Please sign in to comment.