Skip to content
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

Closed
ferranbt opened this issue Oct 26, 2021 · 0 comments · Fixed by #279
Closed

Debug traces longer than max Grpc message #217

ferranbt opened this issue Oct 26, 2021 · 0 comments · Fixed by #279

Comments

@ferranbt
Copy link
Contributor

ferranbt commented Oct 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant