SamplingRules
July 24, 2026 ยท View on GitHub
Example Usage
import { SamplingRules } from "@vercel/sdk/models/updateprojectbranchmatcher.js";
let value: SamplingRules = {
rate: 6993.73,
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
rate | number | :heavy_check_mark: | Sampling rate from 0 to 1 |
env | models.UpdateProjectEnv | :heavy_minus_sign: | Environment to apply sampling to |
requestPath | string | :heavy_minus_sign: | Request path prefix to apply the sampling rule to |
destination | models.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. |