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

Function createMetricSet

scripts/telemetry-otlp-export.js:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92function createMetricSet() {
93 return {
94 'citadel.session.cost.usd': { unit: 'USD', type: 'sum', monotonic: true, dataPoints: [] },
95 'citadel.session.tokens': { unit: '{token}', type: 'sum', monotonic: true, dataPoints: [] },
96 'citadel.hook.duration.ms': { unit: 'ms', type: 'gauge', dataPoints: [] },
97 'citadel.agent.runs': { unit: '{run}', type: 'sum', monotonic: true, dataPoints: [] },
98 };
99}
100
101// session-costs.jsonl (schema 2): timestamp, session_id, campaign_slug,
102// estimated_cost, override_cost, real_cost, input_tokens, output_tokens,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected