Skip to content

feat: add remote error observability - #30

Merged
Nsttt merged 1 commit into
module-federation:mainfrom
dmchoi77:remote-error-observability
Nov 25, 2026
Merged

Nsttt merged 1 commit into
module-federation:mainfrom
dmchoi77:remote-error-observability

Conversation

@dmchoi77

Copy link
Copy Markdown
Contributor

Summary

Improve remote entry and server function failures with stable error codes and retry information. Add optional onError callbacks while preserving existing RemoteEntryError, 502 responses, and caller abort behavior.

Changes

  • Add shared RemoteErrorEvent, error codes, and HTTP metadata.
  • Add onError to the Node entry loader and server functions, with CommonJS/Vite and network/timeout/config classification.
  • Add RemoteServerFunctionError for SSR server function failures.
  • Isolate synchronous and asynchronous callback failures, and classify invalid HeadersInit values as configuration errors.
  • Add no default console logging, bound HTTP error previews, and exclude sensitive request data from events.
  • Update the README, release contract, and regression tests.

Validation

  • pnpm test:core: 84 tests passed
  • Runtime and server function regression tests: 35 tests passed
  • Package typecheck and build: passed
  • pnpm test:e2e: passed
  • Package packing, Prettier, and git diff --check: passed

@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/module-federation/tanstack/@module-federation/tanstack@30

commit: 697493d

@Nsttt
Nsttt merged commit 4f70270 into module-federation:main Nov 25, 2026
6 checks passed
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.

2 participants