create-spans-metric
Create APM span-based metrics (count or distribution) with filters and group-by to track custom application performance indicators.
Instructions
Create a metric based on APM span data (count or distribution, with filters and group-by)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The name of the span-based metric. Example: spans.request_duration | |
| aggregationType | Yes | Aggregation type. 'count' counts span events, 'distribution' creates a distribution metric | |
| path | No | Path to the metric value. Required for distribution metrics. Example: @duration | |
| includePercentiles | No | Whether to include percentile aggregations. Only for distribution metrics | |
| filterQuery | No | APM search query to filter spans. Example: service:web-app resource_name:GET_/api/users | |
| groupBy | No | Fields to group the metric by |