Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
bc42093
Trim per-span work on metrics aggregator publish path
dougqh May 15, 2026
808d63d
Add SpanKindFilter and CoreSpan.isKind for bitmask-based kind checks
dougqh May 15, 2026
6aa620e
Use SpanKindFilter in ConflatingMetricsAggregator
dougqh May 15, 2026
a02d0a9
Add DDSpan-based variant of ConflatingMetricsAggregator JMH benchmark
dougqh May 15, 2026
ed38f18
Tighten SpanKindFilter encapsulation
dougqh May 15, 2026
034afc0
Defer MetricKey construction and cache lookups to the aggregator thread
dougqh May 15, 2026
3a056b3
Report aggregator inbox-full drops via health metrics
dougqh May 15, 2026
3355865
Merge branch 'master' into dougqh/conflating-metrics-producer-wins
dougqh May 18, 2026
950499c
Merge branch 'dougqh/conflating-metrics-producer-wins' into dougqh/co…
dougqh May 18, 2026
0294058
Add Hashtable and LongHashingUtils to datadog.trace.util
dougqh May 18, 2026
f751ab4
Add AggregateTable + AggregateEntry backed by Hashtable
dougqh May 15, 2026
f1b030a
Swap LRUCache for AggregateTable in Aggregator + route disable() clear
dougqh May 15, 2026
3738c85
Eliminate MetricKey: inline its fields onto AggregateEntry
dougqh May 15, 2026
129ebd1
Cap per-field metric tag cardinality via Property/TagCardinalityHandler
dougqh May 15, 2026
8aab88d
Canonicalize SpanSnapshot before hashing so blocked values collapse
dougqh May 15, 2026
9b70705
Defer peer-tag pair construction; capture values + canonicalize via s…
dougqh May 15, 2026
ceec2af
Rename ConflatingMetricsAggregator to ClientStatsAggregator
dougqh May 15, 2026
dd372e7
Cleanups: fix previousCounts size, drop dead code
dougqh May 15, 2026
3a1d67e
Hoist peer-tag schema sync to once per trace
dougqh May 15, 2026
fb32366
Use cached span.kind ordinal in metrics producer; drop tag-map lookup
dougqh May 15, 2026
1221b2b
Add client metrics pipeline design doc
dougqh May 15, 2026
46a9055
Add unit tests for Hashtable and LongHashingUtils
dougqh May 18, 2026
031dc89
Apply spotless formatting to Hashtable and LongHashingUtils
dougqh May 18, 2026
f9e63b9
Add JMH benchmarks for Hashtable.D1 and D2
dougqh May 18, 2026
a534e4f
Add benchmark results to HashtableBenchmark header
dougqh May 18, 2026
ba66a36
Address review feedback on Hashtable
dougqh May 19, 2026
3108941
Fix dropped argument in HashingUtils 5-arg Object hash
dougqh May 19, 2026
1415f12
Address review feedback on Hashtable
dougqh May 19, 2026
b7cee2f
Drop reflection in iterator tests via package-private D1.buckets
dougqh May 19, 2026
8414960
Resize previousCounts for inbox-full health metric
dougqh May 19, 2026
553ffb8
Fold AggregateMetric into AggregateEntry
dougqh May 19, 2026
07ed635
Avoid capturing lambda in Aggregator.report
dougqh May 19, 2026
df58ad7
Add context-passing forEach to Hashtable.D1 and D2
dougqh May 19, 2026
9c6e95c
Move forEach loop body to Support helper
dougqh May 19, 2026
7ab47f7
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 19, 2026
590ab4a
Delegate AggregateTable.forEach to Support.forEach
dougqh May 19, 2026
447ea33
Move bucket-head cast to Support.bucket helper
dougqh May 19, 2026
46f147a
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 19, 2026
dd5e13f
Use Support.bucket and type chain walks as AggregateEntry
dougqh May 19, 2026
df7f98f
Drop d1_/d2_ prefix from per-table benchmark methods
dougqh May 19, 2026
e72fd01
Add DDAgentFeaturesDiscovery.peerTagsRevision()
dougqh May 19, 2026
dce4b2c
Move peer-tag schema cache from PeerTagSchema statics to ClientStatsA…
dougqh May 19, 2026
e6ecc16
Add Hashtable.Support helpers: MAX_RATIO, insertHeadEntry, MutatingTa…
dougqh May 19, 2026
a409d5d
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 19, 2026
96b40b8
Simplify AggregateTable via new Hashtable.Support helpers
dougqh May 19, 2026
55ca204
Swap MAX_RATIO numerator/denominator pair for a single float + scaled…
dougqh May 19, 2026
7b9eccd
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 19, 2026
192de0c
Address second-round review on AggregateTable / Aggregator
dougqh May 19, 2026
4bac439
Tighten Hashtable docs + rename MAX_CAPACITY to MAX_BUCKETS
dougqh May 19, 2026
de289a0
Dedupe chain-head splice in D1/D2 via keyHash insertHeadEntry overload
dougqh May 19, 2026
2dd65ed
Tighten Entry.next encapsulation; doc hasNext; add D1/D2 getOrCreate
dougqh May 19, 2026
cc8d98a
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 19, 2026
6a9063b
Use keyHash insertHeadEntry overload in AggregateTable.findOrInsert
dougqh May 19, 2026
8f4c6f4
Merge dougqh/optimize-metric-key into dougqh/control-tag-cardinality
dougqh May 19, 2026
5a52622
Fold AggregateMetric into AggregateEntry
dougqh May 19, 2026
ece78c9
Remove accidentally-staged .claude/worktrees entries
dougqh May 19, 2026
dbb1702
Replace // nullable comments with @Nullable annotations on AggregateE…
dougqh May 19, 2026
545e74c
Drop redundant load-factor comment from AggregateTable ctor
dougqh May 19, 2026
9983a59
Import java.util.Objects in AggregateEntry instead of fully qualifying
dougqh May 19, 2026
d2e4477
Document evictOneStale cost and disable() best-effort offer
dougqh May 19, 2026
24969db
Skip SpanSnapshot allocation when the inbox is already at capacity
dougqh May 19, 2026
b6c4f5f
Address review on AggregateEntry nullables + PeerTagSchema revision
dougqh May 20, 2026
14f7f58
Consolidate cardinality-handler reset behind one entry point
dougqh May 20, 2026
b953b3a
Parameterize PropertyCardinalityHandler on T extends CharSequence
dougqh May 20, 2026
40e8cbd
Add long-lived LRU cache to PropertyCardinalityHandler
dougqh May 20, 2026
d88a863
Centralize per-field cardinality limits in MetricCardinalityLimits
dougqh May 20, 2026
d01036f
Reimplement cardinality handlers as open-addressed flat arrays
dougqh May 20, 2026
7b6c5f1
Drop parallel keys array in PropertyCardinalityHandler
dougqh May 20, 2026
10ca111
Drop type parameter from PropertyCardinalityHandler
dougqh May 20, 2026
4610078
Guard cardinality-handler ctor against pathological inputs
dougqh May 20, 2026
713aa34
Make EMPTY the universal absent sentinel for AggregateEntry UTF8 fields
dougqh May 20, 2026
617bc51
Use EMPTY consistently for absent values in peer-tag canonicalization
dougqh May 20, 2026
e1dec83
Tighten handler visibility + add tests for EMPTY-on-null contract
dougqh May 20, 2026
2336bb5
Notify on peer-tag cardinality blocks
dougqh May 20, 2026
5b6c5aa
Address PR #11387 review: dual-role docs, rename, @Nullable, consumer…
dougqh May 20, 2026
3c3c8b1
Lock in cardinality-handler prior-cycle UTF8 reuse with explicit tests
dougqh May 20, 2026
66ec7f6
Hashtable: add missing braces and detach removed/replaced entries
dougqh May 20, 2026
be823ab
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 20, 2026
10956b2
Add Hashtable and LongHashingUtils to datadog.trace.util
dougqh May 18, 2026
035dc09
Add unit tests for Hashtable and LongHashingUtils
dougqh May 18, 2026
7728b60
Apply spotless formatting to Hashtable and LongHashingUtils
dougqh May 18, 2026
8cd2d86
Add JMH benchmarks for Hashtable.D1 and D2
dougqh May 18, 2026
c689ef9
Add benchmark results to HashtableBenchmark header
dougqh May 18, 2026
75790eb
Address review feedback on Hashtable
dougqh May 19, 2026
6056ff7
Fix dropped argument in HashingUtils 5-arg Object hash
dougqh May 19, 2026
da55021
Address review feedback on Hashtable
dougqh May 19, 2026
8b8b088
Drop reflection in iterator tests via package-private D1.buckets
dougqh May 19, 2026
0fde7cd
Add context-passing forEach to Hashtable.D1 and D2
dougqh May 19, 2026
6d6c2e0
Move forEach loop body to Support helper
dougqh May 19, 2026
268de2b
Move bucket-head cast to Support.bucket helper
dougqh May 19, 2026
93813b9
Drop d1_/d2_ prefix from per-table benchmark methods
dougqh May 19, 2026
11a58bf
Add Hashtable.Support helpers: MAX_RATIO, insertHeadEntry, MutatingTa…
dougqh May 19, 2026
8f1828d
Swap MAX_RATIO numerator/denominator pair for a single float + scaled…
dougqh May 19, 2026
c0d3e26
Tighten Hashtable docs + rename MAX_CAPACITY to MAX_BUCKETS
dougqh May 19, 2026
a0978ba
Dedupe chain-head splice in D1/D2 via keyHash insertHeadEntry overload
dougqh May 19, 2026
e604a8f
Tighten Entry.next encapsulation; doc hasNext; add D1/D2 getOrCreate
dougqh May 19, 2026
e2642cd
Hashtable: add missing braces and detach removed/replaced entries
dougqh May 20, 2026
585ca56
Rename LongHashingUtils.hashCodeX(Object) to hash(Object) for API con…
dougqh May 20, 2026
aab5b3b
Merge remote-tracking branch 'origin/master' into dougqh/optimize-met…
dougqh May 20, 2026
88f169f
Merge branch 'dougqh/util-hashtable' into dougqh/optimize-metric-key
dougqh May 20, 2026
d61a3c6
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 20, 2026
795ba76
Merge remote-tracking branch 'origin/master' into dougqh/conflating-m…
dougqh May 20, 2026
e455801
Introduce slim PeerTagSchema; capture peer-tag values not pairs
dougqh May 20, 2026
c2ff012
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 20, 2026
1df8bd2
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 20, 2026
e766fd3
Address PR #11381 review (round 2)
dougqh May 21, 2026
8cfa4a5
Cover inbox-full fast-path in ConflatingMetricsAggregator.publish
dougqh May 21, 2026
3644470
Reconcile PeerTagSchema once per reporting cycle on the aggregator th…
dougqh May 21, 2026
1d1ba4d
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
57cb018
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 21, 2026
e7d0b42
Add bootstrap + reconcile coverage for PeerTagSchema
dougqh May 21, 2026
3d4f380
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
9391c48
Use writer.finishBucket() count in bootstrap test for cascade compati…
dougqh May 21, 2026
ba3225c
Use writer.finishBucket() count in bootstrap test for cascade compati…
dougqh May 21, 2026
517ef75
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 21, 2026
9bbe2d0
Rename bootstrap test to ClientStatsAggregator + adapt PeerTagSchemaTest
dougqh May 21, 2026
ec857b2
Merge branch 'master' into dougqh/conflating-metrics-background-work
dougqh May 21, 2026
ba0d390
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
0b86066
Preserve TRACER_METRICS_MAX_PENDING semantic + drop stale imports
dougqh May 21, 2026
f71384e
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
5c78dbb
Add AdversarialMetricsBenchmark for capacity-bound stress testing
dougqh May 21, 2026
471f8f7
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
70c20ef
Trim AdversarialMetricsBenchmark counters and clarify printout
dougqh May 21, 2026
7a074e0
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
68848ad
Close PeerTagSchema reconcile race + cover the swap branch
dougqh May 21, 2026
3fa7ac7
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
df3b31d
Adapt reconcileSwapsSchemaWhenTagSetChanges to AggregateEntry shape
dougqh May 21, 2026
2ea61c5
Clarify materializePeerTags hit-counting loop
dougqh May 21, 2026
8ec956d
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
a606692
Fix MetricsIntegrationTest entry recording call site
dougqh May 21, 2026
913e7d7
Make ConflatingMetricAggregatorTest counter checks actually verify
dougqh May 21, 2026
2dcea9a
Drop dead recordDurations(int, AtomicLongArray) batch API
dougqh May 21, 2026
50b06e5
Warn about colon split in AggregateEntry.of test factory
dougqh May 21, 2026
b0f21bf
Add coverage for disable() -> ClearSignal threading path
dougqh May 21, 2026
5a4685f
Drop unused Tags imports flagged by codenarc
dougqh May 21, 2026
200028d
Merge branch 'dougqh/conflating-metrics-background-work' into dougqh/…
dougqh May 21, 2026
0c50037
Drop unused Tags imports flagged by codenarc
dougqh May 21, 2026
078382f
Drop unused SpanKindFilter imports flagged by codenarc
dougqh May 21, 2026
7455fcc
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 21, 2026
4171d15
Sync client_metrics_design doc with reconcile-on-aggregator-thread
dougqh May 21, 2026
a1863db
Update dd-trace-core/src/main/java/datadog/trace/common/metrics/PeerT…
dougqh May 22, 2026
3fb86d3
Spread input hash before masking in cardinality-handler probes
dougqh May 22, 2026
e5cfb54
Apply Spotless Javadoc reflows on metrics files
dougqh May 22, 2026
a75bc4a
Address sarahchen6's review pass
dougqh May 22, 2026
4871892
Clamp TRACER_METRICS_MAX_PENDING instead of throwing on overflow
dougqh May 22, 2026
5f73c2d
Fix duplicate-entry bug for null-fielded SpanSnapshots
dougqh May 22, 2026
9dddf0a
Clear dirty flag in ClearSignal handler
dougqh May 22, 2026
2c8ad26
Merge branch 'master' into dougqh/conflating-metrics-background-work
dougqh May 22, 2026
80778c4
Drop conditional null-skip from peer-tag hashing
dougqh May 22, 2026
21e7545
Delete dead Aggregator.clearAggregates()
dougqh May 22, 2026
877d95c
Cursor-resume eviction in AggregateTable via half-open MutatingTableI…
dougqh May 22, 2026
e2f2585
Move AggregateEntry.of() test factory out of production class
dougqh May 22, 2026
2536aa2
Fix AggregateEntry equals/hashCode contract violation
dougqh May 22, 2026
c0449a3
Don't trample queued STOP in ClearSignal handler
dougqh May 22, 2026
be13431
Implement PeerTagSchema.equals symmetric with hashCode
dougqh May 22, 2026
d174938
Route service and spanKind through canonicalize for null-safety
dougqh May 22, 2026
641b5ef
Suppress forbiddenApis for tearDown's System.err diagnostics
dougqh May 22, 2026
7eedb25
Merge branch 'master' into dougqh/conflating-metrics-background-work
dougqh May 22, 2026
ce5b38b
Use DDAgentFeaturesDiscovery.state() hash for PeerTagSchema reconcile
dougqh May 22, 2026
2eaa58f
Convert TRACER_METRICS_MAX_PENDING rationale to /* */ block comment
dougqh May 22, 2026
cd56981
Merge remote-tracking branch 'origin/dougqh/conflating-metrics-backgr…
dougqh May 22, 2026
d1df95e
Add cardinality-isolation companions to AdversarialMetricsBenchmark
dougqh May 22, 2026
4a4b72e
Merge remote-tracking branch 'origin/dougqh/conflating-metrics-backgr…
dougqh May 22, 2026
b382df5
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 22, 2026
e4ed029
Reflow reconcilePeerTagSchema Javadoc after merge
dougqh May 26, 2026
133d3c1
Consolidate contentEquals; remove redundant stringContentEquals
dougqh May 26, 2026
2ae738b
Rename AggregateEntries -> AggregateEntryFixtures
dougqh May 26, 2026
f68ad4f
Tidy PR-iteration history out of test comments
dougqh May 26, 2026
620241e
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
6fdc2de
Merge remote-tracking branch 'origin/master' into dougqh/optimize-met…
dougqh May 26, 2026
a6b7854
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
3f32dfd
Merge remote-tracking branch 'origin/master' into dougqh/optimize-met…
dougqh May 26, 2026
3d8cccc
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
2d1536c
Make AggregateEntry.ERROR_TAG / TOP_LEVEL_TAG package-private
dougqh May 26, 2026
ad01d7d
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
5bf4d90
Move AggregateEntry equality contract to test-only helper
dougqh May 26, 2026
60edaa4
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
6b10345
Move AggregateEntry equality contract to test-only helper
dougqh May 26, 2026
a67ac23
Consolidate AggregateEntryFixtures into AggregateEntryTestUtils
dougqh May 26, 2026
2c3730e
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
1eb6826
Document deliberate cohesion + single-writer invariant on AggregateEntry
dougqh May 26, 2026
49124e5
Merge remote-tracking branch 'origin/dougqh/optimize-metric-key' into…
dougqh May 26, 2026
d5065f2
Avoid recomputing keyHash on AggregateTable miss
dougqh May 26, 2026
db08d58
Tighten client-stats cardinality plumbing
dougqh May 27, 2026
e6f2399
Document AggregateEntry.clear key-field persistence + SignalItem sing…
dougqh May 27, 2026
553bfbd
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 27, 2026
5e72808
Encapsulate EMPTY-as-absent sentinel + align hashOf field order with …
dougqh May 27, 2026
703c9e1
Preserve warm TagCardinalityHandlers across peer-tag schema rebuilds
dougqh May 27, 2026
92a9af3
Revert "Preserve warm TagCardinalityHandlers across peer-tag schema r…
dougqh May 27, 2026
3f4c1c6
Add trace.stats.cardinality.limits.enabled flag (default off)
dougqh May 27, 2026
6dc6701
Doc the regime shift after cardinality-limits flag landed
dougqh May 27, 2026
dcb1898
Drop useless @SuppressFBWarnings on AggregateEntry
dougqh May 27, 2026
a06c2a8
Update stale Javadoc on AggregateEntry's no-equals contract
dougqh May 27, 2026
acf2ffa
Tighten AggregateEntry / PeerTagSchema surface area
dougqh May 27, 2026
ccb4a4b
Tighten AggregateEntry surface — drop one-line factory, doc the conve…
dougqh May 27, 2026
1469811
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 27, 2026
d0c0be8
Merge branch 'master' into dougqh/optimize-metric-key
dougqh May 27, 2026
4af16c1
Drop unused UTF8BytesString import in MetricsIntegrationTest
dougqh May 27, 2026
c48399d
Merge branch 'dougqh/optimize-metric-key' into dougqh/control-tag-car…
dougqh May 27, 2026
dcd3407
Merge branch 'master' into dougqh/optimize-metric-key
dougqh May 27, 2026
f2ee559
Lazy-allocate the error latency histogram on AggregateEntry
dougqh May 27, 2026
690b796
Merge branch 'dougqh/lazy-error-latencies' into dougqh/control-tag-ca…
dougqh May 27, 2026
e61f9cd
Merge master into dougqh/control-tag-cardinality
dougqh Jun 1, 2026
4bdfa62
Merge dougqh/lazy-error-latencies: lazy histogram + namesHash caching
dougqh Jun 2, 2026
60a33f7
Clamp populatePeerTags iteration to Math.min(schema.size(), values.le…
dougqh Jun 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ protected long getFeaturesDiscoveryMinDelayMillis() {

private synchronized void discoverIfOutdated(final long maxElapsedMs) {
final long now = System.currentTimeMillis();
final long elapsed = now - discoveryState.lastTimeDiscovered;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude, this change is unnecessary

final State previous = discoveryState;
final long elapsed = now - previous.lastTimeDiscovered;
if (elapsed > maxElapsedMs) {
final State newState = new State();
doDiscovery(newState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public final class GeneralConfig {
public static final String TRACER_METRICS_MAX_PENDING = "trace.tracer.metrics.max.pending";
public static final String TRACER_METRICS_IGNORED_RESOURCES =
"trace.tracer.metrics.ignored.resources";
public static final String TRACE_STATS_CARDINALITY_LIMITS_ENABLED =
"trace.stats.cardinality.limits.enabled";

public static final String AZURE_APP_SERVICES = "azure.app.services";
public static final String INTERNAL_EXIT_ON_FAILURE = "trace.internal.exit.on.failure";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
@Fork(value = 1)
public class AdversarialMetricsBenchmark {

private ConflatingMetricsAggregator aggregator;
private ClientStatsAggregator aggregator;
private CountingHealthMetrics health;

@State(Scope.Thread)
Expand All @@ -72,13 +72,13 @@ public static class ThreadState {
public void setup() {
this.health = new CountingHealthMetrics();
this.aggregator =
new ConflatingMetricsAggregator(
new ClientStatsAggregator(
new WellKnownTags("", "", "", "", "", ""),
Collections.emptySet(),
new ConflatingMetricsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
new ClientStatsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
Collections.singleton("peer.hostname"), Collections.emptySet()),
this.health,
new ConflatingMetricsAggregatorBenchmark.NullSink(),
new ClientStatsAggregatorBenchmark.NullSink(),
2048,
2048,
false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(MICROSECONDS)
@Fork(value = 1)
public class ConflatingMetricsAggregatorBenchmark {
public class ClientStatsAggregatorBenchmark {
private final DDAgentFeaturesDiscovery featuresDiscovery =
new FixedAgentFeaturesDiscovery(
Collections.singleton("peer.hostname"), Collections.emptySet());
private final ConflatingMetricsAggregator aggregator =
new ConflatingMetricsAggregator(
private final ClientStatsAggregator aggregator =
new ClientStatsAggregator(
new WellKnownTags("", "", "", "", "", ""),
Collections.emptySet(),
featuresDiscovery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import org.openjdk.jmh.infra.Blackhole;

/**
* Parallels {@link ConflatingMetricsAggregatorBenchmark} but uses real {@link DDSpan} instances
* instead of the lightweight {@code SimpleSpan} mock, so the JIT exercises the production {@link
* Parallels {@link ClientStatsAggregatorBenchmark} but uses real {@link DDSpan} instances instead
* of the lightweight {@code SimpleSpan} mock, so the JIT exercises the production {@link
* CoreSpan#isKind} path (cached span.kind ordinal + bit-test) rather than the groovy mock's
* dispatch.
*
Expand All @@ -50,21 +50,21 @@
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(MICROSECONDS)
@Fork(value = 1)
public class ConflatingMetricsAggregatorDDSpanBenchmark {
public class ClientStatsAggregatorDDSpanBenchmark {

private static final CoreTracer TRACER =
CoreTracer.builder().writer(new NoopWriter()).strictTraceWrites(false).build();

private final DDAgentFeaturesDiscovery featuresDiscovery =
new ConflatingMetricsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
new ClientStatsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
Collections.singleton("peer.hostname"), Collections.emptySet());
private final ConflatingMetricsAggregator aggregator =
new ConflatingMetricsAggregator(
private final ClientStatsAggregator aggregator =
new ClientStatsAggregator(
new WellKnownTags("", "", "", "", "", ""),
Collections.emptySet(),
featuresDiscovery,
HealthMetrics.NO_OP,
new ConflatingMetricsAggregatorBenchmark.NullSink(),
new ClientStatsAggregatorBenchmark.NullSink(),
2048,
2048,
false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
@Fork(value = 1)
public class HighCardinalityPeerMetricsBenchmark {

private ConflatingMetricsAggregator aggregator;
private ClientStatsAggregator aggregator;
private CountingHealthMetrics health;

@State(Scope.Thread)
Expand All @@ -62,13 +62,13 @@ public static class ThreadState {
public void setup() {
this.health = new CountingHealthMetrics();
this.aggregator =
new ConflatingMetricsAggregator(
new ClientStatsAggregator(
new WellKnownTags("", "", "", "", "", ""),
Collections.emptySet(),
new ConflatingMetricsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
new ClientStatsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
Collections.singleton("peer.hostname"), Collections.emptySet()),
this.health,
new ConflatingMetricsAggregatorBenchmark.NullSink(),
new ClientStatsAggregatorBenchmark.NullSink(),
2048,
2048,
false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
@Fork(value = 1)
public class HighCardinalityResourceMetricsBenchmark {

private ConflatingMetricsAggregator aggregator;
private ClientStatsAggregator aggregator;
private CountingHealthMetrics health;

@State(Scope.Thread)
Expand All @@ -58,13 +58,13 @@ public static class ThreadState {
public void setup() {
this.health = new CountingHealthMetrics();
this.aggregator =
new ConflatingMetricsAggregator(
new ClientStatsAggregator(
new WellKnownTags("", "", "", "", "", ""),
Collections.emptySet(),
new ConflatingMetricsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
new ClientStatsAggregatorBenchmark.FixedAgentFeaturesDiscovery(
Collections.singleton("peer.hostname"), Collections.emptySet()),
this.health,
new ConflatingMetricsAggregatorBenchmark.NullSink(),
new ClientStatsAggregatorBenchmark.NullSink(),
2048,
2048,
false);
Expand Down
Loading
Loading