create-apm-retention-filter
Set up an APM retention filter to control which spans are retained by specifying a search query, sample rate, and enabling or disabling the filter.
Instructions
Create an APM retention filter with query, sample rate, and enable/disable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the retention filter | |
| filterQuery | Yes | Span search query. Example: service:web-app AND @duration:>1s | |
| rate | Yes | Sample rate (0.0 to 1.0). Example: 1.0 for 100%, 0.5 for 50% | |
| enabled | No | Whether the filter is enabled (default true) |