Open Wondertan opened 2 years ago
Another idea @MSevey is to add similar API for on-demand profiling
another potentially useful api trigger is grabbing the current stack
// Get the stack traces of all running goroutines.
stack := make([]byte, 64e6)
n := runtime.Stack(stack, true)
Another idea @MSevey is to add similar API for on-demand profiling
here is how we implemented it in skyd if you want to copy paste.
https://gitlab.com/SkynetLabs/skyd/-/blob/master/node/api/daemon.go#L257
Otel allows traces to be enabled and disabled in runtime, which would be a nice UX feature. This depends on the ability to talk with the node in runtime through CLI