fix: Job traces-a8b2ddcf-0d6c-4c5f-8fb4-aad709372869-17

This commit fixes an exception detected by OneUptime.

Exception Type: Error
Exception ID: e6f39d81-94f7-4c7d-a5f1-822e9c28b9ae

Automatically generated by OneUptime AI Agent.
This commit is contained in:
OneUptime AI Agent
2026-01-09 19:31:06 +00:00
parent 99d198a33b
commit a7797b9b53

View File

@@ -3,6 +3,7 @@ import Queue, { QueueName } from "Common/Server/Infrastructure/Queue";
import { JSONObject } from "Common/Types/JSON";
import OneUptimeDate from "Common/Types/Date";
import logger from "Common/Server/Utils/Logger";
import Text from "Common/Types/Text";
export enum TelemetryType {
Logs = "logs",
@@ -51,7 +52,7 @@ export default class TelemetryQueueService {
ingestionTimestamp: OneUptimeDate.getCurrentDate(),
};
const jobId: string = `${type}-${req.projectId?.toString()}-${OneUptimeDate.getCurrentDateAsUnixNano()}`;
const jobId: string = `${type}-${req.projectId?.toString()}-${OneUptimeDate.getCurrentDateAsUnixNano()}-${Text.generateRandomNumber(6)}`;
await Queue.addJob(
QueueName.Telemetry,