🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: renaming a helper function to match time units (#9652)
Valery Meleshkin7dd6f31edb48
diff --git a/worker/src/services/IngestionService/index.ts b/worker/src/services/IngestionService/index.tsindex 35c55bd327..dc934f5372 100644--- a/worker/src/services/IngestionService/index.ts+++ b/worker/src/services/IngestionService/index.ts@@ -259,7 +259,7 @@ export class IngestionService {`Writing event for project ${eventData.projectId} and span ${eventData.spanId}`,);- const now = this.getNanosecondTimestamp();+ const now = this.getMicrosecondTimestamp();// Store the full metadata JSONconst metadata = eventData.metadata;@@ -303,10 +303,10 @@ export class IngestionService {status_message: eventData.statusMessage,// Timestamps- start_time: this.getNanosecondTimestamp(eventData.startTimeISO),- end_time: this.getNanosecondTimestamp(eventData.endTimeISO),+ start_time: this.getMicrosecondTimestamp(eventData.startTimeISO),+ end_time: this.getMicrosecondTimestamp(eventData.endTimeISO),completion_start_time: eventData.completionStartTime- ? this.getNanosecondTimestamp(eventData.completionStartTime)+ ? this.getMicrosecondTimestamp(eventData.completionStartTime): null,// Prompt@@ -1532,7 +1532,7 @@ export class IngestionService {return typeof obj === "string" ? obj : JSON.stringify(obj);}- private getNanosecondTimestamp(timestamp?: string | null): number {+ private getMicrosecondTimestamp(timestamp?: string | null): number {return timestamp ? new Date(timestamp).getTime() * 1000 : Date.now() * 1000;}