megachangelog
Feature

Custom metrics now supported in Vercel Observability

Developers can now emit custom metrics directly from Vercel Functions using the metric() function and analyze them alongside built-in observability data. Custom metrics can be queried, aggregated, and visualized in dashboards, and are available on Pro and Enterprise plans with Observability Plus.

You can now emit your own metrics directly from your Vercel Functions and analyze them alongside Vercel's built-in observability data.

Use the function from the package to record any value you care about, like request latency or business events, and attach attributes to filter and group by:metric()@vercel/functions

Once emitted, your custom metrics are available across Observability: • slice and aggregate metrics on the fly. • build and share dashboards. • query using the command.Query builder:Notebooks:CLI:vc metrics

Vercel automatically adds useful attributes like the source deployment and function region. Custom metrics are billed as observability events and available on Pro and Enterprise with Observability Plus.

Learn more in the .docs

Read more

observabilitymetricsfunctionsmonitoringanalytics

Source: original entry ↗