-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug traces longer than max Grpc message #217
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rationale
Why should this feature exist?
With the
bor debug
command we get 'heap', 'cpu' and 'trace' traces from the running client. Both 'cpu' and 'trace' run for n seconds to get the trace, n is an flag in the cli. However, if the trace runs for more than 4 seconds, the output data is too big to be transferred over a single Grpc message.Implementation
Do you have ideas regarding the implementation of this feature?
Use something like https://github.com/mitchellh/go-grpc-net-conn to create a stream connection over the Grpc connection to send arbitrary amount of data and pipe that stream into a file.
The text was updated successfully, but these errors were encountered: