Skip to content

WIP: feat: add mf observability plugin#4721

Open
2heal1 wants to merge 3 commits intomainfrom
feat/FederationDiagnosticError
Open

WIP: feat: add mf observability plugin#4721
2heal1 wants to merge 3 commits intomainfrom
feat/FederationDiagnosticError

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented May 9, 2026

Description

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 9, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit e4eb3d7
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69fef6bee68b860008b8fabf
😎 Deploy Preview https://deploy-preview-4721--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 9, 2026

🦋 Changeset detected

Latest commit: e4eb3d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 46 packages
Name Type
@module-federation/observability-plugin Minor
@module-federation/error-codes Major
@module-federation/runtime-core Major
@module-federation/runtime Major
@module-federation/dts-plugin Major
@module-federation/enhanced Major
@module-federation/rspress-plugin Major
@module-federation/webpack-bundler-runtime Major
website-new Patch
@module-federation/bridge-react Major
@module-federation/devtools Major
@module-federation/esbuild Patch
@module-federation/metro Major
@module-federation/modern-js-v3 Major
@module-federation/modern-js Major
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/retry-plugin Major
@module-federation/runtime-tools Major
@module-federation/bridge-vue3 Major
@module-federation/cli Major
@module-federation/manifest Major
@module-federation/rspack Major
@module-federation/rsbuild-plugin Major
@module-federation/storybook-addon Major
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/metro-plugin-rnc-cli Major
@module-federation/metro-plugin-rnef Major
@module-federation/metro-plugin-rock Major
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote Patch
@module-federation/inject-external-runtime-core-plugin Major
remote5 Patch
remote6 Patch
@module-federation/sdk Major
@module-federation/managers Major
@module-federation/third-party-dts-extractor Major
@module-federation/bridge-shared Major
@module-federation/bridge-react-webpack-plugin Major
create-module-federation Major
@module-federation/treeshake-server Major
@module-federation/treeshake-frontend Major
@module-federation/utilities Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

return fileName;
}

return `${filePath.replace(/\\/g, '/').replace(/\/+$/g, '')}/${fileName}`;
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 9, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/devtools@e4eb3d7

@module-federation/cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/cli@e4eb3d7

create-module-federation

pnpm add https://pkg.pr.new/module-federation/core/create-module-federation@e4eb3d7

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/dts-plugin@e4eb3d7

@module-federation/enhanced

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/enhanced@e4eb3d7

@module-federation/error-codes

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/error-codes@e4eb3d7

@module-federation/esbuild

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/esbuild@e4eb3d7

@module-federation/managers

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/managers@e4eb3d7

@module-federation/manifest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/manifest@e4eb3d7

@module-federation/metro

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro@e4eb3d7

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnc-cli@e4eb3d7

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnef@e4eb3d7

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rock@e4eb3d7

@module-federation/modern-js

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js@e4eb3d7

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js-v3@e4eb3d7

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/native-federation-tests@e4eb3d7

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/native-federation-typescript@e4eb3d7

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/nextjs-mf@e4eb3d7

@module-federation/node

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/node@e4eb3d7

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/observability-plugin@e4eb3d7

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/retry-plugin@e4eb3d7

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rsbuild-plugin@e4eb3d7

@module-federation/rspack

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspack@e4eb3d7

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspress-plugin@e4eb3d7

@module-federation/runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime@e4eb3d7

@module-federation/runtime-core

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-core@e4eb3d7

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-tools@e4eb3d7

@module-federation/sdk

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/sdk@e4eb3d7

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/storybook-addon@e4eb3d7

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/third-party-dts-extractor@e4eb3d7

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-frontend@e4eb3d7

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-server@e4eb3d7

@module-federation/typescript

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/typescript@e4eb3d7

@module-federation/utilities

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/utilities@e4eb3d7

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/webpack-bundler-runtime@e4eb3d7

@module-federation/bridge-react

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react@e4eb3d7

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react-webpack-plugin@e4eb3d7

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-shared@e4eb3d7

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-vue3@e4eb3d7

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/inject-external-runtime-core-plugin@e4eb3d7

commit: e4eb3d7

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Bundle Size Report

18 package(s) changed, 23 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/bridge-react 363.9 kB +1.7 kB (+0.5%) 1.3 kB +2 B (+0.2%)
@module-federation/bridge-vue3 164.2 kB +15.4 kB (+10.4%) 23.8 kB +1.2 kB (+5.2%)
@module-federation/cli 26.3 kB no change 786 B no change
@module-federation/core 39.1 kB no change 173 B no change
@module-federation/devtools 487.9 kB no change 3.9 kB no change
@module-federation/dts-plugin 309.3 kB +2.9 kB (+0.9%) 4.6 kB no change
@module-federation/enhanced 807.3 kB no change 672 B no change
@module-federation/error-codes 27.0 kB +1.9 kB (+7.4%) 210 B +10 B (+5.0%)
@module-federation/managers 69.8 kB no change 334 B no change
@module-federation/manifest 136.1 kB no change 182 B no change
@module-federation/metro-plugin-rnc-cli 0 B no change 314 B no change
@module-federation/node 193.4 kB no change 217 B no change
@module-federation/observability-plugin 228.4 kB +228.4 kB (+∞%) 12.3 kB +12.3 kB (+∞%)
@module-federation/retry-plugin 64.6 kB +2.9 kB (+4.7%) 2.8 kB no change
@module-federation/runtime-core 275.8 kB +23.1 kB (+9.1%) 477 B no change
@module-federation/storybook-addon 77.7 kB no change 100 B no change
@module-federation/utilities 110.6 kB no change 328 B no change
@module-federation/webpack-bundler-runtime 96.9 kB +3.0 kB (+3.2%) 405 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/bridge-react 17.6 kB +93 B (+0.5%) 18.0 kB +96 B (+0.5%)
@module-federation/bridge-vue3 18.0 kB +858 B (+4.9%) 17.8 kB +878 B (+5.1%)
@module-federation/cli 2.3 kB -32 B (-1.3%) 2.3 kB -32 B (-1.3%)
@module-federation/core 1.1 kB -32 B (-2.9%) 1.0 kB -31 B (-2.9%)
@module-federation/devtools 21.3 kB -35 B (-0.2%) 21.3 kB -35 B (-0.2%)
@module-federation/dts-plugin 14.3 kB no change 14.3 kB no change
@module-federation/enhanced 2.6 kB -45 B (-1.6%) 2.6 kB -45 B (-1.6%)
@module-federation/error-codes 1012 B +75 B (+8.0%) 1012 B +75 B (+8.0%)
@module-federation/managers 2.4 kB -27 B (-1.1%) 2.4 kB -27 B (-1.1%)
@module-federation/manifest 6.1 kB -40 B (-0.6%) 6.1 kB -40 B (-0.6%)
@module-federation/metro-plugin-rnc-cli 411 B -26 B (-5.9%) 411 B -26 B (-5.9%)
@module-federation/node 9.2 kB -29 B (-0.3%) 9.2 kB -29 B (-0.3%)
@module-federation/observability-plugin 9.3 kB +9.3 kB (+∞%) 9.3 kB +9.3 kB (+∞%)
@module-federation/retry-plugin 1.8 kB no change 1.8 kB no change
@module-federation/runtime-core 14.5 kB +832 B (+5.9%) 14.3 kB +864 B (+6.3%)
@module-federation/storybook-addon 1.9 kB -25 B (-1.3%) 1.7 kB -25 B (-1.4%)
@module-federation/utilities 2.6 kB -32 B (-1.2%) 2.6 kB -32 B (-1.2%)
@module-federation/webpack-bundler-runtime 4.0 kB no change 4.0 kB no change

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 20.7 kB +886 B (+4.4%) 21.7 kB +919 B (+4.3%) +1.0 kB +33 B

Total dist (raw): 6.52 MB (+279.2 kB (+4.4%))
Total ESM gzip: 87.6 kB (+13.5 kB (+18.2%))
Total web bundle (gzip): 190.8 kB (+10.8 kB (+6.0%))
Total node bundle (gzip): 191.3 kB (+10.8 kB (+6.0%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.8 kB (no change)
Tracked ./bundler node bundle (gzip): 4.8 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

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