Skip to content

Performance Monitoring for Web Streams (Response API) #9633

@lforst

Description

@lforst

This was originally raised in #9626

We currently don't track the performance of web streams well. What does count as web streams? Basically everything that returns data in chunks (probably even normal http responses too):

  • Websockets
  • Server Sent Events
  • Video streams
  • etc.

In node we do this reasonably well because we hook into res.end() which generally marks the end of a Stream, however, we need to improve the WinterCG case with Response. The reader seems to have a done property on stream chunks that we could use to mark the end of the stream.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions