MCPcopy Create free account
hub / github.com/SethGammon/Citadel / toAttributes

Function toAttributes

scripts/telemetry-otlp-export.js:83–90  ·  view source on GitHub ↗
(pairs)

Source from the content-addressed store, hash-verified

81}
82
83function toAttributes(pairs) {
84 const attributes = [];
85 for (const [key, raw] of Object.entries(pairs)) {
86 if (raw === null || raw === undefined) continue;
87 attributes.push({ key, value: { stringValue: String(raw) } });
88 }
89 return attributes;
90}
91
92function createMetricSet() {
93 return {

Callers 4

mapSessionCostFunction · 0.85
mapHookTimingFunction · 0.85
mapAgentRunFunction · 0.85
buildPayloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected