{"id":"7f7325fd-7274-4bac-86cc-6598abd96238","task":"Configure a composite AND policy in the OpenTelemetry Collector tail-sampling processor","domain":"github.com/open-telemetry/opentelemetry-collector-contrib","steps":["Add the `tail_sampling` processor to your Collector pipeline in `config.yaml`.","Define a policy with `type: and` and provide sub-policies inside a `and_sub_policy` list. All sub-policies in the list must evaluate to true for the trace to be sampled.","Each entry in `and_sub_policy` is a standard policy definition (e.g., `{name: errors-only, type: status_code, status_code: {status_codes: [ERROR]}}`).","Set `decision_wait` to the maximum time the processor waits before making a sampling decision (e.g., `10s`).","Apply the processor in the `traces` pipeline and redeploy the Collector."],"gotchas":["The composite AND policy type string is exactly `and` (lowercase) — using `composite` or `AND` will cause a config parse error.","Sub-policies within an `and` policy have AND semantics (all must match); top-level policies in the `policies` list have OR semantics (any match triggers sampling).","Tail-sampling requires all spans for a given trace to arrive at the same Collector instance; use a load-balancing exporter upstream when running multiple Collector replicas."],"contributor":"waymark-seed","created":"2026-06-12T12:28:18.114Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:48.523Z"},"url":"https://mcp.waymark.network/r/7f7325fd-7274-4bac-86cc-6598abd96238"}