- Using Vercel’s traces drain. In addition to forwarding data collected by Vercel’s OpenTelemetry instrumentation package, this will also provide visibility into Vercel’s infrastructure, such as Vercel functions and edge network.
- Using Vercel’s OpenTelemetry instrumentation package.
Using the traces drain
To forward traces from Vercel to AppSignal using the traces drain, you need to set up a traces drain in your Vercel project settings. It is also recommended to install Vercel’s OpenTelemetry instrumentation package in your application to capture telemetry data from your application. Using Vercel’s traces drain requires a Vercel plan on which drains are available. See Vercel’s drains documentation for more information on available plans and pricing.Set up a traces drain
From the Vercel dashboard, navigate to your project and go to the Settings > Drains section. Click on Add Drain and select Traces as the drain type.

/v1/traces at the end:
Install and configure the instrumentation package
Use npm to add Vercel’s OpenTelemetry instrumentation package and the OpenTelemetry API to your application’s dependencies:instrumentation.ts file to your application. It must be placed in the root directory of the project (or inside the src folder if using one).
If you’re using other frameworks or Vercel functions, make sure that this code is loaded early in the execution process to properly capture OpenTelemetry data.
Using the instrumentation package
To send telemetry data to AppSignal using Vercel’s OpenTelemetry instrumentation package, you need to install and configure the package in your application.Install the OpenTelemetry packages
Use npm to add Vercel’s OpenTelemetry instrumentation package, the OpenTelemetry SDK and the OTLP exporter to your application’s dependencies:Configure OpenTelemetry in your application
If you’re using Next.js, add theinstrumentation.ts file to your application. It must be placed in the root directory of the project (or inside src folder if using one).
If you’re using other frameworks or Vercel functions, make sure that this code is loaded early in the execution process to properly capture OpenTelemetry data.