Vercel Daemons Can Send OpenTelemetry Traces to Vercel Tracing

Vercel Daemons can now send OpenTelemetry traces to Vercel Tracing, bringing background worker operations into the same trace view as the rest of a project. The integration also lets agents search daemon spans through the Vercel CLI and receive the results as JSON.
- Vercel Daemons can export OpenTelemetry traces to Vercel Tracing.
- Each daemon receives a Unix socket for OTLP/HTTP traces.
- Version 2.3.0 or later of @vercel/otel enables automatic export for Node.js daemons.
- The Vercel CLI can search traces by project and service name.
- Search results can be returned as JSON for agents.
Tracing for background worker operations
Vercel says its Daemons can now send traces to Vercel Tracing. This allows developers and their agents to inspect operations performed by background workers alongside the other traces from a project.
To receive the data, Vercel provides each daemon with a Unix socket for OTLP/HTTP traces. The path to that socket is stored in the VERCEL_OTEL_SOCKET_PATH environment variable. This gives the daemon a specific channel for exporting the spans recorded by its worker.
Node.js setup uses @vercel/otel
For Node.js daemons, upgrading @vercel/otel to version 2.3.0 or later enables automatic trace export with the default configuration. According to Vercel, the SDK detects the socket and sends the worker's spans to Vercel.
Vercel's example initializes OpenTelemetry before the worker starts:
import { registerOTel } from '@vercel/otel';
registerOTel({ serviceName: 'my-daemon' });
The example assigns the service name my-daemon, which can then be used when searching for the daemon's traces.
Search daemon spans with the Vercel CLI
The resulting spans are available through the Vercel CLI. Vercel says the CLI can search by service name within a project and return the results as JSON for agents.
The documentation provides this command:
vercel traces search --project my-project --service my-daemon --json
According to Vercel, this searches daemon spans from the last hour as JSON. The feature connects trace collection with command-line workflows, making it possible to retrieve background worker activity in a format that agents can process.
Vercel: Daemons can now send traces to Vercel Tracing


