Commit c6f9664
Remove LegacyTagMap; OptimizedTagMap is the sole TagMap implementation (#11678)
Remove LegacyTagMap, its factory abstraction, and the trivial test enums
With one implementor, the optimized/legacy split is dead weight. Delete
LegacyTagMap and LegacyTagMapFactory; collapse the whole TagMapFactory
abstraction (TagMap.create()/create(int)/EMPTY now construct
OptimizedTagMap directly via a lazy EmptyHolder that avoids a
TagMap<->OptimizedTagMap static-init cycle). OptimizedTagMap is the sole
TagMap implementor, satisfying CHA's unique-implementor precondition.
Delete the now-trivial TagMapType/TagMapTypePair test enums and
de-parameterize their tests to plain @test; TagMapScenario (size-based)
stays. Drop stale "legacy and optimized" references from javadoc.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Remove the dead optimized.map.enabled config flag
The flag only chose between the optimized and legacy TagMap impls; with
Legacy gone it controls nothing. Remove the Config field/getter, the
GeneralConfig constant, and the metadata/supported-configurations.json
entry. Per the Config team, removing the registry entry is detected
automatically at the next release (FPD + public docs get a
"Max Version: v1.xx.0" marker), so the hard delete is the correct process.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merge branch 'master' into dougqh/kill-legacy-tagmap
Update internal-api/src/main/java/datadog/trace/api/TagMap.java
Co-authored-by: Sarah Chen <sarah.chen@datadoghq.com>
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent 11646d3 commit c6f9664
9 files changed
Lines changed: 110 additions & 742 deletions
File tree
- dd-trace-api/src/main/java/datadog/trace/api/config
- internal-api/src
- main/java/datadog/trace/api
- test/java/datadog/trace/api
- metadata
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
1397 | 1396 | | |
1398 | 1397 | | |
1399 | 1398 | | |
| |||
3247 | 3246 | | |
3248 | 3247 | | |
3249 | 3248 | | |
3250 | | - | |
3251 | 3249 | | |
3252 | 3250 | | |
3253 | 3251 | | |
| |||
5072 | 5070 | | |
5073 | 5071 | | |
5074 | 5072 | | |
5075 | | - | |
5076 | | - | |
5077 | | - | |
5078 | | - | |
5079 | 5073 | | |
5080 | 5074 | | |
5081 | 5075 | | |
| |||
0 commit comments