custom-metrics

Installation
SKILL.md

Vercel Custom Metrics

Use Custom Metrics for numeric application and business measurements emitted by server-side code running in a Vercel Function. The workflow is emit a numeric sample with metric() → invoke the deployed function → discover and query the metric with vc metrics or Observability.

Emit a metric

Install or upgrade @vercel/functions, then import metric from its root entry point:

pnpm add @vercel/functions
import { metric } from '@vercel/functions';

export async function POST() {
  const startedAt = performance.now();
Installs
1
GitHub Stars
287
First Seen
1 day ago
custom-metrics — vercel/vercel-plugin