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

Function record_fallback_usage

src/dashboard/analytics_api.rs:358–374  ·  view source on GitHub ↗
(
    counts: &mut BTreeMap<(String, String), i64>,
    event_kind: &str,
    skill_name: &str,
)

Source from the content-addressed store, hash-verified

356}
357
358fn record_fallback_usage(
359 counts: &mut BTreeMap<(String, String), i64>,
360 event_kind: &str,
361 skill_name: &str,
362) {
363 match event_kind {
364 "tool" | "mcp_tool_call" => increment_usage_count(counts, "tool", "other_tool"),
365 "skill" if !skill_name.is_empty() => {
366 increment_usage_count(
367 counts,
368 "skill",
369 categorize_skill(skill_name).dashboard_label(),
370 );
371 }
372 _ => {}
373 }
374}
375
376fn record_usage_count(
377 counts: &mut BTreeMap<(String, String), i64>,

Callers 1

record_event_usageFunction · 0.85

Calls 4

increment_usage_countFunction · 0.85
categorize_skillFunction · 0.85
dashboard_labelMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected