Fix Capture Expression on primitives by jpbempel · Pull Request #10549 · DataDog/dd-trace-java

@jpbempel

As CapturedValue are evaluated through Expression Language, we are
dropping types in the process and resulting having boxed primitives
captured and serialized into the snapshot.
We introduce keeping track of the type in EL values by introducing
ValueType enum. This way each EL expression evaluated can return
a value that keep the existing type (Object, int, long, double, ...)
Also lookup and getMember methods from ValueReferenceResolver are now
returning CapturedValue to get the type and be able to transfer it
to EL values

@jpbempel jpbempel deleted the jpbempel/fix-cap-expr-boxed-prims branch

February 11, 2026 06:12