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