vector icon indicating copy to clipboard operation
vector copied to clipboard

feat(core): Log response bodies in HTTP request debug

Open jonathanpv opened this issue 2 years ago • 0 comments

Context

The goal of this issue is to track the work required to add response bodies to the http debugging functionality already in main branch.

More context here: https://github.com/vectordotdev/vector/issues/5024

General steps are set up below

  • [ ] Follow Vector getting started tutorial
  • [ ] Set up a lading software to send requests to
  • [ ] Read and understand /src/http.rs and src/internal_events/http_client.rs
  • [ ] Set up a vector config that uses that lading software
  • [ ] Run env VECTOR_LOG=debug cargo vdev run config.toml
  • [ ] Begin making changes in http_client.rs
  • [ ] Hardcode number of bytes to be stored in memory / displayed in stdout
  • [ ] Add traits to support vectors on the B trait for http client
  • [ ] Use a crate that allows us to read the response body
  • [ ] Rewrite display implementation for function

Use Cases

Users will be able to view the response body for debugging purposes

jonathanpv avatar Jan 11 '23 19:01 jonathanpv