How to disable profiling
KKulishov opened this issue · 2 comments
KKulishov commented
Hello!
I see in the code
profiling.Start() defer profiling.Stop()
Is it possible to add a condition that specifies whether to enable or not profiling?
apetruhin commented
@KKulishov,
It won't start if no PROFILES_ENDPOINT environment variable is configured.
coroot-node-agent/profiling/profiling.go
Line 50 in 4a80e36
KKulishov commented
Thank you