Skip to content

[Integration] HTTP Errors#2647

Merged
gingerbenw merged 48 commits intonextfrom
integration/http-errors
Jan 19, 2026
Merged

[Integration] HTTP Errors#2647
gingerbenw merged 48 commits intonextfrom
integration/http-errors

Conversation

@gingerbenw
Copy link
Copy Markdown
Contributor

@gingerbenw gingerbenw commented Jan 5, 2026

Goal

This PR implements HTTP error tracking functionality by introducing a new @bugsnag/plugin-network-instrumentation plugin and a shared @bugsnag/request-tracker package. The plugin automatically captures and reports HTTP errors (4xx/5xx status codes) from both fetch and XMLHttpRequest APIs, with configurable error code ranges, request/response body size limits, and customizable filtering via callbacks.

Changeset

  • New request tracker package providing singleton-based instrumentation for fetch and XHR
  • HTTP errors plugin that leverages the request tracker to detect and report error status codes
  • Integration with existing network breadcrumbs plugin to use shared request tracking infrastructure

gingerbenw and others added 30 commits December 15, 2025 11:33
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gingerbenw gingerbenw changed the title Integration/http errors [Integration] HTTP Errors Jan 5, 2026
@gingerbenw gingerbenw self-assigned this Jan 5, 2026
Comment thread packages/plugin-http-errors/lib/redact-query-parameters.js Fixed

This comment was marked as resolved.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 5, 2026

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 47.74 kB 14.17 kB
After 50.40 kB 14.92 kB
± ⚠️ +2,655 bytes ⚠️ +749 bytes

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 2d3b570

@gingerbenw gingerbenw marked this pull request as ready for review January 14, 2026 13:44
Comment thread packages/plugin-network-instrumentation/lib/should-capture-status-code.js Outdated
Comment thread packages/plugin-network-instrumentation/lib/truncate.js Outdated
Comment thread packages/request-tracker/lib/headers-to-object.js Outdated
gingerbenw and others added 2 commits January 16, 2026 16:28
Co-authored-by: Jason <lemnik@users.noreply.github.com>
@gingerbenw gingerbenw requested a review from lemnik January 16, 2026 16:55
@gingerbenw gingerbenw merged commit 0522d07 into next Jan 19, 2026
50 checks passed
@gingerbenw gingerbenw deleted the integration/http-errors branch January 19, 2026 11:09
@gingerbenw gingerbenw mentioned this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants