observability-monitoring

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Observability & Monitoring

可观测性与监控

Complete observability stack with structured logging, error tracking, and web analytics.
包含结构化日志、错误追踪和网站分析的完整可观测性栈。

Cookbook - Complete These Recipes in Order

操作手册 - 按顺序完成以下步骤

Pino Logging Setup

Pino 日志配置

Configure structured logging with Pino. Outputs human-readable colorized logs in development and structured JSON in production for log aggregation services.
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/pino-logging-setup
使用Pino配置结构化日志。在开发环境输出人类可读的彩色日志,在生产环境输出结构化JSON日志,用于日志聚合服务。
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/pino-logging-setup

Sentry Setup

Sentry 配置

Configure Sentry for error tracking, performance monitoring, and log aggregation. Integrates with Pino to forward logs to Sentry automatically.
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/sentry-setup
配置Sentry以实现错误追踪、性能监控和日志聚合。与Pino集成,自动将日志转发到Sentry。
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/sentry-setup

Vercel Web Analytics

Vercel 网站分析

Add privacy-focused web analytics with Vercel Web Analytics. Track page views, visitors, and custom events with zero configuration.
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/vercel-analytics-setup
添加注重隐私的Vercel Web Analytics网站分析功能。无需配置即可追踪页面浏览量、访客和自定义事件。
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/vercel-analytics-setup

Working with Logging

日志使用指南

Use structured logging with Pino throughout your application. Covers log levels, context, and workflow-safe logging patterns.
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-logging
在整个应用中使用Pino进行结构化日志记录。涵盖日志级别、上下文和工作流安全的日志模式。
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-logging

Working with Sentry

Sentry 使用指南

Capture exceptions, add context, create performance spans, and use structured logging with Sentry.
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-sentry
捕获异常、添加上下文、创建性能跨度,并结合Sentry使用结构化日志。
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-sentry

Working with Analytics

分析功能使用指南

Track custom events and conversions with Vercel Web Analytics. Covers common events, form tracking, and development testing.
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-analytics
使用Vercel Web Analytics追踪自定义事件和转化。涵盖常见事件、表单追踪和开发测试。
bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-analytics