dd-trace-java icon indicating copy to clipboard operation
dd-trace-java copied to clipboard

Serialize restricted collections as regular object

Open jpbempel opened this issue 7 months ago • 0 comments

What Does This Do

We specially serialize collections/maps into snapshot using interfaces and calling methods like size() but we restrict this for JDK collections that are guarantee to be only in-memory. For all others we are raising an exception. Instead we should just serialize then as regular object with fields.

Motivation

https://github.com/DataDog/dd-trace-java/issues/7254

Additional Notes

Jira ticket: DEBUG-2502

jpbempel avatar Jul 03 '24 16:07 jpbempel