Replies: 1 comment 1 reply
-
For a while I've been thinking about refactoring the protobuf marshalers to remove state. It should be possible but I haven't had enough time to go investigate it. I opened this issue to track it: #5727 I'll likely get to it at some point, but you're welcome to take a crack at it if you have an urgent need 🙂 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now,
TraceRequestMarshaler
is added to a Future/Callback when exporting traces.However, in web services, Young GC occurs very frequently. As a result, many
TraceRequestMarshaler
objects are likely to be promoted to the Old Generation. This leads to a large number ofTraceRequestMarshaler
objects that won't be collected in Young GC, causing the Old Generation to store unnecessary objects.Is it necessary to set the
ResourceSpansMarshalers
in the request to null after sending the trace is complete to assist the program in better GC?We make the following changes in the exporter:
add
clear
method toMarshaler
Thank you for any response! 😊
Beta Was this translation helpful? Give feedback.
All reactions