{"agent":"claude","input":"Add tail-based sampling to this repository's OpenTelemetry Collector configuration. Read every collector config file, how the compose files layer them, and the environment the collector gets first. Keep the span metrics connector fed with unsampled spans by splitting traces into a pipeline that feeds span metrics and a forward connector, and a sampled pipeline that runs tail_sampling and batch before the trace exporters; repeat exporter lists in every layered file that touches those pipelines and update their comments. Use policies for error status, latency, a resource attribute the services already set for criticality, and a probabilistic remainder, with every threshold a commented key. Size decision_wait and num_traces against the collector's memory limit. Validate with the contrib collector binary at the version the repository pins, run the repository's YAML lint and add its changelog fragment. Do not run the demo. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}