Search backend: split up `(streamHandler).StreamHTTP()`
Created by: camdencheek
This splits ServeHTTP
into three parts:
- the outer
ServeHTTP
, which is responsible for starting a trace, creating an event writer around the rawhttp.ResponseWrapper
, and handling any errors returned by serveHTTP - the inner
serveHTTP
, which is responsible for parsing the query, building the streams, and executing the search -
logSearch
, which is responsible for logging the timing and status results of an executed search.
Stacked on https://github.com/sourcegraph/sourcegraph/pull/37509
Test plan
Backend integration tests, unit tests, and manual smoke tests.