Add primitive setters to DDSpanContext to take advantage of TagMap by dougqh · Pull Request #10018 · DataDog/dd-trace-java

added 9 commits

November 17, 2025 15:55
Previous static extraction caused a test to fail because links logic relied on having a side effect on the builder instance's List<AgentSpanLink>
Adding primitive setters to DDSpanContext to take advantage of TagMap primitive storage

Using precheck of tagInterceptor.needsIntercept to avoid boxing while calling tagInterceptor.interceptTag
To simplify the code, I pulled CoreTracer.getTagInterceptor() into a member variable of DDSpanContext

Unfortunately, that caused Mock call checks to fail, so needed to update the PendingTraceBufferTest

@dougqh

ygree

@dougqh

@dougqh

@dougqh

@dougqh

@dougqh dougqh deleted the dougqh/span-primitive-setters branch

December 10, 2025 12:13