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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions