Vercel

Integrate your flags with Vercel.

Flags Explorer

The Flags Explorer lives in the Vercel Toolbar and allows overriding any feature flags for your session only, without affecting your team members.

The Flags SDK will automatically respect overrides set by the Flags Explorer.

Learn more about Flags Explorer.

Logs

Requests will automatically be annotated with the evaluated feature flags. The flag values can then be seen in the Log details view.

Learn more about integrating with Runtime Logs.

Analytics

The Flags SDK can annotate requests with the evaluated feature flags. The flag values can then be seen in the Analytics view.

Learn more about integrating with Web Analytics.

Edge Config

Edge Config is a globally replicated, ultra-low latency, highly available system designed to store feature flags. Edge Config reads are extremely fast, as Vercel co-locates the data stored in Edge Config with the Vercel Functions. This allows your functions to read Edge Config without going over the network in most cases.

This extremely low latency is perfect for feature flags. Vercel has integrations with many providers to sync their feature flags into Edge Config, from which your application can then bootstrap them when handling requests.

Learn more about Edge Config.

OpenTelemetry

You can use the Flags SDK with OpenTelemetry to annotate requests with the evaluated feature flags.

instrumentation.ts
import { registerOTel } from '@vercel/otel'
import { setTracerProvider } from '@vercel/flags'
import { trace } from '@opentelemetry/api'
export function register(): void {
if (process.env.NODE_ENV === 'development') return
registerOTel({ serviceName: 'example-app' })
setTracerProvider(trace)
}

Learn more about integrating with OpenTelemetry.