Skip to content

Performance Monitoring for Web Streams (Response API) #9633

Closed

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.

Activity

  1. changed the title [-]Performance with Web Streams[/-] [+]Performance Monitoring for Web Streams[/+] on Nov 22, 2023
  2. changed the title [-]Performance Monitoring for Web Streams[/-] [+]Performance Monitoring for Web Streams (fetch)[/+] on Nov 22, 2023
  3. changed the title [-]Performance Monitoring for Web Streams (fetch)[/-] [+]Performance Monitoring for Web Streams (`Response` API)[/+] on Nov 22, 2023
  4. mydea commented on Oct 23, 2026

    @mydea
    Member

    Streamed responses now keep the http.server span open until the body finishes on Cloudflare (#24932), Bun (#25025), and Deno, and fetchStreamPerformanceIntegration tracks streamed fetch bodies in the browser. Unifying the per-runtime implementations is tracked in #25577, so closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions