dd-trace-java
dd-trace-java copied to clipboard
Serialize restricted collections as regular object
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