|
1 | 1 | The `tag_cardinality_limit` transform gained two new top-level settings: |
2 | 2 |
|
3 | 3 | - **`tracking_scope`** controls how tag tracking state is partitioned across metrics: |
4 | | - - `global` (default — preserves existing behavior): all metrics share a single |
5 | | - tracking bucket, and the global `value_limit` caps the combined set of tag values |
6 | | - across them. |
| 4 | + - `global` (default — preserves existing behavior): all tags share a single |
| 5 | + tracking bucket across metrics, and the global `value_limit` caps this combined |
| 6 | + set of tag values them. |
7 | 7 | - `per_metric`: every distinct metric gets its own tracking bucket, providing tag |
8 | 8 | cardinality limiting for each metric in isolation at the cost of higher memory. |
9 | 9 |
|
10 | 10 | - **`max_tracked_keys`** caps the total number of distinct (metric, tag-key) pairs |
11 | 11 | tracked across the entire transform. When the cap is reached, additional pairs are |
12 | | - not allocated and tag values for those pairs pass through unchecked (they are |
13 | | - *not* dropped). Operators can detect this via the new |
14 | | - `tag_cardinality_untracked_events_total` counter (incremented once per event with at |
15 | | - least one untracked tag) and the `tag_cardinality_tracked_keys` gauge (current size |
16 | | - of the cardinality cache). Defaults to unlimited, preserving existing behavior. |
| 12 | + are not tracked and tag values for those pairs pass through unchecked. |
| 13 | + - Users can detect this via the new |
| 14 | + `tag_cardinality_untracked_events_total` counter (incremented once per event with at |
| 15 | + least one untracked tag) and the `tag_cardinality_tracked_keys` gauge (current size |
| 16 | + of the cardinality cache). Defaults to unlimited, preserving existing behavior. |
| 17 | + - When using `max_tracked_key` with global tracking scope, the specified cap |
| 18 | + will still apply (e.g. tags will be tracked as (<null>, tag-key)) |
17 | 19 |
|
18 | 20 | authors: ArunPiduguDD |
0 commit comments