Commit 41fffe8
Wire per-component cardinality limits from Config (#11732)
Wire per-component cardinality limits from Config per Cardinality Limits RFC
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Raise RESOURCE cardinality limit to 1024 to avoid premature collapse
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Apply spotless formatting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Apply spotless formatting to Config.java
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix supported-configurations.json: use int not integer for cardinality limits
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Align cardinality config with .NET: rename peer_tags, raise http_endpoint, add table alias
- Rename DD_TRACE_STATS_PEER_TAG_CARDINALITY_LIMIT -> DD_TRACE_STATS_PEER_TAGS_CARDINALITY_LIMIT
to match .NET naming (plural)
- Raise DD_TRACE_STATS_HTTP_ENDPOINT_CARDINALITY_LIMIT default 64 -> 512 to match .NET
- Add DD_TRACE_STATS_CARDINALITY_LIMIT as the canonical name for the aggregate table cap,
aliasing the older DD_TRACE_TRACER_METRICS_MAX_AGGREGATES
- Add explicit string constants for all 10 per-field cardinality limit keys in GeneralConfig
so the config registry validator can find them
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Drop 7 Java-only per-field cardinality limit config keys
SERVICE, OPERATION, SERVICE_SOURCE, TYPE, SPAN_KIND, HTTP_METHOD, and
GRPC_STATUS_CODE have naturally low cardinality -- the aggregate table cap
(DD_TRACE_STATS_CARDINALITY_LIMIT) is sufficient backstop. Aligns the
public config surface with .NET (resource, http_endpoint, peer_tags, table cap).
Hardcoded defaults in MetricCardinalityLimits remain; config knobs can be added
later if a customer needs to tune them.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge branch 'master' into dougqh/cardinality-limits-config
Fix fixed-limit fields to bypass Config lookup, avoiding unsupported config key detection
Fields with hardcoded limits (service, operation, type, span_kind, http_method,
grpc_status_code, service_source) now pass their MetricCardinalityLimits constant
directly to PropertyCardinalityHandler instead of going through
Config.getTraceStatsCardinalityLimit. This prevents the test harness from flagging
DD_TRACE_STATS_SERVICE_CARDINALITY_LIMIT etc. as unsupported config keys.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove aliases from DD_TRACE_STATS_CARDINALITY_LIMIT registry entry
The central registry has no alias for this key; the local entry must match.
The code-level alias (Config.java reads DD_TRACE_TRACER_METRICS_MAX_AGGREGATES
as a fallback) is unaffected.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bump DD_TRACE_STATS_CARDINALITY_LIMIT to version B with legacy alias
Version A must match the central registry exactly (no aliases). The
DD_TRACE_TRACER_METRICS_MAX_AGGREGATES alias is Java-specific, so it
belongs in version B — matching the same pattern as
DD_TRACE_STATS_COMPUTATION_ENABLED aliasing DD_TRACE_TRACER_METRICS_ENABLED.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge branch 'master' into dougqh/cardinality-limits-config
Merge branch 'master' into dougqh/cardinality-limits-config
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent eaabb65 commit 41fffe8
7 files changed
Lines changed: 88 additions & 32 deletions
File tree
- dd-trace-api/src/main/java/datadog/trace/api/config
- dd-trace-core/src/main/java/datadog/trace/common/metrics
- internal-api/src/main/java/datadog/trace/api
- metadata
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
79 | 87 | | |
80 | 88 | | |
81 | 89 | | |
| 90 | + | |
82 | 91 | | |
83 | 92 | | |
84 | 93 | | |
| |||
Lines changed: 20 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 32 | + | |
37 | 33 | | |
38 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | | - | |
| 46 | + | |
41 | 47 | | |
42 | | - | |
43 | | - | |
| 48 | + | |
44 | 49 | | |
45 | | - | |
46 | | - | |
| 50 | + | |
47 | 51 | | |
48 | | - | |
| 52 | + | |
49 | 53 | | |
50 | | - | |
51 | | - | |
| 54 | + | |
52 | 55 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | | - | |
60 | | - | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
| |||
2260 | 2261 | | |
2261 | 2262 | | |
2262 | 2263 | | |
2263 | | - | |
| 2264 | + | |
| 2265 | + | |
2264 | 2266 | | |
2265 | 2267 | | |
2266 | 2268 | | |
| |||
3882 | 3884 | | |
3883 | 3885 | | |
3884 | 3886 | | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
3885 | 3897 | | |
3886 | 3898 | | |
3887 | 3899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10697 | 10697 | | |
10698 | 10698 | | |
10699 | 10699 | | |
| 10700 | + | |
| 10701 | + | |
| 10702 | + | |
| 10703 | + | |
| 10704 | + | |
| 10705 | + | |
| 10706 | + | |
| 10707 | + | |
10700 | 10708 | | |
10701 | 10709 | | |
10702 | 10710 | | |
| |||
10705 | 10713 | | |
10706 | 10714 | | |
10707 | 10715 | | |
| 10716 | + | |
| 10717 | + | |
| 10718 | + | |
| 10719 | + | |
| 10720 | + | |
| 10721 | + | |
| 10722 | + | |
| 10723 | + | |
| 10724 | + | |
| 10725 | + | |
| 10726 | + | |
| 10727 | + | |
| 10728 | + | |
| 10729 | + | |
| 10730 | + | |
| 10731 | + | |
| 10732 | + | |
| 10733 | + | |
| 10734 | + | |
| 10735 | + | |
| 10736 | + | |
| 10737 | + | |
| 10738 | + | |
| 10739 | + | |
10708 | 10740 | | |
10709 | 10741 | | |
10710 | 10742 | | |
| |||
0 commit comments