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

Method buildSelector

backend/src/trace/log-stream.service.ts:390–395  ·  view source on GitHub ↗
(labels: Record<string, string>)

Source from the content-addressed store, hash-verified

388 }
389
390 private buildSelector(labels: Record<string, string>): string {
391 const parts = Object.entries(labels).map(
392 ([key, value]) => `${key}="${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`,
393 );
394 return `{${parts.join(',')}}`;
395 }
396
397 private normalizeLabels(input: unknown): Record<string, string> {
398 if (!input || typeof input !== 'object') {

Callers 3

fetchMethod · 0.95
fetchRecentLogsMethod · 0.95
queryLokiMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected