MCPcopy Create free account
hub / github.com/ShipSecAI/studio / normalizeLabels

Method normalizeLabels

backend/src/trace/log-stream.service.ts:397–407  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

395 }
396
397 private normalizeLabels(input: unknown): Record<string, string> {
398 if (!input || typeof input !== 'object') {
399 return {};
400 }
401
402 const entries = Object.entries(input as Record<string, unknown>).filter(
403 ([, value]) => typeof value === 'string',
404 ) as [string, string][];
405
406 return Object.fromEntries(entries);
407 }
408
409 private toNanoseconds(date: Date): string {
410 return (BigInt(date.getTime()) * 1000000n).toString();

Callers 1

queryLokiMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected