MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setMetricSink

Function setMetricSink

web/lib/performance/metrics.ts:21–23  ·  view source on GitHub ↗
(fn: MetricSink)

Source from the content-addressed store, hash-verified

19
20/** Register a custom analytics sink (e.g. PostHog, Datadog, console). */
21export function setMetricSink(fn: MetricSink): void {
22 sink = fn;
23}
24
25function report(metric: PerformanceMetric): void {
26 if (process.env.NODE_ENV === "development") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected