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

[http] Further improvements to Envoy crash logging. #11432

Open
antoniovicente opened this issue Jun 3, 2020 · 0 comments
Open

[http] Further improvements to Envoy crash logging. #11432

antoniovicente opened this issue Jun 3, 2020 · 0 comments

Comments

@antoniovicente
Copy link
Contributor

Ref: #7300

We have some logging of the active request on crashes under callstacks that have a ScopeTrackerScopeState but those scoped objects are only associated with events under some HCM, UpstreamRequest and timer callstacks. Also, dumped information is fairly limited.

Possible improvements to ScopeTrackerScopeState to increase dump coverage:

  • Have the FileEventImpl or network::ConnectionImpl hold a pointer to the ScopeTrackedObject associated with the current H1 request or active H2 connection. Add a ScopeTrackerScopeState to ConnectionImpl::onFileEvent/FileEventImpl that calls the dump method on the active request's ScopeTrackedObject
  • Implement a ScopeTrackedObject for H2 connections that dumps basic info about active streams and recent stream/connection level events.

Possible improvements to request dumps:

  • LOG endpoints of the downstream and upstream connection
  • If in the middle of H1 header parsing, dump info about contents of read buffer (up to a limit, probably only the first buffer slice)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants