Skip to content

bun: Bun.serve has no ignoreStatusCodes #23885

Description

@isaacs

denoServeIntegration exposes ignoreStatusCodes and runs processHttpServerTransactionEvent; httpServerSpansIntegration does the same on Node. bunServerIntegration has no options at all, so 301/302/401/404 transactions are all recorded on Bun.

Work item. Add ignoreStatusCodes to bunServerIntegration, defaulting to DEFAULT_IGNORE_STATUS_CODES, and add the processEvent hook.

**Prior art **(related history only). No issue for Bun. The Deno equivalents shipped as #23313 and #23692 (both merged), which aligned denoHttpIntegration options with httpIntegration. Bun was not part of either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions