ObservabilityObservability integrations
This topic explains how to send logs from Vercel to LaunchDarkly’s observability features.
If you deploy your applications on Vercel, you can configure a log drain to automatically forward your server-side logs to LaunchDarkly. This includes build logs, serverless function logs, edge function logs, and static access logs. Once configured, these logs appear in the Logs page of the LaunchDarkly user interface.
Before you configure the Vercel log drain, you must:
To find your client-side ID:
You can configure the log drain directly in the Vercel dashboard.
To configure the Vercel log drain:
https://pub.observability.app.launchdarkly.com/vercel/v1/logs.x-highlight-project and set the value to your LaunchDarkly client-side ID.After you configure the log drain, Vercel begins forwarding logs to LaunchDarkly.
To verify that your logs are being received:
source:vercel or from your Vercel-deployed services.It may take a few minutes for logs to appear after you first configure the log drain.
Logs from Vercel include the following attributes that you can use when searching:
To learn more about searching for logs, read Search specification.
You can configure ingestion filters to control which logs from Vercel are stored in LaunchDarkly. This is useful for excluding noisy logs or limiting ingestion to stay within your observability quotas.
To learn more, read Filters.