@module-federation/observability-plugin 0.0.0-feat-operate-openruntime-20260726083609 → 0.0.0-feat-operate-openruntime-20260726151341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +2 -2
- package/dist/browser.js +1 -1
- package/dist/chrome-devtool.js +1 -1
- package/dist/{core-Dr2vLEcg.js → core-Cbzq9Lsj.js} +68 -32
- package/dist/esm/browser.js +1 -1
- package/dist/esm/chrome-devtool.js +1 -1
- package/dist/esm/{core-CMTYccSC.js → core-BywcQy4b.js} +68 -32
- package/dist/esm/index.js +1 -1
- package/dist/esm/node.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node.js +1 -1
- package/package.json +3 -3
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @module-federation/observability-plugin
|
|
2
2
|
|
|
3
|
-
## 0.0.0-feat-operate-openruntime-
|
|
3
|
+
## 0.0.0-feat-operate-openruntime-20260726151341
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- 5b8174a: Extend the semantic shared registration and resolution hooks with explicit load context, while keeping provider, candidate, and selection diagnostics in the observability plugin.
|
|
13
13
|
- 54e7333: Extend the semantic manifest, remote entry, and preload hooks with resource context and results, while keeping cache, timing, timeout, failure, and recovery diagnostics in the observability plugin.
|
|
14
14
|
- Updated dependencies [d901e2c]
|
|
15
|
-
- @module-federation/sdk@0.0.0-feat-operate-openruntime-
|
|
15
|
+
- @module-federation/sdk@0.0.0-feat-operate-openruntime-20260726151341
|
|
16
16
|
|
|
17
17
|
## 2.5.4
|
|
18
18
|
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_core = require('./core-
|
|
2
|
+
const require_core = require('./core-Cbzq9Lsj.js');
|
|
3
3
|
|
|
4
4
|
//#region src/browser.ts
|
|
5
5
|
function ObservabilityPlugin(options = {}) {
|
package/dist/chrome-devtool.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_core = require('./core-
|
|
2
|
+
const require_core = require('./core-Cbzq9Lsj.js');
|
|
3
3
|
|
|
4
4
|
//#region src/chrome-devtool.ts
|
|
5
5
|
function ChromeObservabilityPlugin(options = {}) {
|
|
@@ -2039,6 +2039,7 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
2039
2039
|
const traceByBridgeId = /* @__PURE__ */ new Map();
|
|
2040
2040
|
const bridgeStartTimes = /* @__PURE__ */ new Map();
|
|
2041
2041
|
const bridgeOperations = /* @__PURE__ */ new WeakMap();
|
|
2042
|
+
const bridgeContexts = /* @__PURE__ */ new WeakMap();
|
|
2042
2043
|
const bridgeIdsByTarget = /* @__PURE__ */ new WeakMap();
|
|
2043
2044
|
const bridgeIdsByFallback = /* @__PURE__ */ new Map();
|
|
2044
2045
|
const latestBridgeOperations = /* @__PURE__ */ new Map();
|
|
@@ -3303,6 +3304,15 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3303
3304
|
error
|
|
3304
3305
|
};
|
|
3305
3306
|
};
|
|
3307
|
+
const completeBridgeContext = (rawContext, args) => {
|
|
3308
|
+
const context = bridgeContexts.get(rawContext) || { ...rawContext };
|
|
3309
|
+
const target = args.dom;
|
|
3310
|
+
const moduleName = args.moduleName || args.name;
|
|
3311
|
+
if (!context.target && typeof target === "object" && target !== null) context.target = target;
|
|
3312
|
+
if (!context.moduleName && typeof moduleName === "string") context.moduleName = moduleName;
|
|
3313
|
+
bridgeContexts.set(rawContext, context);
|
|
3314
|
+
return context;
|
|
3315
|
+
};
|
|
3306
3316
|
const recordBridgeSignal = (args, signal) => {
|
|
3307
3317
|
const origin = args.origin || lastRuntimeOrigin;
|
|
3308
3318
|
if (!origin || !prepareRuntimeOrigin(origin)) return;
|
|
@@ -3574,10 +3584,29 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3574
3584
|
})
|
|
3575
3585
|
}, resourceArgs.origin);
|
|
3576
3586
|
};
|
|
3587
|
+
const recordSharedRegistration = (registrationArgs, lifecycle) => {
|
|
3588
|
+
sharedRegistrationCounter += 1;
|
|
3589
|
+
const sharedInfo = createSharedRegistrationInfo(registrationArgs, `shared-register-${sharedRegistrationCounter}`);
|
|
3590
|
+
const registration = sharedInfo.registration;
|
|
3591
|
+
recordEvent({
|
|
3592
|
+
phase: "shared-registration",
|
|
3593
|
+
status: "success",
|
|
3594
|
+
requestId: registration?.registrationId,
|
|
3595
|
+
lifecycle,
|
|
3596
|
+
shared: sharedInfo,
|
|
3597
|
+
message: `shared:registration-${registration?.action || "unknown"}`,
|
|
3598
|
+
metadata: {
|
|
3599
|
+
scope: registration?.scope || registrationArgs.scope,
|
|
3600
|
+
action: registration?.action || "unknown",
|
|
3601
|
+
reason: registration?.reason || "unknown",
|
|
3602
|
+
trigger: registration?.trigger || registrationArgs.trigger
|
|
3603
|
+
}
|
|
3604
|
+
}, registrationArgs.origin);
|
|
3605
|
+
};
|
|
3577
3606
|
const legacyHooks = {
|
|
3578
3607
|
beforeBridgeRender(args, context) {
|
|
3579
3608
|
if (context) recordBridgeSignal({
|
|
3580
|
-
context,
|
|
3609
|
+
context: completeBridgeContext(context, args),
|
|
3581
3610
|
origin: args.origin
|
|
3582
3611
|
}, "start");
|
|
3583
3612
|
return returnHookArgs(args);
|
|
@@ -3585,13 +3614,14 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3585
3614
|
afterBridgeRender(args, result) {
|
|
3586
3615
|
if (result) recordBridgeResult({
|
|
3587
3616
|
...result,
|
|
3617
|
+
context: completeBridgeContext(result.context, args),
|
|
3588
3618
|
origin: args.origin
|
|
3589
3619
|
});
|
|
3590
3620
|
return returnHookArgs(args);
|
|
3591
3621
|
},
|
|
3592
3622
|
beforeBridgeDestroy(args, context) {
|
|
3593
3623
|
if (context) recordBridgeSignal({
|
|
3594
|
-
context,
|
|
3624
|
+
context: completeBridgeContext(context, args),
|
|
3595
3625
|
origin: args.origin
|
|
3596
3626
|
}, "start");
|
|
3597
3627
|
return returnHookArgs(args);
|
|
@@ -3599,6 +3629,7 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3599
3629
|
afterBridgeDestroy(args, result) {
|
|
3600
3630
|
if (result) recordBridgeResult({
|
|
3601
3631
|
...result,
|
|
3632
|
+
context: completeBridgeContext(result.context, args),
|
|
3602
3633
|
origin: args.origin
|
|
3603
3634
|
});
|
|
3604
3635
|
return returnHookArgs(args);
|
|
@@ -3606,6 +3637,19 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3606
3637
|
afterBridgeRouteSync(args) {
|
|
3607
3638
|
recordBridgeResult(args);
|
|
3608
3639
|
},
|
|
3640
|
+
beforeLoadManifest(args) {
|
|
3641
|
+
const manifestArgs = args;
|
|
3642
|
+
recordResourceStart({
|
|
3643
|
+
origin: manifestArgs.origin,
|
|
3644
|
+
id: manifestArgs.resourceOptions?.id || manifestArgs.moduleInfo.name || manifestArgs.manifestUrl,
|
|
3645
|
+
initiator: manifestArgs.resourceOptions?.initiator || "loadRemote",
|
|
3646
|
+
resourceType: "manifest",
|
|
3647
|
+
url: manifestArgs.manifestUrl,
|
|
3648
|
+
remote: manifestArgs.moduleInfo,
|
|
3649
|
+
expose: manifestArgs.resourceOptions?.expose,
|
|
3650
|
+
lifecycle: "beforeLoadManifest"
|
|
3651
|
+
});
|
|
3652
|
+
},
|
|
3609
3653
|
afterLoadManifest(args) {
|
|
3610
3654
|
const manifestArgs = args;
|
|
3611
3655
|
const outcome = manifestArgs.cached ? "cached" : manifestArgs.error ? manifestArgs.recovered ? "recovered" : "error" : "success";
|
|
@@ -3626,19 +3670,6 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3626
3670
|
lifecycle: "afterLoadManifest"
|
|
3627
3671
|
});
|
|
3628
3672
|
},
|
|
3629
|
-
fetch(url, _options, remoteInfo, resourceContext, origin) {
|
|
3630
|
-
if (!origin || !resourceContext || resourceContext.resourceType !== "manifest") return;
|
|
3631
|
-
recordResourceStart({
|
|
3632
|
-
origin,
|
|
3633
|
-
id: resourceContext.id,
|
|
3634
|
-
initiator: resourceContext.initiator,
|
|
3635
|
-
resourceType: resourceContext.resourceType,
|
|
3636
|
-
url,
|
|
3637
|
-
remote: remoteInfo,
|
|
3638
|
-
expose: resourceContext.expose,
|
|
3639
|
-
lifecycle: "fetch"
|
|
3640
|
-
});
|
|
3641
|
-
},
|
|
3642
3673
|
beforeRequest(args) {
|
|
3643
3674
|
const requestArgs = args;
|
|
3644
3675
|
if (!prepareRuntimeOrigin(requestArgs.origin)) return returnHookArgs(args);
|
|
@@ -3983,27 +4014,32 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3983
4014
|
});
|
|
3984
4015
|
return returnHookArgs(args);
|
|
3985
4016
|
},
|
|
4017
|
+
initContainerShareScopeMap(args) {
|
|
4018
|
+
const scopeArgs = args;
|
|
4019
|
+
if (shouldGuardSharedHooksByRuntimeVersion && !supportsRuntimeHookObservability(scopeArgs.origin)) return returnHookArgs(args);
|
|
4020
|
+
if (!prepareRuntimeOrigin(scopeArgs.origin)) return returnHookArgs(args);
|
|
4021
|
+
const shareScopeMap = getOriginShareScopeMap(scopeArgs.origin);
|
|
4022
|
+
Object.entries(scopeArgs.shareScope).forEach(([pkgName, versions]) => {
|
|
4023
|
+
Object.values(versions).forEach((shared) => {
|
|
4024
|
+
if (!shared) return;
|
|
4025
|
+
recordSharedRegistration({
|
|
4026
|
+
pkgName,
|
|
4027
|
+
scope: scopeArgs.scopeName,
|
|
4028
|
+
shared,
|
|
4029
|
+
registeredShared: shared,
|
|
4030
|
+
shareScopeMap,
|
|
4031
|
+
trigger: "container-init",
|
|
4032
|
+
origin: scopeArgs.origin
|
|
4033
|
+
}, "initContainerShareScopeMap");
|
|
4034
|
+
});
|
|
4035
|
+
});
|
|
4036
|
+
return returnHookArgs(args);
|
|
4037
|
+
},
|
|
3986
4038
|
afterRegisterShare(args) {
|
|
3987
4039
|
const registrationArgs = args;
|
|
3988
4040
|
if (shouldGuardSharedHooksByRuntimeVersion && !supportsRuntimeHookObservability(registrationArgs.origin)) return returnHookArgs(args);
|
|
3989
4041
|
if (!prepareRuntimeOrigin(registrationArgs.origin)) return returnHookArgs(args);
|
|
3990
|
-
|
|
3991
|
-
const sharedInfo = createSharedRegistrationInfo(registrationArgs, `shared-register-${sharedRegistrationCounter}`);
|
|
3992
|
-
const registration = sharedInfo.registration;
|
|
3993
|
-
recordEvent({
|
|
3994
|
-
phase: "shared-registration",
|
|
3995
|
-
status: "success",
|
|
3996
|
-
requestId: registration?.registrationId,
|
|
3997
|
-
lifecycle: "afterRegisterShare",
|
|
3998
|
-
shared: sharedInfo,
|
|
3999
|
-
message: `shared:registration-${registration?.action || "unknown"}`,
|
|
4000
|
-
metadata: {
|
|
4001
|
-
scope: registration?.scope || registrationArgs.scope,
|
|
4002
|
-
action: registration?.action || "unknown",
|
|
4003
|
-
reason: registration?.reason || "unknown",
|
|
4004
|
-
trigger: registration?.trigger || registrationArgs.trigger
|
|
4005
|
-
}
|
|
4006
|
-
}, registrationArgs.origin);
|
|
4042
|
+
recordSharedRegistration(registrationArgs, "afterRegisterShare");
|
|
4007
4043
|
return returnHookArgs(args);
|
|
4008
4044
|
},
|
|
4009
4045
|
beforeLoadShare(args) {
|
package/dist/esm/browser.js
CHANGED
|
@@ -2038,6 +2038,7 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
2038
2038
|
const traceByBridgeId = /* @__PURE__ */ new Map();
|
|
2039
2039
|
const bridgeStartTimes = /* @__PURE__ */ new Map();
|
|
2040
2040
|
const bridgeOperations = /* @__PURE__ */ new WeakMap();
|
|
2041
|
+
const bridgeContexts = /* @__PURE__ */ new WeakMap();
|
|
2041
2042
|
const bridgeIdsByTarget = /* @__PURE__ */ new WeakMap();
|
|
2042
2043
|
const bridgeIdsByFallback = /* @__PURE__ */ new Map();
|
|
2043
2044
|
const latestBridgeOperations = /* @__PURE__ */ new Map();
|
|
@@ -3302,6 +3303,15 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3302
3303
|
error
|
|
3303
3304
|
};
|
|
3304
3305
|
};
|
|
3306
|
+
const completeBridgeContext = (rawContext, args) => {
|
|
3307
|
+
const context = bridgeContexts.get(rawContext) || { ...rawContext };
|
|
3308
|
+
const target = args.dom;
|
|
3309
|
+
const moduleName = args.moduleName || args.name;
|
|
3310
|
+
if (!context.target && typeof target === "object" && target !== null) context.target = target;
|
|
3311
|
+
if (!context.moduleName && typeof moduleName === "string") context.moduleName = moduleName;
|
|
3312
|
+
bridgeContexts.set(rawContext, context);
|
|
3313
|
+
return context;
|
|
3314
|
+
};
|
|
3305
3315
|
const recordBridgeSignal = (args, signal) => {
|
|
3306
3316
|
const origin = args.origin || lastRuntimeOrigin;
|
|
3307
3317
|
if (!origin || !prepareRuntimeOrigin(origin)) return;
|
|
@@ -3573,10 +3583,29 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3573
3583
|
})
|
|
3574
3584
|
}, resourceArgs.origin);
|
|
3575
3585
|
};
|
|
3586
|
+
const recordSharedRegistration = (registrationArgs, lifecycle) => {
|
|
3587
|
+
sharedRegistrationCounter += 1;
|
|
3588
|
+
const sharedInfo = createSharedRegistrationInfo(registrationArgs, `shared-register-${sharedRegistrationCounter}`);
|
|
3589
|
+
const registration = sharedInfo.registration;
|
|
3590
|
+
recordEvent({
|
|
3591
|
+
phase: "shared-registration",
|
|
3592
|
+
status: "success",
|
|
3593
|
+
requestId: registration?.registrationId,
|
|
3594
|
+
lifecycle,
|
|
3595
|
+
shared: sharedInfo,
|
|
3596
|
+
message: `shared:registration-${registration?.action || "unknown"}`,
|
|
3597
|
+
metadata: {
|
|
3598
|
+
scope: registration?.scope || registrationArgs.scope,
|
|
3599
|
+
action: registration?.action || "unknown",
|
|
3600
|
+
reason: registration?.reason || "unknown",
|
|
3601
|
+
trigger: registration?.trigger || registrationArgs.trigger
|
|
3602
|
+
}
|
|
3603
|
+
}, registrationArgs.origin);
|
|
3604
|
+
};
|
|
3576
3605
|
const legacyHooks = {
|
|
3577
3606
|
beforeBridgeRender(args, context) {
|
|
3578
3607
|
if (context) recordBridgeSignal({
|
|
3579
|
-
context,
|
|
3608
|
+
context: completeBridgeContext(context, args),
|
|
3580
3609
|
origin: args.origin
|
|
3581
3610
|
}, "start");
|
|
3582
3611
|
return returnHookArgs(args);
|
|
@@ -3584,13 +3613,14 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3584
3613
|
afterBridgeRender(args, result) {
|
|
3585
3614
|
if (result) recordBridgeResult({
|
|
3586
3615
|
...result,
|
|
3616
|
+
context: completeBridgeContext(result.context, args),
|
|
3587
3617
|
origin: args.origin
|
|
3588
3618
|
});
|
|
3589
3619
|
return returnHookArgs(args);
|
|
3590
3620
|
},
|
|
3591
3621
|
beforeBridgeDestroy(args, context) {
|
|
3592
3622
|
if (context) recordBridgeSignal({
|
|
3593
|
-
context,
|
|
3623
|
+
context: completeBridgeContext(context, args),
|
|
3594
3624
|
origin: args.origin
|
|
3595
3625
|
}, "start");
|
|
3596
3626
|
return returnHookArgs(args);
|
|
@@ -3598,6 +3628,7 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3598
3628
|
afterBridgeDestroy(args, result) {
|
|
3599
3629
|
if (result) recordBridgeResult({
|
|
3600
3630
|
...result,
|
|
3631
|
+
context: completeBridgeContext(result.context, args),
|
|
3601
3632
|
origin: args.origin
|
|
3602
3633
|
});
|
|
3603
3634
|
return returnHookArgs(args);
|
|
@@ -3605,6 +3636,19 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3605
3636
|
afterBridgeRouteSync(args) {
|
|
3606
3637
|
recordBridgeResult(args);
|
|
3607
3638
|
},
|
|
3639
|
+
beforeLoadManifest(args) {
|
|
3640
|
+
const manifestArgs = args;
|
|
3641
|
+
recordResourceStart({
|
|
3642
|
+
origin: manifestArgs.origin,
|
|
3643
|
+
id: manifestArgs.resourceOptions?.id || manifestArgs.moduleInfo.name || manifestArgs.manifestUrl,
|
|
3644
|
+
initiator: manifestArgs.resourceOptions?.initiator || "loadRemote",
|
|
3645
|
+
resourceType: "manifest",
|
|
3646
|
+
url: manifestArgs.manifestUrl,
|
|
3647
|
+
remote: manifestArgs.moduleInfo,
|
|
3648
|
+
expose: manifestArgs.resourceOptions?.expose,
|
|
3649
|
+
lifecycle: "beforeLoadManifest"
|
|
3650
|
+
});
|
|
3651
|
+
},
|
|
3608
3652
|
afterLoadManifest(args) {
|
|
3609
3653
|
const manifestArgs = args;
|
|
3610
3654
|
const outcome = manifestArgs.cached ? "cached" : manifestArgs.error ? manifestArgs.recovered ? "recovered" : "error" : "success";
|
|
@@ -3625,19 +3669,6 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3625
3669
|
lifecycle: "afterLoadManifest"
|
|
3626
3670
|
});
|
|
3627
3671
|
},
|
|
3628
|
-
fetch(url, _options, remoteInfo, resourceContext, origin) {
|
|
3629
|
-
if (!origin || !resourceContext || resourceContext.resourceType !== "manifest") return;
|
|
3630
|
-
recordResourceStart({
|
|
3631
|
-
origin,
|
|
3632
|
-
id: resourceContext.id,
|
|
3633
|
-
initiator: resourceContext.initiator,
|
|
3634
|
-
resourceType: resourceContext.resourceType,
|
|
3635
|
-
url,
|
|
3636
|
-
remote: remoteInfo,
|
|
3637
|
-
expose: resourceContext.expose,
|
|
3638
|
-
lifecycle: "fetch"
|
|
3639
|
-
});
|
|
3640
|
-
},
|
|
3641
3672
|
beforeRequest(args) {
|
|
3642
3673
|
const requestArgs = args;
|
|
3643
3674
|
if (!prepareRuntimeOrigin(requestArgs.origin)) return returnHookArgs(args);
|
|
@@ -3982,27 +4013,32 @@ function createObservability(rawOptions = {}, adapterOptions = {}) {
|
|
|
3982
4013
|
});
|
|
3983
4014
|
return returnHookArgs(args);
|
|
3984
4015
|
},
|
|
4016
|
+
initContainerShareScopeMap(args) {
|
|
4017
|
+
const scopeArgs = args;
|
|
4018
|
+
if (shouldGuardSharedHooksByRuntimeVersion && !supportsRuntimeHookObservability(scopeArgs.origin)) return returnHookArgs(args);
|
|
4019
|
+
if (!prepareRuntimeOrigin(scopeArgs.origin)) return returnHookArgs(args);
|
|
4020
|
+
const shareScopeMap = getOriginShareScopeMap(scopeArgs.origin);
|
|
4021
|
+
Object.entries(scopeArgs.shareScope).forEach(([pkgName, versions]) => {
|
|
4022
|
+
Object.values(versions).forEach((shared) => {
|
|
4023
|
+
if (!shared) return;
|
|
4024
|
+
recordSharedRegistration({
|
|
4025
|
+
pkgName,
|
|
4026
|
+
scope: scopeArgs.scopeName,
|
|
4027
|
+
shared,
|
|
4028
|
+
registeredShared: shared,
|
|
4029
|
+
shareScopeMap,
|
|
4030
|
+
trigger: "container-init",
|
|
4031
|
+
origin: scopeArgs.origin
|
|
4032
|
+
}, "initContainerShareScopeMap");
|
|
4033
|
+
});
|
|
4034
|
+
});
|
|
4035
|
+
return returnHookArgs(args);
|
|
4036
|
+
},
|
|
3985
4037
|
afterRegisterShare(args) {
|
|
3986
4038
|
const registrationArgs = args;
|
|
3987
4039
|
if (shouldGuardSharedHooksByRuntimeVersion && !supportsRuntimeHookObservability(registrationArgs.origin)) return returnHookArgs(args);
|
|
3988
4040
|
if (!prepareRuntimeOrigin(registrationArgs.origin)) return returnHookArgs(args);
|
|
3989
|
-
|
|
3990
|
-
const sharedInfo = createSharedRegistrationInfo(registrationArgs, `shared-register-${sharedRegistrationCounter}`);
|
|
3991
|
-
const registration = sharedInfo.registration;
|
|
3992
|
-
recordEvent({
|
|
3993
|
-
phase: "shared-registration",
|
|
3994
|
-
status: "success",
|
|
3995
|
-
requestId: registration?.registrationId,
|
|
3996
|
-
lifecycle: "afterRegisterShare",
|
|
3997
|
-
shared: sharedInfo,
|
|
3998
|
-
message: `shared:registration-${registration?.action || "unknown"}`,
|
|
3999
|
-
metadata: {
|
|
4000
|
-
scope: registration?.scope || registrationArgs.scope,
|
|
4001
|
-
action: registration?.action || "unknown",
|
|
4002
|
-
reason: registration?.reason || "unknown",
|
|
4003
|
-
trigger: registration?.trigger || registrationArgs.trigger
|
|
4004
|
-
}
|
|
4005
|
-
}, registrationArgs.origin);
|
|
4041
|
+
recordSharedRegistration(registrationArgs, "afterRegisterShare");
|
|
4006
4042
|
return returnHookArgs(args);
|
|
4007
4043
|
},
|
|
4008
4044
|
beforeLoadShare(args) {
|
package/dist/esm/index.js
CHANGED
package/dist/esm/node.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_core = require('./core-
|
|
2
|
+
const require_core = require('./core-Cbzq9Lsj.js');
|
|
3
3
|
const require_browser = require('./browser.js');
|
|
4
4
|
const require_chrome_devtool = require('./chrome-devtool.js');
|
|
5
5
|
|
package/dist/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_core = require('./core-
|
|
2
|
+
const require_core = require('./core-Cbzq9Lsj.js');
|
|
3
3
|
|
|
4
4
|
//#region src/node.ts
|
|
5
5
|
const DEFAULT_NODE_DIRECTORY = ".mf/observability";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/observability-plugin",
|
|
3
|
-
"version": "0.0.0-feat-operate-openruntime-
|
|
3
|
+
"version": "0.0.0-feat-operate-openruntime-20260726151341",
|
|
4
4
|
"author": "module-federation",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/semver": "^7.5.8",
|
|
69
|
-
"@module-federation/runtime": "0.0.0-feat-operate-openruntime-
|
|
69
|
+
"@module-federation/runtime": "0.0.0-feat-operate-openruntime-20260726151341"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@openruntime/core": "https://pkg.pr.new/2heal1/openruntime/@openruntime/core@a13b382",
|
|
73
73
|
"semver": "^7.7.4",
|
|
74
|
-
"@module-federation/sdk": "0.0.0-feat-operate-openruntime-
|
|
74
|
+
"@module-federation/sdk": "0.0.0-feat-operate-openruntime-20260726151341"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "tsdown --config tsdown.config.ts && cp *.md dist",
|