Skip to content

bun: Bun.serve spans lack client address and protocol attributes #23886

Description

@isaacs

Deno sets client.address, client.port (honoring x-forwarded-for) and network.protocol.name. Bun sets none. Bun exposes the peer through server.requestIP(request).

Work item. Thread the Server instance into wrapRequestHandler and set the three attributes, gated on dataCollection.userInfo the way Deno does.

Activity

  1. linear-code commented on Sep 2, 2026

    @linear-code
  2. added
    javascriptPull requests that update javascript code
    on Sep 2, 2026
  3. added a commit that references this issue on Sep 25, 2026
    67d0c98
  4. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #24523, which was included in the 11.1.0 release.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions