MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / record_usage_count

Function record_usage_count

src/dashboard/analytics_api.rs:376–386  ·  view source on GitHub ↗
(
    counts: &mut BTreeMap<(String, String), i64>,
    kind: UsageKind,
    category: &str,
)

Source from the content-addressed store, hash-verified

374}
375
376fn record_usage_count(
377 counts: &mut BTreeMap<(String, String), i64>,
378 kind: UsageKind,
379 category: &str,
380) {
381 let kind = match kind {
382 UsageKind::Tool => "tool",
383 UsageKind::Skill => "skill",
384 };
385 increment_usage_count(counts, kind, category);
386}
387
388fn increment_usage_count(counts: &mut BTreeMap<(String, String), i64>, kind: &str, category: &str) {
389 *counts

Callers 2

record_event_usageFunction · 0.85
usage_summaryFunction · 0.85

Calls 1

increment_usage_countFunction · 0.85

Tested by

no test coverage detected