@powerhousedao/reactor-workflow 6.2.3-dev.77 → 6.2.3-dev.79
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/index.js +144 -17
- package/dist/index.js.map +1 -1
- package/dist/{telemetry-CohENxMR.js → telemetry-CJd29LsN.js} +12 -3
- package/dist/{telemetry-CohENxMR.js.map → telemetry-CJd29LsN.js.map} +1 -1
- package/dist/testing.js +1 -1
- package/dist/worker-entry.js +25 -1
- package/dist/worker-entry.js.map +1 -1
- package/package.json +7 -7
|
@@ -2895,7 +2895,7 @@ const manualTrigger = createTrigger({
|
|
|
2895
2895
|
});
|
|
2896
2896
|
//#endregion
|
|
2897
2897
|
//#region src/pieces/core/version.ts
|
|
2898
|
-
const CORE_PIECE_VERSION = "6.2.3-dev.
|
|
2898
|
+
const CORE_PIECE_VERSION = "6.2.3-dev.79";
|
|
2899
2899
|
//#endregion
|
|
2900
2900
|
//#region src/pieces/core/index.ts
|
|
2901
2901
|
const corePiece = createPiece({
|
|
@@ -4055,9 +4055,18 @@ function failSpan(span, error) {
|
|
|
4055
4055
|
message: error instanceof Error ? error.message : String(error)
|
|
4056
4056
|
});
|
|
4057
4057
|
}
|
|
4058
|
-
function tracedMethods(target, telemetry, prefix, parent) {
|
|
4058
|
+
function tracedMethods(target, telemetry, prefix, parent, nested = []) {
|
|
4059
|
+
const wrapped = /* @__PURE__ */ new Map();
|
|
4059
4060
|
return new Proxy(target, { get(object, property, receiver) {
|
|
4060
4061
|
const value = Reflect.get(object, property, receiver);
|
|
4062
|
+
if (typeof property === "string" && nested.includes(property) && typeof value === "object" && value !== null) {
|
|
4063
|
+
let inner = wrapped.get(property);
|
|
4064
|
+
if (!inner) {
|
|
4065
|
+
inner = tracedMethods(value, telemetry, `${prefix}.${property}`, parent);
|
|
4066
|
+
wrapped.set(property, inner);
|
|
4067
|
+
}
|
|
4068
|
+
return inner;
|
|
4069
|
+
}
|
|
4061
4070
|
if (typeof value !== "function" || typeof property !== "string") return value;
|
|
4062
4071
|
const phase = `${prefix}.${property}`;
|
|
4063
4072
|
return (...args) => telemetry.tracer.startActiveSpan(`workflow.${phase}`, {}, parent, (span) => {
|
|
@@ -4091,4 +4100,4 @@ function tracedMethods(target, telemetry, prefix, parent) {
|
|
|
4091
4100
|
//#endregion
|
|
4092
4101
|
export { rememberSecrets as $, AttachmentCache as A, SecretNotFoundError as B, blockLabel as C, describeBuiltinPiece as D, builtinPiece as E, shapeConnection as F, PieceWorkerPool as G, secretRefFromId as H, resolveStepInput as I, PieceWorkerError as J, PieceWorker as K, expressionsIn as L, StaticConnectionResolver as M, declaredConnectionIds as N, CORE_PIECE_NAME$1 as O, declaredReactorConnectionIds as P, redactMessage as Q, InMemorySecretProvider as R, storeHandlers as S, blockPorts as T, stepBlock as U, parseSecretRef as V, triggerBlock as W, containsRedactedMarker as X, PieceWorkerTimeoutError as Y, redact as Z, effectiveRetryPolicy as _, npmRegistryBaseUrl as _t, PieceRegistry as a, FileTooLargeError as at, isHostBound as b, isIndeterminateError as bt, packagePieces as c, pieceModuleRef as ct, runWorkflow as d, UnsupportedPieceFeatureError as dt, secretsFor as et, canonicalJson as f, authMethodFor as ft, checkDynamicProperties as g, fetchPieceBundle as gt, DynamicPropertiesError as h, ensurePieceBundle as ht, tracedSteps as i, extractDedupeKey as it, BoundConnectionResolver as j, CORE_PIECE_VERSION as k, RUN_DEADLINE_ERROR_NAME as l, sourcedResolver as lt, stepConfigHash as m, unsupportedTrigger as mt, WorkflowTelemetry as n, isPrivateAddress as nt, installedPiece as o, maxFileBytes as ot, hashOf as p, unsupportedAuth as pt, PieceWorkerDisposedError as q, tracedMethods as r, parseAddress as rt, installedPieces as s, bundleResolver as st, TELEMETRY_SCOPE as t, DEFAULT_EGRESS_POLICY as tt, errorNameOf as u, buildDescriptor as ut, ActivepiecesBlockExecutor as v, pieceRegistrySource as vt, unpinnedNote as w, resolvedBlock as x, CompositeBlockExecutor as y, setPieceRegistryUrl as yt, SecretDeletedError as z };
|
|
4093
4102
|
|
|
4094
|
-
//# sourceMappingURL=telemetry-
|
|
4103
|
+
//# sourceMappingURL=telemetry-CJd29LsN.js.map
|