Overview
Metric Sampling allows you to reduce computational costs by evaluating metrics on only a subset of your calls. Instead of running every metric on every call, you can configure a sampling rate (e.g., 30%) to evaluate metrics on a representative sample while maintaining statistical accuracy.How It Works
The sampling feature uses a deterministic accumulator algorithm that ensures the exact percentage of calls are evaluated over time. For example, with a 30% sampling rate, exactly 30 out of every 100 calls will have the metric evaluated. When a metric evaluation is skipped due to sampling, a placeholder record is created in your dashboard to maintain audit trails.Setting Up Sampling
Configure Project Sampling Rate
Navigate to Settings in your project and find the Metric Sampling Rate (%) field.Enter a value between 0-100:
0= No metrics evaluated (0%)100= All metrics evaluated (100%, no sampling)30= 30% of calls evaluated0.1= 0.1% of calls evaluated

The sampling rate applies to all metrics that have sampling enabled. You can control which metrics use sampling in the next step.
Understanding Sampled Results
When a metric evaluation is skipped due to sampling:- A placeholder record appears in your dashboard
- The explanation shows:
"Sampling skipped" - No score is computed for that specific call
- The audit trail is preserved
- The metric runs normally
- Full scores and explanations are provided
- The call counts toward your sampling percentage
