[o11y][nfc] Consolidate TailStreamWriterState | TailStreamWriter#5593
[o11y][nfc] Consolidate TailStreamWriterState | TailStreamWriter#5593
Conversation
|
Reviewers: Using |
d1a9eba to
74b1bc0
Compare
CodSpeed Performance ReportMerging #5593 will not alter performanceComparing Summary
Footnotes
|
74b1bc0 to
077d68e
Compare
|
Added another commit here needed just for downstream lint checks to pass – with this change trace-stream.c++ is covered by the mutable globals check, so the |
|
Overall LGTM but will leave the actual sign off to Mar. I would say that I'm not sure the |
It's not obvious based on the size of the diff, but this is mostly just moving code around. We are getting rid of the lambda by replacing it with a regular function and merge the functionality of TailStreamWriterState into TailStreamWriter, but the actual behavior should be the same as before. |
There was always a 1:1 mapping between TailStreamWriterState and TailStreamWriter, so the state struct being separate doesn't make sense.
This will make the STW implementation easier to maintain.