Add primitive versions of setMetric to DDSpanContext by dougqh · Pull Request #10516 · DataDog/dd-trace-java

added 2 commits

February 3, 2026 13:07
Adding primitive versions of setMetric to take advantage of TagMap, primitive versions already exist on AgentSpan/DDSpan

@dougqh

@dougqh

@dougqh

Apparently, Groovy does double dynamic dispatch which caused this test to fail now that there are primitive overrides.

Adding an explicit cast, so the test only calls setMetric(CharSeq, Number) which still functions the same as it did previously.

@dougqh

@dougqh

@mcculls