Fix exceptions raised from Collection values by jpbempel · Pull Request #10322 · DataDog/dd-trace-java

@jpbempel

Some RuntimeException thrown by collection values (ListValue, MapValue
 or SetValue) may not be caught correctly and handled as
EvaluationError leading to exception bubbling up to catches into
instrumented code but lost and only reported as telemetry logs.
All exceptions in collection values are now either
IllegalArgumentException or UnsupportedOperationException and handled
 as such in collection expressions and index expression.
As a a safety net, all expression evaluations are wrapped with a catch
 all exceptions to be wrapped as an EvaluationError with the full
expression string.

@jpbempel jpbempel deleted the jpbempel/fix-uncaught-ex-eval-el branch

January 9, 2026 18:25