Fix metric expressions with `@return` by jpbempel · Pull Request #10178 · DataDog/dd-trace-java

@jpbempel

When compiling the metric expression using @return synthetic variable,
the type of @return was not propagated correctly and the generic
Object type was used instead which prevent to call length() when this
 is a String.
Fix also reporting errors as ProbeSatus by returning Error status
when instrumenting.

@jpbempel jpbempel changed the title Fix metric expressions with @return Fix metric expressions with @return

Dec 12, 2025

evanchooly

@jpbempel jpbempel deleted the jpbempel/fix-return-metric branch

December 13, 2025 07:39