pub struct Options {
pub include_hot_paths: bool,
pub min_invocations_for_hot: Option<u64>,
pub min_observation_volume: Option<u32>,
pub low_traffic_threshold: Option<f64>,
pub trace_count: Option<u64>,
pub period_days: Option<u32>,
pub deployments_seen: Option<u32>,
pub window_seconds: Option<u64>,
pub instances_observed: Option<u32>,
}Expand description
Runtime knobs. All fields are optional so new options can be added without a breaking change.
Fields§
§include_hot_paths: boolWhen true the sidecar computes and returns Response::hot_paths.
When false, hot-path computation is skipped entirely.
min_invocations_for_hot: Option<u64>Minimum invocation count a function must have to qualify as a hot path.
None defers to the sidecar’s spec default.
min_observation_volume: Option<u32>Minimum total trace volume before safe_to_delete / review_required
verdicts are allowed at high/very-high confidence. Below this the
sidecar caps confidence at Confidence::Medium. Spec default 5000.
low_traffic_threshold: Option<f64>Fraction of total trace_count below which an invoked function is
classified as Verdict::LowTraffic instead of active. Spec default
0.001 (0.1%).
trace_count: Option<u64>Total number of traces / request-equivalents the coverage dump covers.
Used as the denominator for the low-traffic ratio and gates the
minimum-observation-volume cap. When None the sidecar falls back to
the sum of observed invocations in the current request.
period_days: Option<u32>Number of days of observation the coverage dump represents. Surfaced
verbatim in Summary::period_days and Evidence::observation_days.
deployments_seen: Option<u32>Number of distinct production deployments that contributed coverage.
Surfaced verbatim in Summary::deployments_seen and
Evidence::deployments_observed.
window_seconds: Option<u64>Total observation window in seconds. Finer-grained than
Self::period_days; used to populate
CaptureQuality::window_seconds. When None the sidecar falls back
to period_days * 86_400. Added in protocol 0.3.0.
instances_observed: Option<u32>Number of distinct production instances that contributed coverage.
Used to populate CaptureQuality::instances_observed. When None
the sidecar falls back to Self::deployments_seen. Added in
protocol 0.3.0.