@workflow/world-testing 5.0.0-beta.33 → 5.0.0-beta.35
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/.well-known/workflow/v1/flow.mjs +1756 -1079
- package/dist/.well-known/workflow/v1/manifest.json +521 -239
- package/dist/.well-known/workflow/v1/step.mjs +443 -213
- package/dist/src/index.d.mts.map +1 -1
- package/dist/src/index.mjs +3 -1
- package/dist/src/lineage.d.mts +8 -0
- package/dist/src/lineage.d.mts.map +1 -0
- package/dist/src/lineage.mjs +48 -0
- package/package.json +8 -8
|
@@ -16451,12 +16451,14 @@ function validateAttributeChanges(changes, context = {}) {
|
|
|
16451
16451
|
throw new AttributeValidationError(`Run attribute count would exceed limit ${ATTRIBUTE_MAX_PER_RUN} (post-merge ${postMerge})`);
|
|
16452
16452
|
}
|
|
16453
16453
|
}
|
|
16454
|
-
var RESERVED_ATTRIBUTE_KEY_PREFIX, ATTRIBUTE_KEY_MAX_LENGTH, ATTRIBUTE_VALUE_MAX_BYTES, ATTRIBUTE_MAX_PER_RUN, AttributeChangeSchema, AttributeChangesSchema, AttributeValidationError, valueByteLength;
|
|
16454
|
+
var RESERVED_ATTRIBUTE_KEY_PREFIX, ROOT_RUN_ID_ATTRIBUTE, PARENT_RUN_ID_ATTRIBUTE, ATTRIBUTE_KEY_MAX_LENGTH, ATTRIBUTE_VALUE_MAX_BYTES, ATTRIBUTE_MAX_PER_RUN, AttributeChangeSchema, AttributeChangesSchema, AttributeValidationError, valueByteLength;
|
|
16455
16455
|
var init_attributes = __esm({
|
|
16456
16456
|
"../world/dist/attributes.js"() {
|
|
16457
16457
|
"use strict";
|
|
16458
16458
|
init_zod();
|
|
16459
16459
|
RESERVED_ATTRIBUTE_KEY_PREFIX = "$";
|
|
16460
|
+
ROOT_RUN_ID_ATTRIBUTE = `${RESERVED_ATTRIBUTE_KEY_PREFIX}rootRunId`;
|
|
16461
|
+
PARENT_RUN_ID_ATTRIBUTE = `${RESERVED_ATTRIBUTE_KEY_PREFIX}parentRunId`;
|
|
16460
16462
|
ATTRIBUTE_KEY_MAX_LENGTH = 256;
|
|
16461
16463
|
ATTRIBUTE_VALUE_MAX_BYTES = 256;
|
|
16462
16464
|
ATTRIBUTE_MAX_PER_RUN = 64;
|
|
@@ -16619,6 +16621,17 @@ var init_events = __esm({
|
|
|
16619
16621
|
// stso.
|
|
16620
16622
|
stepCount: external_exports.number().int().positive().optional(),
|
|
16621
16623
|
eventCount: external_exports.number().int().positive().optional(),
|
|
16624
|
+
// Run-started-to-first-step: milliseconds from the `run_started` response
|
|
16625
|
+
// landing (or, under turbo, the local run synthesis instant) until this
|
|
16626
|
+
// step's start POST was issued. A sub-window of ttfs. Only reported
|
|
16627
|
+
// alongside the same eligibility as ttfs.
|
|
16628
|
+
rsfs: external_exports.number().optional(),
|
|
16629
|
+
// Synchronous workflow-function replay duration of only the FINAL replay
|
|
16630
|
+
// pass within the rsfs window (the pass that scheduled the first step),
|
|
16631
|
+
// excluding awaited network I/O — not accumulated across earlier
|
|
16632
|
+
// pre-first-step passes, so it is not "the replay portion of rsfs". Only
|
|
16633
|
+
// present alongside rsfs, and only for the run's first step.
|
|
16634
|
+
finalSchedulingReplay: external_exports.number().optional(),
|
|
16622
16635
|
// Names of the runtime's optional startup-latency optimizations that were
|
|
16623
16636
|
// active for this measurement (e.g. 'turbo', 'lazyStepStart',
|
|
16624
16637
|
// 'optimisticStart'), so latency metrics can be segmented by them.
|
|
@@ -19808,7 +19821,7 @@ function SemanticConvention(...names) {
|
|
|
19808
19821
|
value
|
|
19809
19822
|
]));
|
|
19810
19823
|
}
|
|
19811
|
-
var WorkflowName, WorkflowOperation, WorkflowRunId, WorkflowRunStatus, WorkflowStartedAt, WorkflowEventsCount, WorkflowArgumentsCount, WorkflowResultType, WorkflowTracePropagated, WorkflowTraceMode, WorkflowTurbo, WorkflowErrorName, WorkflowErrorMessage, WorkflowErrorCode, WorkflowStepsCreated, WorkflowHooksCreated, WorkflowWaitsCreated, WorkflowOwnedRecoverySteps, WorkflowBackstopWakesArmed, WorkflowRouteType, WorkflowRouteHandlerCached, WorkflowRouteInvocationCount, WorkflowRouteEntrypointAgeMs, WorkflowRouteModuleBodyInitMs, StepName, StepId, StepAttempt, StepStatus, StepMaxRetries, StepTracePropagated, StepTtfsMs, StepStsoMs, StepLatencyOptimizations, StepSkipped, StepSkipReason, StepArgumentsCount, StepResultType, StepErrorName, StepErrorMessage, StepFatalError, StepRetryExhausted, StepRetryTimeoutSeconds, StepRetryWillRetry, MessagingSystem, MessagingDestinationName, MessagingMessageId, MessagingOperationType, QueueOverheadMs, DeploymentId, HookToken, HookId, HookFound, WebhookHandlersTriggered, WorkflowSuspensionState, WorkflowSuspensionHookCount, WorkflowSuspensionStepCount, WorkflowSuspensionWaitCount, HttpRequestMethod, HttpRoute, UrlFull, ServerAddress, ServerPort, HttpResponseStatusCode, ErrorType, WorldParseFormat, WorkflowEventsPagesLoaded, QueueDeserializeTimeMs, QueueExecutionTimeMs, QueueSerializeTimeMs, SerializationOperation, SerializationCompressed, SerializationCodec, SerializationUncompressedBytes, SerializationStoredBytes, SerializationCompressionRatio, PeerService, RpcSystem, RpcService, RpcMethod, ErrorRetryable, ErrorCategory;
|
|
19824
|
+
var WorkflowName, WorkflowOperation, WorkflowRunId, WorkflowRunStatus, WorkflowStartedAt, WorkflowEventsCount, WorkflowArgumentsCount, WorkflowResultType, WorkflowTracePropagated, WorkflowTraceMode, WorkflowTurbo, WorkflowErrorName, WorkflowErrorMessage, WorkflowErrorCode, WorkflowStepsCreated, WorkflowHooksCreated, WorkflowWaitsCreated, WorkflowOwnedRecoverySteps, WorkflowBackstopWakesArmed, WorkflowRouteType, WorkflowRouteHandlerCached, WorkflowRouteInvocationCount, WorkflowRouteEntrypointAgeMs, WorkflowRouteModuleBodyInitMs, StepName, StepId, StepAttempt, StepStatus, StepMaxRetries, StepTracePropagated, StepTtfsMs, StepStsoMs, StepRsfsMs, StepFinalSchedulingReplayMs, StepLatencyOptimizations, StepSkipped, StepSkipReason, StepArgumentsCount, StepResultType, StepErrorName, StepErrorMessage, StepFatalError, StepRetryExhausted, StepRetryTimeoutSeconds, StepRetryWillRetry, MessagingSystem, MessagingDestinationName, MessagingMessageId, MessagingOperationType, QueueOverheadMs, DeploymentId, HookToken, HookId, HookFound, WebhookHandlersTriggered, WorkflowSuspensionState, WorkflowSuspensionHookCount, WorkflowSuspensionStepCount, WorkflowSuspensionWaitCount, HttpRequestMethod, HttpRoute, UrlFull, ServerAddress, ServerPort, HttpResponseStatusCode, ErrorType, WorldParseFormat, WorkflowEventsPagesLoaded, QueueDeserializeTimeMs, QueueExecutionTimeMs, QueueSerializeTimeMs, SerializationOperation, SerializationCompressed, SerializationCodec, SerializationUncompressedBytes, SerializationStoredBytes, SerializationCompressionRatio, PeerService, RpcSystem, RpcService, RpcMethod, ErrorRetryable, ErrorCategory;
|
|
19812
19825
|
var init_semantic_conventions = __esm({
|
|
19813
19826
|
"../core/dist/telemetry/semantic-conventions.js"() {
|
|
19814
19827
|
"use strict";
|
|
@@ -19845,6 +19858,8 @@ var init_semantic_conventions = __esm({
|
|
|
19845
19858
|
StepTracePropagated = SemanticConvention("step.trace.propagated");
|
|
19846
19859
|
StepTtfsMs = SemanticConvention("step.ttfs_ms");
|
|
19847
19860
|
StepStsoMs = SemanticConvention("step.stso_ms");
|
|
19861
|
+
StepRsfsMs = SemanticConvention("step.rsfs_ms");
|
|
19862
|
+
StepFinalSchedulingReplayMs = SemanticConvention("step.final_scheduling_replay_ms");
|
|
19848
19863
|
StepLatencyOptimizations = SemanticConvention("step.latency_optimizations");
|
|
19849
19864
|
StepSkipped = SemanticConvention("step.skipped");
|
|
19850
19865
|
StepSkipReason = SemanticConvention("step.skip_reason");
|
|
@@ -19897,85 +19912,21 @@ var init_semantic_conventions = __esm({
|
|
|
19897
19912
|
}
|
|
19898
19913
|
});
|
|
19899
19914
|
|
|
19900
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
19901
|
-
var require_globalThis = __commonJS({
|
|
19902
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js"(exports) {
|
|
19903
|
-
"use strict";
|
|
19904
|
-
Object.defineProperty(exports, "__esModule", {
|
|
19905
|
-
value: true
|
|
19906
|
-
});
|
|
19907
|
-
exports._globalThis = void 0;
|
|
19908
|
-
exports._globalThis = typeof globalThis === "object" ? globalThis : global;
|
|
19909
|
-
}
|
|
19910
|
-
});
|
|
19911
|
-
|
|
19912
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/node/index.js
|
|
19913
|
-
var require_node = __commonJS({
|
|
19914
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/node/index.js"(exports) {
|
|
19915
|
-
"use strict";
|
|
19916
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
19917
|
-
if (k2 === void 0) k2 = k;
|
|
19918
|
-
Object.defineProperty(o, k2, {
|
|
19919
|
-
enumerable: true,
|
|
19920
|
-
get: /* @__PURE__ */ __name(function() {
|
|
19921
|
-
return m[k];
|
|
19922
|
-
}, "get")
|
|
19923
|
-
});
|
|
19924
|
-
} : function(o, m, k, k2) {
|
|
19925
|
-
if (k2 === void 0) k2 = k;
|
|
19926
|
-
o[k2] = m[k];
|
|
19927
|
-
});
|
|
19928
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports1) {
|
|
19929
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports1, p)) __createBinding(exports1, m, p);
|
|
19930
|
-
};
|
|
19931
|
-
Object.defineProperty(exports, "__esModule", {
|
|
19932
|
-
value: true
|
|
19933
|
-
});
|
|
19934
|
-
__exportStar(require_globalThis(), exports);
|
|
19935
|
-
}
|
|
19936
|
-
});
|
|
19937
|
-
|
|
19938
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/index.js
|
|
19939
|
-
var require_platform = __commonJS({
|
|
19940
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/index.js"(exports) {
|
|
19941
|
-
"use strict";
|
|
19942
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
19943
|
-
if (k2 === void 0) k2 = k;
|
|
19944
|
-
Object.defineProperty(o, k2, {
|
|
19945
|
-
enumerable: true,
|
|
19946
|
-
get: /* @__PURE__ */ __name(function() {
|
|
19947
|
-
return m[k];
|
|
19948
|
-
}, "get")
|
|
19949
|
-
});
|
|
19950
|
-
} : function(o, m, k, k2) {
|
|
19951
|
-
if (k2 === void 0) k2 = k;
|
|
19952
|
-
o[k2] = m[k];
|
|
19953
|
-
});
|
|
19954
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports1) {
|
|
19955
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports1, p)) __createBinding(exports1, m, p);
|
|
19956
|
-
};
|
|
19957
|
-
Object.defineProperty(exports, "__esModule", {
|
|
19958
|
-
value: true
|
|
19959
|
-
});
|
|
19960
|
-
__exportStar(require_node(), exports);
|
|
19961
|
-
}
|
|
19962
|
-
});
|
|
19963
|
-
|
|
19964
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/version.js
|
|
19915
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/version.js
|
|
19965
19916
|
var require_version = __commonJS({
|
|
19966
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
19917
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/version.js"(exports) {
|
|
19967
19918
|
"use strict";
|
|
19968
19919
|
Object.defineProperty(exports, "__esModule", {
|
|
19969
19920
|
value: true
|
|
19970
19921
|
});
|
|
19971
19922
|
exports.VERSION = void 0;
|
|
19972
|
-
exports.VERSION = "1.9.
|
|
19923
|
+
exports.VERSION = "1.9.1";
|
|
19973
19924
|
}
|
|
19974
19925
|
});
|
|
19975
19926
|
|
|
19976
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
19927
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/internal/semver.js
|
|
19977
19928
|
var require_semver = __commonJS({
|
|
19978
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
19929
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/internal/semver.js"(exports) {
|
|
19979
19930
|
"use strict";
|
|
19980
19931
|
Object.defineProperty(exports, "__esModule", {
|
|
19981
19932
|
value: true
|
|
@@ -20054,20 +20005,19 @@ var require_semver = __commonJS({
|
|
|
20054
20005
|
}
|
|
20055
20006
|
});
|
|
20056
20007
|
|
|
20057
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20008
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/internal/global-utils.js
|
|
20058
20009
|
var require_global_utils = __commonJS({
|
|
20059
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20010
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/internal/global-utils.js"(exports) {
|
|
20060
20011
|
"use strict";
|
|
20061
20012
|
Object.defineProperty(exports, "__esModule", {
|
|
20062
20013
|
value: true
|
|
20063
20014
|
});
|
|
20064
20015
|
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = void 0;
|
|
20065
|
-
var platform_1 = require_platform();
|
|
20066
20016
|
var version_1 = require_version();
|
|
20067
20017
|
var semver_1 = require_semver();
|
|
20068
20018
|
var major = version_1.VERSION.split(".")[0];
|
|
20069
20019
|
var GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(`opentelemetry.js.api.${major}`);
|
|
20070
|
-
var _global =
|
|
20020
|
+
var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
20071
20021
|
function registerGlobal(type, instance, diag, allowOverride = false) {
|
|
20072
20022
|
var _a2;
|
|
20073
20023
|
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a2 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a2 !== void 0 ? _a2 : {
|
|
@@ -20111,9 +20061,9 @@ var require_global_utils = __commonJS({
|
|
|
20111
20061
|
}
|
|
20112
20062
|
});
|
|
20113
20063
|
|
|
20114
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20064
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js
|
|
20115
20065
|
var require_ComponentLogger = __commonJS({
|
|
20116
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20066
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js"(exports) {
|
|
20117
20067
|
"use strict";
|
|
20118
20068
|
Object.defineProperty(exports, "__esModule", {
|
|
20119
20069
|
value: true
|
|
@@ -20149,16 +20099,15 @@ var require_ComponentLogger = __commonJS({
|
|
|
20149
20099
|
if (!logger) {
|
|
20150
20100
|
return;
|
|
20151
20101
|
}
|
|
20152
|
-
|
|
20153
|
-
return logger[funcName](...args);
|
|
20102
|
+
return logger[funcName](namespace, ...args);
|
|
20154
20103
|
}
|
|
20155
20104
|
__name(logProxy, "logProxy");
|
|
20156
20105
|
}
|
|
20157
20106
|
});
|
|
20158
20107
|
|
|
20159
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20108
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/types.js
|
|
20160
20109
|
var require_types = __commonJS({
|
|
20161
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20110
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/types.js"(exports) {
|
|
20162
20111
|
"use strict";
|
|
20163
20112
|
Object.defineProperty(exports, "__esModule", {
|
|
20164
20113
|
value: true
|
|
@@ -20177,9 +20126,9 @@ var require_types = __commonJS({
|
|
|
20177
20126
|
}
|
|
20178
20127
|
});
|
|
20179
20128
|
|
|
20180
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20129
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js
|
|
20181
20130
|
var require_logLevelLogger = __commonJS({
|
|
20182
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20131
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js"(exports) {
|
|
20183
20132
|
"use strict";
|
|
20184
20133
|
Object.defineProperty(exports, "__esModule", {
|
|
20185
20134
|
value: true
|
|
@@ -20215,9 +20164,9 @@ var require_logLevelLogger = __commonJS({
|
|
|
20215
20164
|
}
|
|
20216
20165
|
});
|
|
20217
20166
|
|
|
20218
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20167
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/diag.js
|
|
20219
20168
|
var require_diag = __commonJS({
|
|
20220
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20169
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/diag.js"(exports) {
|
|
20221
20170
|
"use strict";
|
|
20222
20171
|
Object.defineProperty(exports, "__esModule", {
|
|
20223
20172
|
value: true
|
|
@@ -20232,6 +20181,13 @@ var require_diag = __commonJS({
|
|
|
20232
20181
|
static {
|
|
20233
20182
|
__name(this, "DiagAPI");
|
|
20234
20183
|
}
|
|
20184
|
+
/** Get the singleton instance of the DiagAPI API */
|
|
20185
|
+
static instance() {
|
|
20186
|
+
if (!this._instance) {
|
|
20187
|
+
this._instance = new _DiagAPI();
|
|
20188
|
+
}
|
|
20189
|
+
return this._instance;
|
|
20190
|
+
}
|
|
20235
20191
|
/**
|
|
20236
20192
|
* Private internal constructor
|
|
20237
20193
|
* @private
|
|
@@ -20282,21 +20238,14 @@ var require_diag = __commonJS({
|
|
|
20282
20238
|
self2.warn = _logProxy("warn");
|
|
20283
20239
|
self2.error = _logProxy("error");
|
|
20284
20240
|
}
|
|
20285
|
-
/** Get the singleton instance of the DiagAPI API */
|
|
20286
|
-
static instance() {
|
|
20287
|
-
if (!this._instance) {
|
|
20288
|
-
this._instance = new _DiagAPI();
|
|
20289
|
-
}
|
|
20290
|
-
return this._instance;
|
|
20291
|
-
}
|
|
20292
20241
|
};
|
|
20293
20242
|
exports.DiagAPI = DiagAPI;
|
|
20294
20243
|
}
|
|
20295
20244
|
});
|
|
20296
20245
|
|
|
20297
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20246
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js
|
|
20298
20247
|
var require_baggage_impl = __commonJS({
|
|
20299
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20248
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js"(exports) {
|
|
20300
20249
|
"use strict";
|
|
20301
20250
|
Object.defineProperty(exports, "__esModule", {
|
|
20302
20251
|
value: true
|
|
@@ -20317,10 +20266,7 @@ var require_baggage_impl = __commonJS({
|
|
|
20317
20266
|
return Object.assign({}, entry);
|
|
20318
20267
|
}
|
|
20319
20268
|
getAllEntries() {
|
|
20320
|
-
return Array.from(this._entries.entries())
|
|
20321
|
-
k,
|
|
20322
|
-
v
|
|
20323
|
-
]);
|
|
20269
|
+
return Array.from(this._entries.entries());
|
|
20324
20270
|
}
|
|
20325
20271
|
setEntry(key, entry) {
|
|
20326
20272
|
const newBaggage = new _BaggageImpl(this._entries);
|
|
@@ -20347,9 +20293,9 @@ var require_baggage_impl = __commonJS({
|
|
|
20347
20293
|
}
|
|
20348
20294
|
});
|
|
20349
20295
|
|
|
20350
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20296
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js
|
|
20351
20297
|
var require_symbol = __commonJS({
|
|
20352
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20298
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js"(exports) {
|
|
20353
20299
|
"use strict";
|
|
20354
20300
|
Object.defineProperty(exports, "__esModule", {
|
|
20355
20301
|
value: true
|
|
@@ -20359,9 +20305,9 @@ var require_symbol = __commonJS({
|
|
|
20359
20305
|
}
|
|
20360
20306
|
});
|
|
20361
20307
|
|
|
20362
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20308
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/utils.js
|
|
20363
20309
|
var require_utils = __commonJS({
|
|
20364
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20310
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/utils.js"(exports) {
|
|
20365
20311
|
"use strict";
|
|
20366
20312
|
Object.defineProperty(exports, "__esModule", {
|
|
20367
20313
|
value: true
|
|
@@ -20393,9 +20339,9 @@ var require_utils = __commonJS({
|
|
|
20393
20339
|
}
|
|
20394
20340
|
});
|
|
20395
20341
|
|
|
20396
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20342
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context/context.js
|
|
20397
20343
|
var require_context = __commonJS({
|
|
20398
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20344
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context/context.js"(exports) {
|
|
20399
20345
|
"use strict";
|
|
20400
20346
|
Object.defineProperty(exports, "__esModule", {
|
|
20401
20347
|
value: true
|
|
@@ -20435,14 +20381,14 @@ var require_context = __commonJS({
|
|
|
20435
20381
|
}
|
|
20436
20382
|
});
|
|
20437
20383
|
|
|
20438
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20384
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js
|
|
20439
20385
|
var require_consoleLogger = __commonJS({
|
|
20440
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20386
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js"(exports) {
|
|
20441
20387
|
"use strict";
|
|
20442
20388
|
Object.defineProperty(exports, "__esModule", {
|
|
20443
20389
|
value: true
|
|
20444
20390
|
});
|
|
20445
|
-
exports.DiagConsoleLogger = void 0;
|
|
20391
|
+
exports.DiagConsoleLogger = exports._originalConsoleMethods = void 0;
|
|
20446
20392
|
var consoleMap = [
|
|
20447
20393
|
{
|
|
20448
20394
|
n: "error",
|
|
@@ -20465,6 +20411,22 @@ var require_consoleLogger = __commonJS({
|
|
|
20465
20411
|
c: "trace"
|
|
20466
20412
|
}
|
|
20467
20413
|
];
|
|
20414
|
+
exports._originalConsoleMethods = {};
|
|
20415
|
+
if (typeof console !== "undefined") {
|
|
20416
|
+
const keys = [
|
|
20417
|
+
"error",
|
|
20418
|
+
"warn",
|
|
20419
|
+
"info",
|
|
20420
|
+
"debug",
|
|
20421
|
+
"trace",
|
|
20422
|
+
"log"
|
|
20423
|
+
];
|
|
20424
|
+
for (const key of keys) {
|
|
20425
|
+
if (typeof console[key] === "function") {
|
|
20426
|
+
exports._originalConsoleMethods[key] = console[key];
|
|
20427
|
+
}
|
|
20428
|
+
}
|
|
20429
|
+
}
|
|
20468
20430
|
var DiagConsoleLogger = class {
|
|
20469
20431
|
static {
|
|
20470
20432
|
__name(this, "DiagConsoleLogger");
|
|
@@ -20472,14 +20434,18 @@ var require_consoleLogger = __commonJS({
|
|
|
20472
20434
|
constructor() {
|
|
20473
20435
|
function _consoleFunc(funcName) {
|
|
20474
20436
|
return function(...args) {
|
|
20475
|
-
|
|
20476
|
-
|
|
20437
|
+
let theFunc = exports._originalConsoleMethods[funcName];
|
|
20438
|
+
if (typeof theFunc !== "function") {
|
|
20439
|
+
theFunc = exports._originalConsoleMethods["log"];
|
|
20440
|
+
}
|
|
20441
|
+
if (typeof theFunc !== "function" && console) {
|
|
20442
|
+
theFunc = console[funcName];
|
|
20477
20443
|
if (typeof theFunc !== "function") {
|
|
20478
20444
|
theFunc = console.log;
|
|
20479
20445
|
}
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20446
|
+
}
|
|
20447
|
+
if (typeof theFunc === "function") {
|
|
20448
|
+
return theFunc.apply(console, args);
|
|
20483
20449
|
}
|
|
20484
20450
|
};
|
|
20485
20451
|
}
|
|
@@ -20493,9 +20459,9 @@ var require_consoleLogger = __commonJS({
|
|
|
20493
20459
|
}
|
|
20494
20460
|
});
|
|
20495
20461
|
|
|
20496
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20462
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js
|
|
20497
20463
|
var require_NoopMeter = __commonJS({
|
|
20498
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20464
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js"(exports) {
|
|
20499
20465
|
"use strict";
|
|
20500
20466
|
Object.defineProperty(exports, "__esModule", {
|
|
20501
20467
|
value: true
|
|
@@ -20643,9 +20609,9 @@ var require_NoopMeter = __commonJS({
|
|
|
20643
20609
|
}
|
|
20644
20610
|
});
|
|
20645
20611
|
|
|
20646
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20612
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/Metric.js
|
|
20647
20613
|
var require_Metric = __commonJS({
|
|
20648
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20614
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/Metric.js"(exports) {
|
|
20649
20615
|
"use strict";
|
|
20650
20616
|
Object.defineProperty(exports, "__esModule", {
|
|
20651
20617
|
value: true
|
|
@@ -20659,9 +20625,9 @@ var require_Metric = __commonJS({
|
|
|
20659
20625
|
}
|
|
20660
20626
|
});
|
|
20661
20627
|
|
|
20662
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20628
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js
|
|
20663
20629
|
var require_TextMapPropagator = __commonJS({
|
|
20664
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20630
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js"(exports) {
|
|
20665
20631
|
"use strict";
|
|
20666
20632
|
Object.defineProperty(exports, "__esModule", {
|
|
20667
20633
|
value: true
|
|
@@ -20692,9 +20658,9 @@ var require_TextMapPropagator = __commonJS({
|
|
|
20692
20658
|
}
|
|
20693
20659
|
});
|
|
20694
20660
|
|
|
20695
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20661
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js
|
|
20696
20662
|
var require_NoopContextManager = __commonJS({
|
|
20697
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20663
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js"(exports) {
|
|
20698
20664
|
"use strict";
|
|
20699
20665
|
Object.defineProperty(exports, "__esModule", {
|
|
20700
20666
|
value: true
|
|
@@ -20725,9 +20691,9 @@ var require_NoopContextManager = __commonJS({
|
|
|
20725
20691
|
}
|
|
20726
20692
|
});
|
|
20727
20693
|
|
|
20728
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20694
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/context.js
|
|
20729
20695
|
var require_context2 = __commonJS({
|
|
20730
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20696
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/context.js"(exports) {
|
|
20731
20697
|
"use strict";
|
|
20732
20698
|
Object.defineProperty(exports, "__esModule", {
|
|
20733
20699
|
value: true
|
|
@@ -20799,9 +20765,9 @@ var require_context2 = __commonJS({
|
|
|
20799
20765
|
}
|
|
20800
20766
|
});
|
|
20801
20767
|
|
|
20802
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20768
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js
|
|
20803
20769
|
var require_trace_flags = __commonJS({
|
|
20804
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20770
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js"(exports) {
|
|
20805
20771
|
"use strict";
|
|
20806
20772
|
Object.defineProperty(exports, "__esModule", {
|
|
20807
20773
|
value: true
|
|
@@ -20815,9 +20781,9 @@ var require_trace_flags = __commonJS({
|
|
|
20815
20781
|
}
|
|
20816
20782
|
});
|
|
20817
20783
|
|
|
20818
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20784
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js
|
|
20819
20785
|
var require_invalid_span_constants = __commonJS({
|
|
20820
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20786
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js"(exports) {
|
|
20821
20787
|
"use strict";
|
|
20822
20788
|
Object.defineProperty(exports, "__esModule", {
|
|
20823
20789
|
value: true
|
|
@@ -20834,9 +20800,9 @@ var require_invalid_span_constants = __commonJS({
|
|
|
20834
20800
|
}
|
|
20835
20801
|
});
|
|
20836
20802
|
|
|
20837
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20803
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js
|
|
20838
20804
|
var require_NonRecordingSpan = __commonJS({
|
|
20839
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20805
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js"(exports) {
|
|
20840
20806
|
"use strict";
|
|
20841
20807
|
Object.defineProperty(exports, "__esModule", {
|
|
20842
20808
|
value: true
|
|
@@ -20847,8 +20813,8 @@ var require_NonRecordingSpan = __commonJS({
|
|
|
20847
20813
|
static {
|
|
20848
20814
|
__name(this, "NonRecordingSpan");
|
|
20849
20815
|
}
|
|
20850
|
-
constructor(
|
|
20851
|
-
this._spanContext =
|
|
20816
|
+
constructor(spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {
|
|
20817
|
+
this._spanContext = spanContext;
|
|
20852
20818
|
}
|
|
20853
20819
|
// Returns a SpanContext.
|
|
20854
20820
|
spanContext() {
|
|
@@ -20895,9 +20861,9 @@ var require_NonRecordingSpan = __commonJS({
|
|
|
20895
20861
|
}
|
|
20896
20862
|
});
|
|
20897
20863
|
|
|
20898
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20864
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/context-utils.js
|
|
20899
20865
|
var require_context_utils = __commonJS({
|
|
20900
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20866
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/context-utils.js"(exports) {
|
|
20901
20867
|
"use strict";
|
|
20902
20868
|
Object.defineProperty(exports, "__esModule", {
|
|
20903
20869
|
value: true
|
|
@@ -20941,9 +20907,9 @@ var require_context_utils = __commonJS({
|
|
|
20941
20907
|
}
|
|
20942
20908
|
});
|
|
20943
20909
|
|
|
20944
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20910
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js
|
|
20945
20911
|
var require_spancontext_utils = __commonJS({
|
|
20946
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
20912
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js"(exports) {
|
|
20947
20913
|
"use strict";
|
|
20948
20914
|
Object.defineProperty(exports, "__esModule", {
|
|
20949
20915
|
value: true
|
|
@@ -20951,15 +20917,127 @@ var require_spancontext_utils = __commonJS({
|
|
|
20951
20917
|
exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0;
|
|
20952
20918
|
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
20953
20919
|
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
20954
|
-
var
|
|
20955
|
-
|
|
20920
|
+
var isHex = new Uint8Array([
|
|
20921
|
+
0,
|
|
20922
|
+
0,
|
|
20923
|
+
0,
|
|
20924
|
+
0,
|
|
20925
|
+
0,
|
|
20926
|
+
0,
|
|
20927
|
+
0,
|
|
20928
|
+
0,
|
|
20929
|
+
0,
|
|
20930
|
+
0,
|
|
20931
|
+
0,
|
|
20932
|
+
0,
|
|
20933
|
+
0,
|
|
20934
|
+
0,
|
|
20935
|
+
0,
|
|
20936
|
+
0,
|
|
20937
|
+
0,
|
|
20938
|
+
0,
|
|
20939
|
+
0,
|
|
20940
|
+
0,
|
|
20941
|
+
0,
|
|
20942
|
+
0,
|
|
20943
|
+
0,
|
|
20944
|
+
0,
|
|
20945
|
+
0,
|
|
20946
|
+
0,
|
|
20947
|
+
0,
|
|
20948
|
+
0,
|
|
20949
|
+
0,
|
|
20950
|
+
0,
|
|
20951
|
+
0,
|
|
20952
|
+
0,
|
|
20953
|
+
0,
|
|
20954
|
+
0,
|
|
20955
|
+
0,
|
|
20956
|
+
0,
|
|
20957
|
+
0,
|
|
20958
|
+
0,
|
|
20959
|
+
0,
|
|
20960
|
+
0,
|
|
20961
|
+
0,
|
|
20962
|
+
0,
|
|
20963
|
+
0,
|
|
20964
|
+
0,
|
|
20965
|
+
0,
|
|
20966
|
+
0,
|
|
20967
|
+
0,
|
|
20968
|
+
0,
|
|
20969
|
+
1,
|
|
20970
|
+
1,
|
|
20971
|
+
1,
|
|
20972
|
+
1,
|
|
20973
|
+
1,
|
|
20974
|
+
1,
|
|
20975
|
+
1,
|
|
20976
|
+
1,
|
|
20977
|
+
1,
|
|
20978
|
+
1,
|
|
20979
|
+
0,
|
|
20980
|
+
0,
|
|
20981
|
+
0,
|
|
20982
|
+
0,
|
|
20983
|
+
0,
|
|
20984
|
+
0,
|
|
20985
|
+
0,
|
|
20986
|
+
1,
|
|
20987
|
+
1,
|
|
20988
|
+
1,
|
|
20989
|
+
1,
|
|
20990
|
+
1,
|
|
20991
|
+
1,
|
|
20992
|
+
0,
|
|
20993
|
+
0,
|
|
20994
|
+
0,
|
|
20995
|
+
0,
|
|
20996
|
+
0,
|
|
20997
|
+
0,
|
|
20998
|
+
0,
|
|
20999
|
+
0,
|
|
21000
|
+
0,
|
|
21001
|
+
0,
|
|
21002
|
+
0,
|
|
21003
|
+
0,
|
|
21004
|
+
0,
|
|
21005
|
+
0,
|
|
21006
|
+
0,
|
|
21007
|
+
0,
|
|
21008
|
+
0,
|
|
21009
|
+
0,
|
|
21010
|
+
0,
|
|
21011
|
+
0,
|
|
21012
|
+
0,
|
|
21013
|
+
0,
|
|
21014
|
+
0,
|
|
21015
|
+
0,
|
|
21016
|
+
0,
|
|
21017
|
+
0,
|
|
21018
|
+
1,
|
|
21019
|
+
1,
|
|
21020
|
+
1,
|
|
21021
|
+
1,
|
|
21022
|
+
1,
|
|
21023
|
+
1
|
|
21024
|
+
]);
|
|
21025
|
+
function isValidHex(id, length) {
|
|
21026
|
+
if (typeof id !== "string" || id.length !== length) return false;
|
|
21027
|
+
let r = 0;
|
|
21028
|
+
for (let i = 0; i < id.length; i += 4) {
|
|
21029
|
+
r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
|
|
21030
|
+
}
|
|
21031
|
+
return r === length;
|
|
21032
|
+
}
|
|
21033
|
+
__name(isValidHex, "isValidHex");
|
|
20956
21034
|
function isValidTraceId(traceId) {
|
|
20957
|
-
return
|
|
21035
|
+
return isValidHex(traceId, 32) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
|
|
20958
21036
|
}
|
|
20959
21037
|
__name(isValidTraceId, "isValidTraceId");
|
|
20960
21038
|
exports.isValidTraceId = isValidTraceId;
|
|
20961
21039
|
function isValidSpanId(spanId) {
|
|
20962
|
-
return
|
|
21040
|
+
return isValidHex(spanId, 16) && spanId !== invalid_span_constants_1.INVALID_SPANID;
|
|
20963
21041
|
}
|
|
20964
21042
|
__name(isValidSpanId, "isValidSpanId");
|
|
20965
21043
|
exports.isValidSpanId = isValidSpanId;
|
|
@@ -20976,9 +21054,9 @@ var require_spancontext_utils = __commonJS({
|
|
|
20976
21054
|
}
|
|
20977
21055
|
});
|
|
20978
21056
|
|
|
20979
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21057
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js
|
|
20980
21058
|
var require_NoopTracer = __commonJS({
|
|
20981
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21059
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js"(exports) {
|
|
20982
21060
|
"use strict";
|
|
20983
21061
|
Object.defineProperty(exports, "__esModule", {
|
|
20984
21062
|
value: true
|
|
@@ -21030,15 +21108,15 @@ var require_NoopTracer = __commonJS({
|
|
|
21030
21108
|
};
|
|
21031
21109
|
exports.NoopTracer = NoopTracer;
|
|
21032
21110
|
function isSpanContext(spanContext) {
|
|
21033
|
-
return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number";
|
|
21111
|
+
return spanContext !== null && typeof spanContext === "object" && "spanId" in spanContext && typeof spanContext["spanId"] === "string" && "traceId" in spanContext && typeof spanContext["traceId"] === "string" && "traceFlags" in spanContext && typeof spanContext["traceFlags"] === "number";
|
|
21034
21112
|
}
|
|
21035
21113
|
__name(isSpanContext, "isSpanContext");
|
|
21036
21114
|
}
|
|
21037
21115
|
});
|
|
21038
21116
|
|
|
21039
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21117
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js
|
|
21040
21118
|
var require_ProxyTracer = __commonJS({
|
|
21041
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21119
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js"(exports) {
|
|
21042
21120
|
"use strict";
|
|
21043
21121
|
Object.defineProperty(exports, "__esModule", {
|
|
21044
21122
|
value: true
|
|
@@ -21050,8 +21128,8 @@ var require_ProxyTracer = __commonJS({
|
|
|
21050
21128
|
static {
|
|
21051
21129
|
__name(this, "ProxyTracer");
|
|
21052
21130
|
}
|
|
21053
|
-
constructor(
|
|
21054
|
-
this._provider =
|
|
21131
|
+
constructor(provider, name, version3, options) {
|
|
21132
|
+
this._provider = provider;
|
|
21055
21133
|
this.name = name;
|
|
21056
21134
|
this.version = version3;
|
|
21057
21135
|
this.options = options;
|
|
@@ -21083,9 +21161,9 @@ var require_ProxyTracer = __commonJS({
|
|
|
21083
21161
|
}
|
|
21084
21162
|
});
|
|
21085
21163
|
|
|
21086
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21164
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js
|
|
21087
21165
|
var require_NoopTracerProvider = __commonJS({
|
|
21088
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21166
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js"(exports) {
|
|
21089
21167
|
"use strict";
|
|
21090
21168
|
Object.defineProperty(exports, "__esModule", {
|
|
21091
21169
|
value: true
|
|
@@ -21104,9 +21182,9 @@ var require_NoopTracerProvider = __commonJS({
|
|
|
21104
21182
|
}
|
|
21105
21183
|
});
|
|
21106
21184
|
|
|
21107
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21185
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js
|
|
21108
21186
|
var require_ProxyTracerProvider = __commonJS({
|
|
21109
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21187
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js"(exports) {
|
|
21110
21188
|
"use strict";
|
|
21111
21189
|
Object.defineProperty(exports, "__esModule", {
|
|
21112
21190
|
value: true
|
|
@@ -21145,9 +21223,9 @@ var require_ProxyTracerProvider = __commonJS({
|
|
|
21145
21223
|
}
|
|
21146
21224
|
});
|
|
21147
21225
|
|
|
21148
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21226
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js
|
|
21149
21227
|
var require_SamplingResult = __commonJS({
|
|
21150
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21228
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js"(exports) {
|
|
21151
21229
|
"use strict";
|
|
21152
21230
|
Object.defineProperty(exports, "__esModule", {
|
|
21153
21231
|
value: true
|
|
@@ -21162,9 +21240,9 @@ var require_SamplingResult = __commonJS({
|
|
|
21162
21240
|
}
|
|
21163
21241
|
});
|
|
21164
21242
|
|
|
21165
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21243
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/span_kind.js
|
|
21166
21244
|
var require_span_kind = __commonJS({
|
|
21167
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21245
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/span_kind.js"(exports) {
|
|
21168
21246
|
"use strict";
|
|
21169
21247
|
Object.defineProperty(exports, "__esModule", {
|
|
21170
21248
|
value: true
|
|
@@ -21181,9 +21259,9 @@ var require_span_kind = __commonJS({
|
|
|
21181
21259
|
}
|
|
21182
21260
|
});
|
|
21183
21261
|
|
|
21184
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21262
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/status.js
|
|
21185
21263
|
var require_status = __commonJS({
|
|
21186
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21264
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/status.js"(exports) {
|
|
21187
21265
|
"use strict";
|
|
21188
21266
|
Object.defineProperty(exports, "__esModule", {
|
|
21189
21267
|
value: true
|
|
@@ -21198,9 +21276,9 @@ var require_status = __commonJS({
|
|
|
21198
21276
|
}
|
|
21199
21277
|
});
|
|
21200
21278
|
|
|
21201
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21279
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js
|
|
21202
21280
|
var require_tracestate_validators = __commonJS({
|
|
21203
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21281
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js"(exports) {
|
|
21204
21282
|
"use strict";
|
|
21205
21283
|
Object.defineProperty(exports, "__esModule", {
|
|
21206
21284
|
value: true
|
|
@@ -21225,9 +21303,9 @@ var require_tracestate_validators = __commonJS({
|
|
|
21225
21303
|
}
|
|
21226
21304
|
});
|
|
21227
21305
|
|
|
21228
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21306
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js
|
|
21229
21307
|
var require_tracestate_impl = __commonJS({
|
|
21230
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21308
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js"(exports) {
|
|
21231
21309
|
"use strict";
|
|
21232
21310
|
Object.defineProperty(exports, "__esModule", {
|
|
21233
21311
|
value: true
|
|
@@ -21263,14 +21341,14 @@ var require_tracestate_impl = __commonJS({
|
|
|
21263
21341
|
return this._internalState.get(key);
|
|
21264
21342
|
}
|
|
21265
21343
|
serialize() {
|
|
21266
|
-
return this.
|
|
21344
|
+
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
21267
21345
|
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
21268
21346
|
return agg;
|
|
21269
21347
|
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
21270
21348
|
}
|
|
21271
21349
|
_parse(rawTraceState) {
|
|
21272
21350
|
if (rawTraceState.length > MAX_TRACE_STATE_LEN) return;
|
|
21273
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).
|
|
21351
|
+
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
|
|
21274
21352
|
const listMember = part.trim();
|
|
21275
21353
|
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
21276
21354
|
if (i !== -1) {
|
|
@@ -21287,6 +21365,7 @@ var require_tracestate_impl = __commonJS({
|
|
|
21287
21365
|
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
21288
21366
|
}
|
|
21289
21367
|
}
|
|
21368
|
+
// @ts-expect-error TS6133 Accessed in tests only.
|
|
21290
21369
|
_keys() {
|
|
21291
21370
|
return Array.from(this._internalState.keys()).reverse();
|
|
21292
21371
|
}
|
|
@@ -21300,9 +21379,9 @@ var require_tracestate_impl = __commonJS({
|
|
|
21300
21379
|
}
|
|
21301
21380
|
});
|
|
21302
21381
|
|
|
21303
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21382
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js
|
|
21304
21383
|
var require_utils2 = __commonJS({
|
|
21305
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21384
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js"(exports) {
|
|
21306
21385
|
"use strict";
|
|
21307
21386
|
Object.defineProperty(exports, "__esModule", {
|
|
21308
21387
|
value: true
|
|
@@ -21317,9 +21396,9 @@ var require_utils2 = __commonJS({
|
|
|
21317
21396
|
}
|
|
21318
21397
|
});
|
|
21319
21398
|
|
|
21320
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21399
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context-api.js
|
|
21321
21400
|
var require_context_api = __commonJS({
|
|
21322
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21401
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context-api.js"(exports) {
|
|
21323
21402
|
"use strict";
|
|
21324
21403
|
Object.defineProperty(exports, "__esModule", {
|
|
21325
21404
|
value: true
|
|
@@ -21330,9 +21409,9 @@ var require_context_api = __commonJS({
|
|
|
21330
21409
|
}
|
|
21331
21410
|
});
|
|
21332
21411
|
|
|
21333
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21412
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag-api.js
|
|
21334
21413
|
var require_diag_api = __commonJS({
|
|
21335
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21414
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag-api.js"(exports) {
|
|
21336
21415
|
"use strict";
|
|
21337
21416
|
Object.defineProperty(exports, "__esModule", {
|
|
21338
21417
|
value: true
|
|
@@ -21343,9 +21422,9 @@ var require_diag_api = __commonJS({
|
|
|
21343
21422
|
}
|
|
21344
21423
|
});
|
|
21345
21424
|
|
|
21346
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21425
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js
|
|
21347
21426
|
var require_NoopMeterProvider = __commonJS({
|
|
21348
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21427
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js"(exports) {
|
|
21349
21428
|
"use strict";
|
|
21350
21429
|
Object.defineProperty(exports, "__esModule", {
|
|
21351
21430
|
value: true
|
|
@@ -21365,9 +21444,9 @@ var require_NoopMeterProvider = __commonJS({
|
|
|
21365
21444
|
}
|
|
21366
21445
|
});
|
|
21367
21446
|
|
|
21368
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21447
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/metrics.js
|
|
21369
21448
|
var require_metrics = __commonJS({
|
|
21370
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21449
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/metrics.js"(exports) {
|
|
21371
21450
|
"use strict";
|
|
21372
21451
|
Object.defineProperty(exports, "__esModule", {
|
|
21373
21452
|
value: true
|
|
@@ -21419,9 +21498,9 @@ var require_metrics = __commonJS({
|
|
|
21419
21498
|
}
|
|
21420
21499
|
});
|
|
21421
21500
|
|
|
21422
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21501
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics-api.js
|
|
21423
21502
|
var require_metrics_api = __commonJS({
|
|
21424
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21503
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics-api.js"(exports) {
|
|
21425
21504
|
"use strict";
|
|
21426
21505
|
Object.defineProperty(exports, "__esModule", {
|
|
21427
21506
|
value: true
|
|
@@ -21432,9 +21511,9 @@ var require_metrics_api = __commonJS({
|
|
|
21432
21511
|
}
|
|
21433
21512
|
});
|
|
21434
21513
|
|
|
21435
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21514
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js
|
|
21436
21515
|
var require_NoopTextMapPropagator = __commonJS({
|
|
21437
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21516
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js"(exports) {
|
|
21438
21517
|
"use strict";
|
|
21439
21518
|
Object.defineProperty(exports, "__esModule", {
|
|
21440
21519
|
value: true
|
|
@@ -21459,9 +21538,9 @@ var require_NoopTextMapPropagator = __commonJS({
|
|
|
21459
21538
|
}
|
|
21460
21539
|
});
|
|
21461
21540
|
|
|
21462
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21541
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js
|
|
21463
21542
|
var require_context_helpers = __commonJS({
|
|
21464
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21543
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js"(exports) {
|
|
21465
21544
|
"use strict";
|
|
21466
21545
|
Object.defineProperty(exports, "__esModule", {
|
|
21467
21546
|
value: true
|
|
@@ -21493,9 +21572,9 @@ var require_context_helpers = __commonJS({
|
|
|
21493
21572
|
}
|
|
21494
21573
|
});
|
|
21495
21574
|
|
|
21496
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21575
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/propagation.js
|
|
21497
21576
|
var require_propagation = __commonJS({
|
|
21498
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21577
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/propagation.js"(exports) {
|
|
21499
21578
|
"use strict";
|
|
21500
21579
|
Object.defineProperty(exports, "__esModule", {
|
|
21501
21580
|
value: true
|
|
@@ -21574,9 +21653,9 @@ var require_propagation = __commonJS({
|
|
|
21574
21653
|
}
|
|
21575
21654
|
});
|
|
21576
21655
|
|
|
21577
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21656
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation-api.js
|
|
21578
21657
|
var require_propagation_api = __commonJS({
|
|
21579
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21658
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation-api.js"(exports) {
|
|
21580
21659
|
"use strict";
|
|
21581
21660
|
Object.defineProperty(exports, "__esModule", {
|
|
21582
21661
|
value: true
|
|
@@ -21587,9 +21666,9 @@ var require_propagation_api = __commonJS({
|
|
|
21587
21666
|
}
|
|
21588
21667
|
});
|
|
21589
21668
|
|
|
21590
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21669
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/trace.js
|
|
21591
21670
|
var require_trace = __commonJS({
|
|
21592
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21671
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/trace.js"(exports) {
|
|
21593
21672
|
"use strict";
|
|
21594
21673
|
Object.defineProperty(exports, "__esModule", {
|
|
21595
21674
|
value: true
|
|
@@ -21658,9 +21737,9 @@ var require_trace = __commonJS({
|
|
|
21658
21737
|
}
|
|
21659
21738
|
});
|
|
21660
21739
|
|
|
21661
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21740
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace-api.js
|
|
21662
21741
|
var require_trace_api = __commonJS({
|
|
21663
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21742
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace-api.js"(exports) {
|
|
21664
21743
|
"use strict";
|
|
21665
21744
|
Object.defineProperty(exports, "__esModule", {
|
|
21666
21745
|
value: true
|
|
@@ -21671,9 +21750,9 @@ var require_trace_api = __commonJS({
|
|
|
21671
21750
|
}
|
|
21672
21751
|
});
|
|
21673
21752
|
|
|
21674
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21753
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/index.js
|
|
21675
21754
|
var require_src = __commonJS({
|
|
21676
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
21755
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/index.js"(exports) {
|
|
21677
21756
|
"use strict";
|
|
21678
21757
|
Object.defineProperty(exports, "__esModule", {
|
|
21679
21758
|
value: true
|
|
@@ -21885,6 +21964,28 @@ async function deserializeTraceCarrier(traceCarrier) {
|
|
|
21885
21964
|
if (!otel) return;
|
|
21886
21965
|
return otel.propagation.extract(otel.context.active(), traceCarrier);
|
|
21887
21966
|
}
|
|
21967
|
+
function logOtelDiagnosticOnce(otel, tracer) {
|
|
21968
|
+
const debugEnabled = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
|
|
21969
|
+
if (otelDiagLogged || !debugEnabled) return;
|
|
21970
|
+
otelDiagLogged = true;
|
|
21971
|
+
try {
|
|
21972
|
+
const g = globalThis[/* @__PURE__ */ Symbol.for("opentelemetry.js.api.1")];
|
|
21973
|
+
const provider = otel.trace.getTracerProvider();
|
|
21974
|
+
const delegate = provider.getDelegate?.() ?? provider;
|
|
21975
|
+
const probe = tracer.startSpan("workflow.otel.probe.core");
|
|
21976
|
+
console.warn("[workflow:otel-diag] core", JSON.stringify({
|
|
21977
|
+
globalRegistrationVersion: g?.version ?? null,
|
|
21978
|
+
providerCtor: provider?.constructor?.name ?? null,
|
|
21979
|
+
delegateCtor: delegate?.constructor?.name ?? null,
|
|
21980
|
+
tracerCtor: tracer?.constructor?.name ?? null,
|
|
21981
|
+
probeCtor: probe?.constructor?.name ?? null,
|
|
21982
|
+
probeRecording: probe.isRecording()
|
|
21983
|
+
}));
|
|
21984
|
+
probe.end();
|
|
21985
|
+
} catch (error48) {
|
|
21986
|
+
console.warn("[workflow:otel-diag] core failed:", error48 instanceof Error ? error48.message : error48);
|
|
21987
|
+
}
|
|
21988
|
+
}
|
|
21888
21989
|
async function trace(spanName, ...args) {
|
|
21889
21990
|
const [tracer, otel] = await Promise.all([
|
|
21890
21991
|
Tracer.value,
|
|
@@ -21973,7 +22074,7 @@ async function linkToTraceCarrier(carrier) {
|
|
|
21973
22074
|
context
|
|
21974
22075
|
};
|
|
21975
22076
|
}
|
|
21976
|
-
var OtelApi, Tracer;
|
|
22077
|
+
var OtelApi, Tracer, otelDiagLogged;
|
|
21977
22078
|
var init_telemetry = __esm({
|
|
21978
22079
|
"../core/dist/telemetry.js"() {
|
|
21979
22080
|
"use strict";
|
|
@@ -21994,8 +22095,12 @@ var init_telemetry = __esm({
|
|
|
21994
22095
|
Tracer = once(async () => {
|
|
21995
22096
|
const api = await OtelApi.value;
|
|
21996
22097
|
if (!api) return null;
|
|
21997
|
-
|
|
22098
|
+
const tracer = api.trace.getTracer("workflow");
|
|
22099
|
+
logOtelDiagnosticOnce(api, tracer);
|
|
22100
|
+
return tracer;
|
|
21998
22101
|
});
|
|
22102
|
+
otelDiagLogged = false;
|
|
22103
|
+
__name(logOtelDiagnosticOnce, "logOtelDiagnosticOnce");
|
|
21999
22104
|
__name(trace, "trace");
|
|
22000
22105
|
__name(recordElapsedSpan, "recordElapsedSpan");
|
|
22001
22106
|
__name(applyWorkflowSuspensionToSpan, "applyWorkflowSuspensionToSpan");
|
|
@@ -24387,7 +24492,7 @@ var version2;
|
|
|
24387
24492
|
var init_version = __esm({
|
|
24388
24493
|
"../core/dist/version.js"() {
|
|
24389
24494
|
"use strict";
|
|
24390
|
-
version2 = "5.0.0-beta.
|
|
24495
|
+
version2 = "5.0.0-beta.35";
|
|
24391
24496
|
}
|
|
24392
24497
|
});
|
|
24393
24498
|
|
|
@@ -26109,7 +26214,7 @@ function getByteUnframingStream() {
|
|
|
26109
26214
|
}
|
|
26110
26215
|
});
|
|
26111
26216
|
}
|
|
26112
|
-
function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex) {
|
|
26217
|
+
function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex, connectMs) {
|
|
26113
26218
|
void (async () => {
|
|
26114
26219
|
await recordElapsedSpan("workflow.stream.read", startEpochMs, {
|
|
26115
26220
|
kind: await getSpanKind("CLIENT"),
|
|
@@ -26118,6 +26223,9 @@ function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex) {
|
|
|
26118
26223
|
"workflow.stream.name": name,
|
|
26119
26224
|
"workflow.stream.operation": "read",
|
|
26120
26225
|
"workflow.stream.read.ttfc_ms": Date.now() - startEpochMs,
|
|
26226
|
+
...typeof connectMs === "number" ? {
|
|
26227
|
+
"workflow.stream.read.connect_ms": connectMs
|
|
26228
|
+
} : {},
|
|
26121
26229
|
...typeof startIndex === "number" ? {
|
|
26122
26230
|
"workflow.stream.start_index": startIndex
|
|
26123
26231
|
} : {}
|
|
@@ -26125,6 +26233,24 @@ function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex) {
|
|
|
26125
26233
|
});
|
|
26126
26234
|
})();
|
|
26127
26235
|
}
|
|
26236
|
+
function recordStreamReadComplete(startEpochMs, runId, name, chunkCount, byteCount, reconnects) {
|
|
26237
|
+
void (async () => {
|
|
26238
|
+
await recordElapsedSpan("workflow.stream.read.complete", startEpochMs, {
|
|
26239
|
+
kind: await getSpanKind("CLIENT"),
|
|
26240
|
+
attributes: {
|
|
26241
|
+
"workflow.run.id": runId,
|
|
26242
|
+
"workflow.stream.name": name,
|
|
26243
|
+
"workflow.stream.operation": "read_complete",
|
|
26244
|
+
"workflow.stream.read.total_ms": Date.now() - startEpochMs,
|
|
26245
|
+
"workflow.stream.read.chunks": chunkCount,
|
|
26246
|
+
"workflow.stream.read.bytes": byteCount,
|
|
26247
|
+
...typeof reconnects === "number" ? {
|
|
26248
|
+
"workflow.stream.read.reconnects": reconnects
|
|
26249
|
+
} : {}
|
|
26250
|
+
}
|
|
26251
|
+
});
|
|
26252
|
+
})();
|
|
26253
|
+
}
|
|
26128
26254
|
function createReconnectingFramedStream(runId, name, startIndex) {
|
|
26129
26255
|
const reconnectSupported = startIndex === void 0 || startIndex >= 0;
|
|
26130
26256
|
let currentStartIndex = startIndex ?? 0;
|
|
@@ -26133,10 +26259,17 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
26133
26259
|
let totalReconnectCount = 0;
|
|
26134
26260
|
let reader;
|
|
26135
26261
|
let buffer2 = new Uint8Array(0);
|
|
26262
|
+
let readStart;
|
|
26263
|
+
let connectMs;
|
|
26264
|
+
let firstChunkReported = false;
|
|
26265
|
+
let chunksDelivered = 0;
|
|
26266
|
+
let bytesDelivered = 0;
|
|
26136
26267
|
async function connect() {
|
|
26137
26268
|
const world = await getWorldLazy();
|
|
26138
26269
|
const effectiveStartIndex = reconnectSupported ? currentStartIndex + consumedFrames : startIndex;
|
|
26270
|
+
const connectStart = Date.now();
|
|
26139
26271
|
const stream = await world.streams.get(runId, name, effectiveStartIndex);
|
|
26272
|
+
if (connectMs === void 0) connectMs = Date.now() - connectStart;
|
|
26140
26273
|
reader = stream.getReader();
|
|
26141
26274
|
}
|
|
26142
26275
|
__name(connect, "connect");
|
|
@@ -26170,6 +26303,7 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
26170
26303
|
__name(reconnect, "reconnect");
|
|
26171
26304
|
return new ReadableStream({
|
|
26172
26305
|
pull: /* @__PURE__ */ __name(async (controller) => {
|
|
26306
|
+
if (readStart === void 0) readStart = Date.now();
|
|
26173
26307
|
for (; ; ) {
|
|
26174
26308
|
if (!reader) {
|
|
26175
26309
|
try {
|
|
@@ -26197,6 +26331,9 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
26197
26331
|
}
|
|
26198
26332
|
if (result.done || !result.value) {
|
|
26199
26333
|
reader = void 0;
|
|
26334
|
+
if (readStart !== void 0) {
|
|
26335
|
+
recordStreamReadComplete(readStart, runId, name, chunksDelivered, bytesDelivered, totalReconnectCount);
|
|
26336
|
+
}
|
|
26200
26337
|
controller.close();
|
|
26201
26338
|
return;
|
|
26202
26339
|
}
|
|
@@ -26215,6 +26352,12 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
26215
26352
|
controller.enqueue(buffer2.slice(0, total));
|
|
26216
26353
|
buffer2 = buffer2.slice(total);
|
|
26217
26354
|
consumedFrames++;
|
|
26355
|
+
chunksDelivered++;
|
|
26356
|
+
bytesDelivered += total;
|
|
26357
|
+
if (!firstChunkReported && readStart !== void 0) {
|
|
26358
|
+
firstChunkReported = true;
|
|
26359
|
+
recordReadTimeToFirstChunk(readStart, runId, name, startIndex, connectMs);
|
|
26360
|
+
}
|
|
26218
26361
|
emitted = true;
|
|
26219
26362
|
}
|
|
26220
26363
|
if (emitted) {
|
|
@@ -26233,7 +26376,7 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
26233
26376
|
}, "cancel")
|
|
26234
26377
|
});
|
|
26235
26378
|
}
|
|
26236
|
-
function recordStreamWriteFlush(startEpochMs, dispatchEpochMs, runId, name, chunkCount, byteCount) {
|
|
26379
|
+
function recordStreamWriteFlush(startEpochMs, dispatchEpochMs, runId, name, chunkCount, byteCount, rpcMs) {
|
|
26237
26380
|
void (async () => {
|
|
26238
26381
|
await recordElapsedSpan("workflow.stream.flush", startEpochMs, {
|
|
26239
26382
|
kind: await getSpanKind("CLIENT"),
|
|
@@ -26243,7 +26386,24 @@ function recordStreamWriteFlush(startEpochMs, dispatchEpochMs, runId, name, chun
|
|
|
26243
26386
|
"workflow.stream.operation": "flush",
|
|
26244
26387
|
"workflow.stream.flush.buffer_dwell_ms": dispatchEpochMs - startEpochMs,
|
|
26245
26388
|
"workflow.stream.flush.chunks": chunkCount,
|
|
26246
|
-
"workflow.stream.flush.bytes": byteCount
|
|
26389
|
+
"workflow.stream.flush.bytes": byteCount,
|
|
26390
|
+
// Client-observed World write RPC duration (network hop included).
|
|
26391
|
+
// Same key as world-vercel's per-request span attribute so queries
|
|
26392
|
+
// work regardless of which layer emitted it.
|
|
26393
|
+
"workflow.stream.write.chunk_rtt": rpcMs
|
|
26394
|
+
}
|
|
26395
|
+
});
|
|
26396
|
+
})();
|
|
26397
|
+
}
|
|
26398
|
+
function recordStreamClose(startEpochMs, runId, name) {
|
|
26399
|
+
void (async () => {
|
|
26400
|
+
await recordElapsedSpan("workflow.stream.close", startEpochMs, {
|
|
26401
|
+
kind: await getSpanKind("CLIENT"),
|
|
26402
|
+
attributes: {
|
|
26403
|
+
"workflow.run.id": runId,
|
|
26404
|
+
"workflow.stream.name": name,
|
|
26405
|
+
"workflow.stream.operation": "close",
|
|
26406
|
+
"workflow.stream.close.rpc_ms": Date.now() - startEpochMs
|
|
26247
26407
|
}
|
|
26248
26408
|
});
|
|
26249
26409
|
})();
|
|
@@ -27112,6 +27272,7 @@ var init_serialization2 = __esm({
|
|
|
27112
27272
|
__name(getByteFramingStream, "getByteFramingStream");
|
|
27113
27273
|
__name(getByteUnframingStream, "getByteUnframingStream");
|
|
27114
27274
|
__name(recordReadTimeToFirstChunk, "recordReadTimeToFirstChunk");
|
|
27275
|
+
__name(recordStreamReadComplete, "recordStreamReadComplete");
|
|
27115
27276
|
WorkflowServerReadableStream = class extends ReadableStream {
|
|
27116
27277
|
static {
|
|
27117
27278
|
__name(this, "WorkflowServerReadableStream");
|
|
@@ -27123,6 +27284,9 @@ var init_serialization2 = __esm({
|
|
|
27123
27284
|
}
|
|
27124
27285
|
let readStart;
|
|
27125
27286
|
let firstChunkReported = false;
|
|
27287
|
+
let connectMs;
|
|
27288
|
+
let chunksDelivered = 0;
|
|
27289
|
+
let bytesDelivered = 0;
|
|
27126
27290
|
super({
|
|
27127
27291
|
// @ts-expect-error Not sure why TypeScript is complaining about this
|
|
27128
27292
|
type: "bytes",
|
|
@@ -27131,7 +27295,9 @@ var init_serialization2 = __esm({
|
|
|
27131
27295
|
if (!reader) {
|
|
27132
27296
|
if (readStart === void 0) readStart = Date.now();
|
|
27133
27297
|
const world = await getWorldLazy();
|
|
27298
|
+
const connectStart = Date.now();
|
|
27134
27299
|
const stream = await world.streams.get(runId, name, startIndex);
|
|
27300
|
+
connectMs = Date.now() - connectStart;
|
|
27135
27301
|
reader = this.#reader = stream.getReader();
|
|
27136
27302
|
}
|
|
27137
27303
|
if (!reader) {
|
|
@@ -27141,12 +27307,17 @@ var init_serialization2 = __esm({
|
|
|
27141
27307
|
const result = await reader.read();
|
|
27142
27308
|
if (result.done) {
|
|
27143
27309
|
this.#reader = void 0;
|
|
27310
|
+
if (readStart !== void 0) {
|
|
27311
|
+
recordStreamReadComplete(readStart, runId, name, chunksDelivered, bytesDelivered);
|
|
27312
|
+
}
|
|
27144
27313
|
controller.close();
|
|
27145
27314
|
} else {
|
|
27146
27315
|
if (!firstChunkReported && result.value.byteLength > 0 && readStart !== void 0) {
|
|
27147
27316
|
firstChunkReported = true;
|
|
27148
|
-
recordReadTimeToFirstChunk(readStart, runId, name, startIndex);
|
|
27317
|
+
recordReadTimeToFirstChunk(readStart, runId, name, startIndex, connectMs);
|
|
27149
27318
|
}
|
|
27319
|
+
chunksDelivered += 1;
|
|
27320
|
+
bytesDelivered += result.value.byteLength;
|
|
27150
27321
|
controller.enqueue(result.value);
|
|
27151
27322
|
}
|
|
27152
27323
|
}, "pull"),
|
|
@@ -27176,6 +27347,7 @@ var init_serialization2 = __esm({
|
|
|
27176
27347
|
integer: true
|
|
27177
27348
|
}), "getStreamFlushIntervalMs");
|
|
27178
27349
|
__name(recordStreamWriteFlush, "recordStreamWriteFlush");
|
|
27350
|
+
__name(recordStreamClose, "recordStreamClose");
|
|
27179
27351
|
WorkflowServerWritableStream = class extends WritableStream {
|
|
27180
27352
|
static {
|
|
27181
27353
|
__name(this, "WorkflowServerWritableStream");
|
|
@@ -27227,6 +27399,7 @@ var init_serialization2 = __esm({
|
|
|
27227
27399
|
if (resolvedFlushIntervalMs === void 0) {
|
|
27228
27400
|
resolvedFlushIntervalMs = world.streamFlushIntervalMs ?? getStreamFlushIntervalMs();
|
|
27229
27401
|
}
|
|
27402
|
+
const rpcStartAt = Date.now();
|
|
27230
27403
|
try {
|
|
27231
27404
|
if (typeof world.streams.writeMulti === "function" && chunksToFlush.length > 1) {
|
|
27232
27405
|
await world.streams.writeMulti(runId, name, chunksToFlush);
|
|
@@ -27242,7 +27415,7 @@ var init_serialization2 = __esm({
|
|
|
27242
27415
|
throw error48;
|
|
27243
27416
|
}
|
|
27244
27417
|
if (batchStart !== void 0) {
|
|
27245
|
-
recordStreamWriteFlush(batchStart, dispatchAt, runId, name, chunksToFlush.length, chunksToFlush.reduce((sum, c) => sum + c.byteLength, 0));
|
|
27418
|
+
recordStreamWriteFlush(batchStart, dispatchAt, runId, name, chunksToFlush.length, chunksToFlush.reduce((sum, c) => sum + c.byteLength, 0), Date.now() - rpcStartAt);
|
|
27246
27419
|
}
|
|
27247
27420
|
buffer2 = [];
|
|
27248
27421
|
}, "flush");
|
|
@@ -27284,7 +27457,9 @@ var init_serialization2 = __esm({
|
|
|
27284
27457
|
await flush();
|
|
27285
27458
|
await ensureRunReady();
|
|
27286
27459
|
const world = await worldPromise;
|
|
27460
|
+
const closeStart = Date.now();
|
|
27287
27461
|
await world.streams.close(runId, name);
|
|
27462
|
+
recordStreamClose(closeStart, runId, name);
|
|
27288
27463
|
},
|
|
27289
27464
|
abort(reason) {
|
|
27290
27465
|
if (flushTimer) {
|
|
@@ -27521,6 +27696,7 @@ __name(isRetryableWorldError, "isRetryableWorldError");
|
|
|
27521
27696
|
init_encryption();
|
|
27522
27697
|
init_logger();
|
|
27523
27698
|
init_serialization2();
|
|
27699
|
+
init_context_storage();
|
|
27524
27700
|
init_semantic_conventions();
|
|
27525
27701
|
init_telemetry();
|
|
27526
27702
|
init_version();
|
|
@@ -27530,6 +27706,16 @@ init_wait_until();
|
|
|
27530
27706
|
init_world_compatibility();
|
|
27531
27707
|
var CROSS_DEPLOYMENT_CAPABILITY_PROBE_TIMEOUT_MS = 2e3;
|
|
27532
27708
|
var ulid3 = monotonicFactory();
|
|
27709
|
+
function resolveLineageAttributes() {
|
|
27710
|
+
const store = contextStorage.getStore();
|
|
27711
|
+
const parentRunId = store?.workflowMetadata?.workflowRunId;
|
|
27712
|
+
if (!parentRunId) return void 0;
|
|
27713
|
+
return {
|
|
27714
|
+
[ROOT_RUN_ID_ATTRIBUTE]: store.rootRunId ?? parentRunId,
|
|
27715
|
+
[PARENT_RUN_ID_ATTRIBUTE]: parentRunId
|
|
27716
|
+
};
|
|
27717
|
+
}
|
|
27718
|
+
__name(resolveLineageAttributes, "resolveLineageAttributes");
|
|
27533
27719
|
var hasWarnedLatestNoOp = false;
|
|
27534
27720
|
async function start(workflow, argsOrOptions, options) {
|
|
27535
27721
|
return await waitedUntil(() => {
|
|
@@ -27614,9 +27800,14 @@ async function start(workflow, argsOrOptions, options) {
|
|
|
27614
27800
|
value
|
|
27615
27801
|
]));
|
|
27616
27802
|
}
|
|
27617
|
-
const
|
|
27618
|
-
|
|
27619
|
-
...
|
|
27803
|
+
const lineage = specVersion >= SPEC_VERSION_SUPPORTS_ATTRIBUTES ? resolveLineageAttributes() : void 0;
|
|
27804
|
+
const runAttributes = lineage ? {
|
|
27805
|
+
...lineage,
|
|
27806
|
+
...attributes
|
|
27807
|
+
} : attributes;
|
|
27808
|
+
const attributeSeed = runAttributes ? {
|
|
27809
|
+
attributes: runAttributes,
|
|
27810
|
+
...allowReservedAttributes || lineage != null ? {
|
|
27620
27811
|
allowReservedAttributes: true
|
|
27621
27812
|
} : {}
|
|
27622
27813
|
} : {};
|
|
@@ -27730,7 +27921,7 @@ __name(start, "start");
|
|
|
27730
27921
|
value: "start",
|
|
27731
27922
|
configurable: true
|
|
27732
27923
|
});
|
|
27733
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
27924
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.35//start");
|
|
27734
27925
|
|
|
27735
27926
|
// ../core/dist/runtime/runs.js
|
|
27736
27927
|
async function wakeUpRun(world, runId, options) {
|
|
@@ -28066,7 +28257,7 @@ var Run = class _Run {
|
|
|
28066
28257
|
value: "wakeUp",
|
|
28067
28258
|
configurable: true
|
|
28068
28259
|
});
|
|
28069
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28260
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#wakeUp");
|
|
28070
28261
|
(function(__wf_fn, __wf_id) {
|
|
28071
28262
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28072
28263
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28075,7 +28266,7 @@ var Run = class _Run {
|
|
|
28075
28266
|
value: "cancel",
|
|
28076
28267
|
configurable: true
|
|
28077
28268
|
});
|
|
28078
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28269
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#cancel");
|
|
28079
28270
|
(function(__wf_fn, __wf_id) {
|
|
28080
28271
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28081
28272
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28084,7 +28275,7 @@ var Run = class _Run {
|
|
|
28084
28275
|
value: "getReadable",
|
|
28085
28276
|
configurable: true
|
|
28086
28277
|
});
|
|
28087
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28278
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#getReadable");
|
|
28088
28279
|
(function(__wf_fn, __wf_id) {
|
|
28089
28280
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28090
28281
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28093,7 +28284,7 @@ var Run = class _Run {
|
|
|
28093
28284
|
value: "exists",
|
|
28094
28285
|
configurable: true
|
|
28095
28286
|
});
|
|
28096
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28287
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#exists");
|
|
28097
28288
|
(function(__wf_fn, __wf_id) {
|
|
28098
28289
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28099
28290
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28102,7 +28293,7 @@ var Run = class _Run {
|
|
|
28102
28293
|
value: "status",
|
|
28103
28294
|
configurable: true
|
|
28104
28295
|
});
|
|
28105
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28296
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#status");
|
|
28106
28297
|
(function(__wf_fn, __wf_id) {
|
|
28107
28298
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28108
28299
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28111,7 +28302,7 @@ var Run = class _Run {
|
|
|
28111
28302
|
value: "returnValue",
|
|
28112
28303
|
configurable: true
|
|
28113
28304
|
});
|
|
28114
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28305
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#returnValue");
|
|
28115
28306
|
(function(__wf_fn, __wf_id) {
|
|
28116
28307
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28117
28308
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28120,7 +28311,7 @@ var Run = class _Run {
|
|
|
28120
28311
|
value: "workflowName",
|
|
28121
28312
|
configurable: true
|
|
28122
28313
|
});
|
|
28123
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28314
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#workflowName");
|
|
28124
28315
|
(function(__wf_fn, __wf_id) {
|
|
28125
28316
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28126
28317
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28129,7 +28320,7 @@ var Run = class _Run {
|
|
|
28129
28320
|
value: "createdAt",
|
|
28130
28321
|
configurable: true
|
|
28131
28322
|
});
|
|
28132
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28323
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#createdAt");
|
|
28133
28324
|
(function(__wf_fn, __wf_id) {
|
|
28134
28325
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28135
28326
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28138,7 +28329,7 @@ var Run = class _Run {
|
|
|
28138
28329
|
value: "startedAt",
|
|
28139
28330
|
configurable: true
|
|
28140
28331
|
});
|
|
28141
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28332
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#startedAt");
|
|
28142
28333
|
(function(__wf_fn, __wf_id) {
|
|
28143
28334
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28144
28335
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28147,7 +28338,7 @@ var Run = class _Run {
|
|
|
28147
28338
|
value: "completedAt",
|
|
28148
28339
|
configurable: true
|
|
28149
28340
|
});
|
|
28150
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
28341
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.35//Run#completedAt");
|
|
28151
28342
|
(function(__wf_cls, __wf_id) {
|
|
28152
28343
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28153
28344
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -28157,7 +28348,7 @@ var Run = class _Run {
|
|
|
28157
28348
|
enumerable: false,
|
|
28158
28349
|
configurable: false
|
|
28159
28350
|
});
|
|
28160
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
28351
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.35//Run");
|
|
28161
28352
|
|
|
28162
28353
|
// ../workflow/dist/stdlib.js
|
|
28163
28354
|
async function fetch2(...args) {
|
|
@@ -28516,13 +28707,52 @@ async function hookWorkflow(token) {
|
|
|
28516
28707
|
__name(hookWorkflow, "hookWorkflow");
|
|
28517
28708
|
hookWorkflow.workflowId = "workflow//./workflows/inline-execution//hookWorkflow";
|
|
28518
28709
|
|
|
28710
|
+
// workflows/lineage.ts
|
|
28711
|
+
async function noop() {
|
|
28712
|
+
}
|
|
28713
|
+
__name(noop, "noop");
|
|
28714
|
+
(function(__wf_fn, __wf_id) {
|
|
28715
|
+
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28716
|
+
__wf_reg.set(__wf_id, __wf_fn);
|
|
28717
|
+
__wf_fn.stepId = __wf_id;
|
|
28718
|
+
Object.defineProperty(__wf_fn, "name", {
|
|
28719
|
+
value: "noop",
|
|
28720
|
+
configurable: true
|
|
28721
|
+
});
|
|
28722
|
+
})(noop, "step//./workflows/lineage//noop");
|
|
28723
|
+
async function bodyStartsChild() {
|
|
28724
|
+
throw new Error("You attempted to execute workflow bodyStartsChild function directly. To start a workflow, use start(bodyStartsChild) from workflow/api");
|
|
28725
|
+
}
|
|
28726
|
+
__name(bodyStartsChild, "bodyStartsChild");
|
|
28727
|
+
bodyStartsChild.workflowId = "workflow//./workflows/lineage//bodyStartsChild";
|
|
28728
|
+
async function spawnedChild() {
|
|
28729
|
+
throw new Error("You attempted to execute workflow spawnedChild function directly. To start a workflow, use start(spawnedChild) from workflow/api");
|
|
28730
|
+
}
|
|
28731
|
+
__name(spawnedChild, "spawnedChild");
|
|
28732
|
+
spawnedChild.workflowId = "workflow//./workflows/lineage//spawnedChild";
|
|
28733
|
+
async function chainRoot() {
|
|
28734
|
+
throw new Error("You attempted to execute workflow chainRoot function directly. To start a workflow, use start(chainRoot) from workflow/api");
|
|
28735
|
+
}
|
|
28736
|
+
__name(chainRoot, "chainRoot");
|
|
28737
|
+
chainRoot.workflowId = "workflow//./workflows/lineage//chainRoot";
|
|
28738
|
+
async function chainMiddle() {
|
|
28739
|
+
throw new Error("You attempted to execute workflow chainMiddle function directly. To start a workflow, use start(chainMiddle) from workflow/api");
|
|
28740
|
+
}
|
|
28741
|
+
__name(chainMiddle, "chainMiddle");
|
|
28742
|
+
chainMiddle.workflowId = "workflow//./workflows/lineage//chainMiddle";
|
|
28743
|
+
async function chainLeaf() {
|
|
28744
|
+
throw new Error("You attempted to execute workflow chainLeaf function directly. To start a workflow, use start(chainLeaf) from workflow/api");
|
|
28745
|
+
}
|
|
28746
|
+
__name(chainLeaf, "chainLeaf");
|
|
28747
|
+
chainLeaf.workflowId = "workflow//./workflows/lineage//chainLeaf";
|
|
28748
|
+
|
|
28519
28749
|
// workflows/noop.ts
|
|
28520
28750
|
var count = 0;
|
|
28521
|
-
async function
|
|
28751
|
+
async function noop2(_i) {
|
|
28522
28752
|
count++;
|
|
28523
28753
|
return count;
|
|
28524
28754
|
}
|
|
28525
|
-
__name(
|
|
28755
|
+
__name(noop2, "noop");
|
|
28526
28756
|
(function(__wf_fn, __wf_id) {
|
|
28527
28757
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
28528
28758
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -28531,7 +28761,7 @@ __name(noop, "noop");
|
|
|
28531
28761
|
value: "noop",
|
|
28532
28762
|
configurable: true
|
|
28533
28763
|
});
|
|
28534
|
-
})(
|
|
28764
|
+
})(noop2, "step//./workflows/noop//noop");
|
|
28535
28765
|
async function brokenWf() {
|
|
28536
28766
|
throw new Error("You attempted to execute workflow brokenWf function directly. To start a workflow, use start(brokenWf) from workflow/api");
|
|
28537
28767
|
}
|