sampling_rate, a number in the range (0.0, 1.0] that defaults to 1.0 (evaluate every matching span).
This capability is currently in private preview and is not yet available to all customers. Contact your Fiddler Customer Success Manager to request access.
Traces are always persisted even with evaluator downsampling enabled. Downsampling only controls whether an evaluator runs on a matching span — it never affects ingestion or storage. Sampled-out traces stay fully queryable in the Explorer. To score traces a rule skipped, create a new rule (or recreate the rule) with a higher
sampling_rate and backfill enabled. Backfill can only be requested when a rule is created; a backfill at the same rate re-applies the same deterministic decision and skips the same traces again.Availability. Evaluator downsampling is gated by a feature flag and may not be enabled for your deployment yet. To turn it on, contact your Fiddler account team or Fiddler support; on self-hosted deployments, an administrator enables it through deployment configuration. Until it’s enabled, the Sampling rate field is unavailable in the UI and the API rejects requests that include a
sampling_rate.How it works
When evaluator downsampling is active, each matching span is checked against the rule’ssampling_rate before the evaluator runs:
- The decision is deterministic and trace-atomic — every span within the same trace receives the same evaluate-or-skip outcome, so multi-step and agentic traces are always scored as a unit.
- A rule left at the default
sampling_rate = 1.0behaves exactly as it does today, with no change in coverage.
sampling_rate = 0.1 evaluates roughly 10% of the traces it matches, cutting the evaluator’s LLM-as-a-Judge calls for that rule by about 90% — while every trace is still ingested and stored.
When to use evaluator downsampling
Use downsampling when evaluation cost or latency, not coverage, is your constraint:- Cost reduction at scale. LLM-as-a-Judge evaluators are expensive at production volumes. A representative sample typically preserves drift and quality signal at a fraction of the cost — a 5–20% sample is often equivalent to full coverage for trend monitoring. See Recommended minimum trace volume for choosing a rate.
- High-throughput applications. Reducing evaluation volume relieves backpressure on the enrichment pipeline during traffic spikes.
- Multiple evaluators on the same traffic. When several rules score the same high-volume application, downsampling each one keeps total evaluation cost manageable. (Each application supports up to 100 evaluator rules.)
Sampling is correlated across rules. Two rules with the same
sampling_rate evaluate the same subset of traces — the decision is hashed on the trace, not the rule, so multiple judges agree on which traces to score. If you want two evaluators to cover different traces, downsampling them at the same rate will not spread them apart.When not to use evaluator downsampling
Avoid downsampling (keepsampling_rate = 1.0) when:
- Your application is low-volume. On low-traffic applications, sampling removes too many data points and produces noisy, unreliable drift and quality signals.
- You need a very low rate (below ~1%). Rates under roughly 1% introduce statistical noise that can swamp the signal you are trying to measure. If cost is still a concern at 1%, your application volume is probably too low to downsample at all.
- You need every trace scored — for example, for compliance, exhaustive evaluation, or guardrail-style use cases. In those cases, leave the rule at
1.0. - You want to pause evaluation. Do not use a tiny
sampling_rateto “almost turn off” a rule. Disable the rule instead (see below).
Recommended minimum trace volume
Choose a rate that keeps the evaluated volume statistically meaningful, not just the matched volume. As a rule of thumb:- Aim for at least ~1,000 evaluated traces per monitoring window (the period over which you read drift or quality metrics).
- Avoid downsampling applications that match fewer than a few thousand traces per day for a given rule.
- Keep
sampling_rateat or above 0.01 (1%).
sampling_rate of 0.1 is reasonable at 100,000 daily traces (~10,000 evaluated); the same 0.1 on an application with only a few hundred daily traces will not produce a reliable signal.
These thresholds are recommendations, not enforced limits. The API accepts any sampling_rate in (0.0, 1.0] (to a resolution of 0.0001), so a rate like 0.01 is permitted — values below ~1% are simply unlikely to yield a usable monitoring signal, so treat 1% as a practical floor rather than a hard minimum.
sampling_rate vs. Disabling a Rule
A rule’s sampling_rate and its enabled state are independent controls. Use the one that matches your intent:
Key behaviors:
sampling_rate = 0.0is rejected — to stop evaluation entirely, disable the rule instead of using a near-zero rate.- A rule is created enabled; the create request does not accept an
enabledfield. To pause a rule, disable it afterward — toggle it off in the UI or send aPATCHwith{"enabled": false}. - Disabling a rule preserves its configured
sampling_rate, so re-enabling it restores your previous setting. - Changing
sampling_ratenever re-enables a disabled rule.
Changes take effect within about 60 seconds. When you update a rule’s
sampling_rate, evaluation already in flight may use the previous rate until the evaluator-rule cache refreshes (roughly a 60-second window). Plan rate changes with this short delay in mind.Configure downsampling
Using the REST API
Setsampling_rate when you create a rule, or update it later with a PATCH.
For an end-to-end walkthrough that creates a project, application, evaluator, and downsampled rule,
see REST API Walkthrough.
Create a rule that evaluates 10% of matching spans:
prompt and response).
Change the sampling rate on an existing rule:
sampling_rate outside (0.0, 1.0] (including 0.0 or any value above 1.0) returns 400 Bad Request.
Using the UI
When evaluator downsampling is enabled for your deployment, you set a rule’s sampling rate from the Evaluator Rules tab. When creating a rule, the Add Evaluator Rule dialog includes a Sampling rate field:- Open your application’s Evaluator Rules tab and click Add Rule.
- Configure the evaluator, input mappings, and filters as usual (see Evaluator Rules).
- Set the Sampling rate to the percentage of matching traces you want evaluated — for example, enter
10for 10%. Leave it at the default (100) to evaluate everything. - Save the rule.
The UI uses a percentage; the REST API uses a fraction. In the UI, enter
10 for 10%. The same rate over the API is sampling_rate: 0.1.The Sampling rate control is rolling out behind a feature flag and may not yet be visible in your environment. If evaluator downsampling is enabled for your deployment but the control has not yet rolled out, configure downsampling through the REST API in the meantime.
Python SDK
SDK support for configuringsampling_rate on Evaluator Rules is forthcoming. For now, configure downsampling through the REST API or the UI.
REST API Walkthrough
This walkthrough creates a GenAI project, an application, an evaluator, and a downsampled rule, then tunes and tears it down. All endpoints are under$FIDDLER_URL/v3/... and authenticate with a bearer token (Authorization: Bearer $FIDDLER_API_KEY).
Before you begin, ensure you have:
- Evaluator downsampling enabled for your deployment (see the availability note at the top of this page)
- A GenAI application with span data (see Evaluator Rules)
- A Fiddler API key — from Settings > Credentials
jqinstalled locally (optional, used to pretty-print API responses)
Project naming rule. Project names must start with a letter and then contain only letters, numbers, and underscores (
_) — no hyphens or spaces. Other resource names (applications, evaluators, rules) aren’t restricted to this pattern, but this guide uses it throughout for consistency.1. Set Up Your Environment
2. Confirm Connectivity and Auth
"NORMAL" (or "PAGINATED") and a number. A 401 means the URL or key is wrong.
3. Create a GenAI Project and Application
A project withasset_type=GEN_AI_APP is the container for GenAI applications; the application is what traces are sent to and what rules bind to.
4. Create an Evaluator
An evaluator is the scorer definition; the rule (next step) binds it to the application and is wheresampling_rate lives. The enrichment_name field selects the evaluator type. This example uses a built-in PII check (least setup):
For the cost-savings story, use an LLM-as-a-Judge evaluator instead (
enrichment_name: "llm_as_a_judge", with provider, model and prompt_spec in enrichment_config). Discover the available types and their config schemas with GET /v3/evaluators/get-config-options.5. Discover the Input Keys to Map
A rule maps the evaluator’s template variables to span attribute paths viamapped_input_keys. This call returns the keys the evaluator expects:
rule_input_keys: a string-typed key takes a single attribute path (e.g. "gen_ai.llm.output"); an array-typed key takes a list of paths.
6. Create the Rule With a Sampling Rate
This is the feature.sampling_rate: 0.1 means “score ~10% of matching traces; store 100%.”
If this returns
400 ... "Evaluator downsampling is not enabled for this deployment", the feature flag is off for your deployment — see the availability note at the top of this page.7. Read the Rule Back
Confirm the rate persisted. The list endpoint filters via afilter query param; build it with -g -G --data-urlencode so curl encodes the JSON and doesn’t treat [/] as glob characters:
"sampling_rate": 0.1. The traces are all still stored and queryable — only evaluation is sampled.
8. Tune the Sampling Rate Live
Dial coverage up or down on a live rule without recreating it:9. Pause Evaluation the Right Way
sampling_rate cannot be 0.0. To pause a rule entirely, set enabled=false (this preserves the configured rate, so re-enabling restores it):
sampling_rate: 0.0 and sampling_rate > 1.0 are rejected with a 400:
10. Clean Up
"ERROR", retry after a moment.
Quick Reference
sampling_rate rules: range (0.0, 1.0]; default 1.0 (score everything); 0.0 rejected (pause with enabled=false instead); values above 1.0 rejected; resolution is 4 decimal places (1 basis point).
Seeing Sampling in Action (Optional, Advanced)
Demonstrating a visible ~10% sample requires ingesting many traces and waiting for async enrichment. GenAI trace ingestion is OTLP-based (POST /v1/traces with an Authorization: Bearer header and a fiddler-application-id header) — it is not part of the v3 REST surface used above. After ingesting traces, query them back to confirm that sampled-out traces are still stored (just not scored):
Set the start and end times to a window that covers when you sent the traces.
evaluators array were scored (sampled in); stored spans with an empty array were sampled out — same data retained, evaluation skipped.
Related Documentation
- Evaluator Rules - Create and manage Evaluator Rules
- Track Evaluator Cost - See the tokens and estimated cost of each rule’s LLM-as-a-Judge calls
- Evaluator Rules REST API - Full create/update API contract, including the
sampling_ratefield - Explorer - Inspect ingested traces, including sampled-out traces