---
id: 20260821-T0-10
title: "Vercel Observability 支持自定义指标，可随函数直接上报"
title_en: "Vercel Observability Adds Custom Metrics Support for Functions"
url: https://ai.daily.yangsir.net/daily/20260821-T0-10
issue_date: 2026-08-21
publish_date: 2026-08-20T17:00:00.000Z
category: release
source_name: "Vercel Blog"
source_url: https://vercel.com/changelog/custom-metrics-are-now-supported-in-vercel-observability
---

# Vercel Observability 支持自定义指标，可随函数直接上报

Vercel 更新其可观测性产品，开发者现在可以直接从 Vercel Functions 中发送自定义指标（如请求延迟、业务事件），并与 Vercel 内置的可观测性数据一起分析。只需使用 @vercel/functions 包中的 metric() 函数即可记录任意关心的数值，并附加属性进行过滤。这一更新让开发者无需额外接入第三方监控服务，就能获得更细粒度的应用性能视图。

## English Version

**Vercel Observability Adds Custom Metrics Support for Functions**

Vercel has updated its Observability product to allow developers to emit custom metrics directly from Vercel Functions, which can be analyzed alongside built-in observability data. Using the metric() function from the @vercel/functions package, developers can record any value, such as request latency or business events, with custom attributes. This simplifies monitoring by removing the need for external services.

---

**来源**：[Vercel Blog](https://vercel.com/changelog/custom-metrics-are-now-supported-in-vercel-observability)

**详情页**：https://ai.daily.yangsir.net/daily/20260821-T0-10

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*