memory leaks reported by valgrind when otlp http exporter is used #3641
-
|
Even though I call please guide me how to implement a good cleanup function for OpenTelemetryC++ library so no error and memory leak problem appears on valgrind report. (I don't want to suppress such errors in valgrind report, ChatGPT already suggested that)
here is some example errors from valgrind report: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
^^^ these are all objects with static lifetime (like file static/global objects). |
Beta Was this translation helpful? Give feedback.
Please call
::google::protobuf::ShutdownProtobufLibrary()after all protobuf users, including otel-cpp’s OTLP exporters, have shut down.