Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vercel-tracing

БесплатноБез исполняемых скриптовНе проверен

Set up OpenTelemetry instrumentation for Vercel Tracing and query the resulting spans. Use when adding or fixing `@vercel/otel`, wiring a framework's server…

vercelот vercel★ 356 звёзд на GitHub

Об этом скилле

Vercel Tracing

Use Vercel Tracing to instrument server code with OpenTelemetry and inspect spans from deployed traffic. The workflow is register @vercel/otel from the framework's server startup hook → deploy and exercise a server route → search and inspect the trace with vercel traces. Use the same traces to debug failed requests and measure slow operations. Read only the references needed for the current task.

Tracing only covers server code: requests to dynamic routes, API routes, functions, and on-demand rendering, and daemons (Public Beta, production only) that export spans to the Unix socket at VERCEL_OTEL_SOCKET_PATH. In a Node.js daemon, call registerOTel from @vercel/otel 2.3.0+ at the top of the worker's entry file; in other languages, point an OpenTelemetry exporter that supports Unix sockets (OTLP/HTTP, not gRPC) at that path. Setting OTEL_EXPORTER_OTLP_TRACES_ENDPOINT or OTEL_EXPORTER_OTLP_ENDPOINT, or passing a custom traceExporter to registerOTel, bypasses the socket. Find daemon spans by the serviceName the daemon registers, with vercel traces search --project <project> --service <serviceName>. Static and prerendered pages and CDN cache hits run no application code, so traces cannot explain or speed them up; optimize those with caching, bundle size, and Core Web Vitals work instead.

Reference index

Reference Read when
Collection Deciding which spans need application setup, or choosing always-on tracing, request capture, or a browser session
Instrumentation Discovering a framework's startup hook, wiring and verifying SDK setup, or using Sentry
Next.js Checking Next.js 16.5+ default tracing, setting up Next.js instrumentation, or enabling verbose spans
SvelteKit Enabling server tracing and the instrumentation hook on SvelteKit 2 or 3
Library spans Turning on spans from the AI SDK, Flags SDK, Workflow, or database and cache clients
Custom spans Measuring an application operation and recording failures
Context propagation Connecting traces across services: outbound URL matching, non-fetch clients and queues, incoming requests
Configuration Inspecting or changing always-on tracing sampling rules
Capture Reproducing a request or tracing a browser flow
Search Finding slow or failed spans, choosing filters, or parsing results
Inspection Retrieving a request trace and choosing timeline, tree, or waterfall
Performance Making a route, API, function, or server-rendered page faster: wrapping operations in custom spans, reading exact durations, comparing before and after
Troubleshooting Investigating empty results, failed lookups, missing spans, or truncated attributes

Setup workflow

  1. Check existing setup: framework and adapter versions, any registered OpenTelemetry provider or Sentry v8+, and framework tracing flags. Extend an existing provider; never register a second one.

  2. Decide what needs application setup. Infrastructure and outbound-fetch spans are automatic; framework, library, and custom spans need @vercel/otel. On Next.js 16.5+, check default tracing first. When Vercel adds @vercel/otel, framework spans need no setup, and step 3 is only for custom or library spans. See collection.

  3. Install @vercel/otel and @opentelemetry/api, then register the SDK once from the framework's verified server startup hook. On Next.js, that is register() in instrumentation.ts:

    import { registerOTel } from '@vercel/otel';
    
    export function register() {
      registerOTel({ serviceName: process.env.VERCEL_PROJECT_NAME });
    }
    

    Under default tracing, Vercel stops adding @vercel/otel once this file exists, and VERCEL_PROJECT_NAME keeps the service name unchanged. For other frameworks, follow SvelteKit or another framework; see Next.js for default tracing, verbose spans, and prerendering. Next.js and SvelteKit join the incoming request trace automatically; other frameworks may need incoming-context extraction. Add custom spans and context propagation where needed.

  4. Turn on library spans for the libraries in the application's package.json, such as the AI SDK, the Flags SDK, or a database client.

  5. Build, deploy

Полный SKILL.md на GitHub

Установить vercel-tracing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/capture.mdreferences/collection.mdreferences/configuration.mdreferences/context-propagation.mdreferences/custom-spans.mdreferences/inspection.mdreferences/instrumentation.mdreferences/library-spans.mdreferences/nextjs.mdreferences/performance.mdreferences/search.mdreferences/sveltekit.mdreferences/troubleshooting.md

FAQ

Что делает скилл vercel-tracing?

Set up OpenTelemetry instrumentation for Vercel Tracing and query the resulting spans. Use when adding or fixing `@vercel/otel`, wiring a framework's server startup hook (Next.js, SvelteKit, and others), adding custom spans, turning on spans from libraries such as the AI SDK, Flags SDK, or database clients, propagating trace context between services, configuring always-on tracing sampling, searching or inspecting spans with `vercel traces`, or debugging failed or slow server requests.

Как установить скилл vercel-tracing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vercel-tracing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vercel-tracing с