Skip to content

Add debug logging around requests #532

Open
@code-asher

Description

@code-asher

We should log the start and stop of all requests, especially the long-lived ones like /watch (which we call for the current workspace before connecting to a remote) and /watch-metadata (which we call for every running agent on every user-owned workspace in the sidebar, although this should only happen while the sidebar is displaying).

So probably a request ID, endpoint, method, and payload for the start log, and then a request ID, status code, response body, and duration for the end log.

Also I think our logs are not timestamped right now?

This should help us narrow down reports of leaks, since it looks like these connections may not be disposing when they should.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions