SamplingRules

July 24, 2026 ยท View on GitHub

Example Usage

import { SamplingRules } from "@vercel/sdk/models/updateprojectbranchmatcher.js";

let value: SamplingRules = {
  rate: 6993.73,
};

Fields

FieldTypeRequiredDescription
ratenumber:heavy_check_mark:Sampling rate from 0 to 1
envmodels.UpdateProjectEnv:heavy_minus_sign:Environment to apply sampling to
requestPathstring:heavy_minus_sign:Request path prefix to apply the sampling rule to
destinationmodels.Destination:heavy_minus_sign:Tracing destination this rule applies to. Derived server-side when project tracing is computed; accepted here so a computed config can round-trip through this endpoint.