@workflow/world-testing 4.1.26 → 4.1.28
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.
|
@@ -15558,7 +15558,7 @@ var init_runs = __esm({
|
|
|
15558
15558
|
// Completed state - output can be v1 or v2 format
|
|
15559
15559
|
WorkflowRunBaseSchema.extend({
|
|
15560
15560
|
status: external_exports.literal("completed"),
|
|
15561
|
-
output: SerializedDataSchema,
|
|
15561
|
+
output: SerializedDataSchema.optional(),
|
|
15562
15562
|
error: external_exports.undefined().optional(),
|
|
15563
15563
|
completedAt: external_exports.coerce.date()
|
|
15564
15564
|
}),
|
|
@@ -15566,7 +15566,7 @@ var init_runs = __esm({
|
|
|
15566
15566
|
WorkflowRunBaseSchema.extend({
|
|
15567
15567
|
status: external_exports.literal("failed"),
|
|
15568
15568
|
output: external_exports.undefined().optional(),
|
|
15569
|
-
error: StructuredErrorSchema,
|
|
15569
|
+
error: StructuredErrorSchema.optional(),
|
|
15570
15570
|
completedAt: external_exports.coerce.date()
|
|
15571
15571
|
})
|
|
15572
15572
|
]);
|
|
@@ -16664,47 +16664,23 @@ var require_src = __commonJS({
|
|
|
16664
16664
|
}
|
|
16665
16665
|
});
|
|
16666
16666
|
|
|
16667
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16668
|
-
var _globalThis;
|
|
16669
|
-
var init_globalThis = __esm({
|
|
16670
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js"() {
|
|
16671
|
-
_globalThis = typeof globalThis === "object" ? globalThis : global;
|
|
16672
|
-
}
|
|
16673
|
-
});
|
|
16674
|
-
|
|
16675
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js
|
|
16676
|
-
var init_node2 = __esm({
|
|
16677
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js"() {
|
|
16678
|
-
init_globalThis();
|
|
16679
|
-
}
|
|
16680
|
-
});
|
|
16681
|
-
|
|
16682
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js
|
|
16683
|
-
var init_platform = __esm({
|
|
16684
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js"() {
|
|
16685
|
-
init_node2();
|
|
16686
|
-
}
|
|
16687
|
-
});
|
|
16688
|
-
|
|
16689
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/version.js
|
|
16667
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/version.js
|
|
16690
16668
|
var VERSION;
|
|
16691
16669
|
var init_version = __esm({
|
|
16692
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16693
|
-
VERSION = "1.9.
|
|
16670
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/version.js"() {
|
|
16671
|
+
VERSION = "1.9.1";
|
|
16694
16672
|
}
|
|
16695
16673
|
});
|
|
16696
16674
|
|
|
16697
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16675
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/semver.js
|
|
16698
16676
|
function _makeCompatibilityCheck(ownVersion) {
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16677
|
+
const acceptedVersions = /* @__PURE__ */ new Set([ownVersion]);
|
|
16678
|
+
const rejectedVersions = /* @__PURE__ */ new Set();
|
|
16679
|
+
const myVersionMatch = ownVersion.match(re);
|
|
16702
16680
|
if (!myVersionMatch) {
|
|
16703
|
-
return
|
|
16704
|
-
return false;
|
|
16705
|
-
};
|
|
16681
|
+
return () => false;
|
|
16706
16682
|
}
|
|
16707
|
-
|
|
16683
|
+
const ownVersionParsed = {
|
|
16708
16684
|
major: +myVersionMatch[1],
|
|
16709
16685
|
minor: +myVersionMatch[2],
|
|
16710
16686
|
patch: +myVersionMatch[3],
|
|
@@ -16732,11 +16708,11 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
16732
16708
|
if (rejectedVersions.has(globalVersion)) {
|
|
16733
16709
|
return false;
|
|
16734
16710
|
}
|
|
16735
|
-
|
|
16711
|
+
const globalVersionMatch = globalVersion.match(re);
|
|
16736
16712
|
if (!globalVersionMatch) {
|
|
16737
16713
|
return _reject(globalVersion);
|
|
16738
16714
|
}
|
|
16739
|
-
|
|
16715
|
+
const globalVersionParsed = {
|
|
16740
16716
|
major: +globalVersionMatch[1],
|
|
16741
16717
|
minor: +globalVersionMatch[2],
|
|
16742
16718
|
patch: +globalVersionMatch[3],
|
|
@@ -16762,7 +16738,7 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
16762
16738
|
}
|
|
16763
16739
|
var re, isCompatible;
|
|
16764
16740
|
var init_semver = __esm({
|
|
16765
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16741
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/semver.js"() {
|
|
16766
16742
|
init_version();
|
|
16767
16743
|
re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
16768
16744
|
__name(_makeCompatibilityCheck, "_makeCompatibilityCheck");
|
|
@@ -16770,149 +16746,98 @@ var init_semver = __esm({
|
|
|
16770
16746
|
}
|
|
16771
16747
|
});
|
|
16772
16748
|
|
|
16773
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16774
|
-
function registerGlobal(type, instance, diag3, allowOverride) {
|
|
16749
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
|
|
16750
|
+
function registerGlobal(type, instance, diag3, allowOverride = false) {
|
|
16775
16751
|
var _a3;
|
|
16776
|
-
|
|
16777
|
-
allowOverride = false;
|
|
16778
|
-
}
|
|
16779
|
-
var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
|
|
16752
|
+
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
|
|
16780
16753
|
version: VERSION
|
|
16781
16754
|
};
|
|
16782
16755
|
if (!allowOverride && api[type]) {
|
|
16783
|
-
|
|
16756
|
+
const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
|
|
16784
16757
|
diag3.error(err.stack || err.message);
|
|
16785
16758
|
return false;
|
|
16786
16759
|
}
|
|
16787
16760
|
if (api.version !== VERSION) {
|
|
16788
|
-
|
|
16761
|
+
const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`);
|
|
16789
16762
|
diag3.error(err.stack || err.message);
|
|
16790
16763
|
return false;
|
|
16791
16764
|
}
|
|
16792
16765
|
api[type] = instance;
|
|
16793
|
-
diag3.debug(
|
|
16766
|
+
diag3.debug(`@opentelemetry/api: Registered a global for ${type} v${VERSION}.`);
|
|
16794
16767
|
return true;
|
|
16795
16768
|
}
|
|
16796
16769
|
function getGlobal(type) {
|
|
16797
16770
|
var _a3, _b;
|
|
16798
|
-
|
|
16771
|
+
const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === void 0 ? void 0 : _a3.version;
|
|
16799
16772
|
if (!globalVersion || !isCompatible(globalVersion)) {
|
|
16800
16773
|
return;
|
|
16801
16774
|
}
|
|
16802
16775
|
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
|
|
16803
16776
|
}
|
|
16804
16777
|
function unregisterGlobal(type, diag3) {
|
|
16805
|
-
diag3.debug(
|
|
16806
|
-
|
|
16778
|
+
diag3.debug(`@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`);
|
|
16779
|
+
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
16807
16780
|
if (api) {
|
|
16808
16781
|
delete api[type];
|
|
16809
16782
|
}
|
|
16810
16783
|
}
|
|
16811
16784
|
var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
|
|
16812
16785
|
var init_global_utils = __esm({
|
|
16813
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16814
|
-
init_platform();
|
|
16786
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"() {
|
|
16815
16787
|
init_version();
|
|
16816
16788
|
init_semver();
|
|
16817
16789
|
major = VERSION.split(".")[0];
|
|
16818
|
-
GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(
|
|
16819
|
-
_global =
|
|
16790
|
+
GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(`opentelemetry.js.api.${major}`);
|
|
16791
|
+
_global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
16820
16792
|
__name(registerGlobal, "registerGlobal");
|
|
16821
16793
|
__name(getGlobal, "getGlobal");
|
|
16822
16794
|
__name(unregisterGlobal, "unregisterGlobal");
|
|
16823
16795
|
}
|
|
16824
16796
|
});
|
|
16825
16797
|
|
|
16826
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16798
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
|
|
16827
16799
|
function logProxy(funcName, namespace, args) {
|
|
16828
|
-
|
|
16800
|
+
const logger = getGlobal("diag");
|
|
16829
16801
|
if (!logger) {
|
|
16830
16802
|
return;
|
|
16831
16803
|
}
|
|
16832
|
-
|
|
16833
|
-
return logger[funcName].apply(logger, __spreadArray([], __read(args), false));
|
|
16804
|
+
return logger[funcName](namespace, ...args);
|
|
16834
16805
|
}
|
|
16835
|
-
var
|
|
16806
|
+
var DiagComponentLogger;
|
|
16836
16807
|
var init_ComponentLogger = __esm({
|
|
16837
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16808
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"() {
|
|
16838
16809
|
init_global_utils();
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
var i = m.call(o), r, ar = [], e;
|
|
16843
|
-
try {
|
|
16844
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
16845
|
-
} catch (error48) {
|
|
16846
|
-
e = { error: error48 };
|
|
16847
|
-
} finally {
|
|
16848
|
-
try {
|
|
16849
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
16850
|
-
} finally {
|
|
16851
|
-
if (e) throw e.error;
|
|
16852
|
-
}
|
|
16853
|
-
}
|
|
16854
|
-
return ar;
|
|
16855
|
-
};
|
|
16856
|
-
__spreadArray = function(to, from, pack) {
|
|
16857
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
16858
|
-
if (ar || !(i in from)) {
|
|
16859
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16860
|
-
ar[i] = from[i];
|
|
16861
|
-
}
|
|
16810
|
+
DiagComponentLogger = class {
|
|
16811
|
+
static {
|
|
16812
|
+
__name(this, "DiagComponentLogger");
|
|
16862
16813
|
}
|
|
16863
|
-
|
|
16864
|
-
};
|
|
16865
|
-
DiagComponentLogger = /** @class */
|
|
16866
|
-
(function() {
|
|
16867
|
-
function DiagComponentLogger2(props) {
|
|
16814
|
+
constructor(props) {
|
|
16868
16815
|
this._namespace = props.namespace || "DiagComponentLogger";
|
|
16869
16816
|
}
|
|
16870
|
-
|
|
16871
|
-
DiagComponentLogger2.prototype.debug = function() {
|
|
16872
|
-
var args = [];
|
|
16873
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16874
|
-
args[_i] = arguments[_i];
|
|
16875
|
-
}
|
|
16817
|
+
debug(...args) {
|
|
16876
16818
|
return logProxy("debug", this._namespace, args);
|
|
16877
|
-
}
|
|
16878
|
-
|
|
16879
|
-
var args = [];
|
|
16880
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16881
|
-
args[_i] = arguments[_i];
|
|
16882
|
-
}
|
|
16819
|
+
}
|
|
16820
|
+
error(...args) {
|
|
16883
16821
|
return logProxy("error", this._namespace, args);
|
|
16884
|
-
}
|
|
16885
|
-
|
|
16886
|
-
var args = [];
|
|
16887
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16888
|
-
args[_i] = arguments[_i];
|
|
16889
|
-
}
|
|
16822
|
+
}
|
|
16823
|
+
info(...args) {
|
|
16890
16824
|
return logProxy("info", this._namespace, args);
|
|
16891
|
-
}
|
|
16892
|
-
|
|
16893
|
-
var args = [];
|
|
16894
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16895
|
-
args[_i] = arguments[_i];
|
|
16896
|
-
}
|
|
16825
|
+
}
|
|
16826
|
+
warn(...args) {
|
|
16897
16827
|
return logProxy("warn", this._namespace, args);
|
|
16898
|
-
}
|
|
16899
|
-
|
|
16900
|
-
var args = [];
|
|
16901
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
16902
|
-
args[_i] = arguments[_i];
|
|
16903
|
-
}
|
|
16828
|
+
}
|
|
16829
|
+
verbose(...args) {
|
|
16904
16830
|
return logProxy("verbose", this._namespace, args);
|
|
16905
|
-
}
|
|
16906
|
-
|
|
16907
|
-
})();
|
|
16831
|
+
}
|
|
16832
|
+
};
|
|
16908
16833
|
__name(logProxy, "logProxy");
|
|
16909
16834
|
}
|
|
16910
16835
|
});
|
|
16911
16836
|
|
|
16912
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16837
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/types.js
|
|
16913
16838
|
var DiagLogLevel;
|
|
16914
16839
|
var init_types = __esm({
|
|
16915
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16840
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/types.js"() {
|
|
16916
16841
|
(function(DiagLogLevel2) {
|
|
16917
16842
|
DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
|
|
16918
16843
|
DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
|
|
@@ -16925,7 +16850,7 @@ var init_types = __esm({
|
|
|
16925
16850
|
}
|
|
16926
16851
|
});
|
|
16927
16852
|
|
|
16928
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16853
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
|
16929
16854
|
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
16930
16855
|
if (maxLevel < DiagLogLevel.NONE) {
|
|
16931
16856
|
maxLevel = DiagLogLevel.NONE;
|
|
@@ -16934,7 +16859,7 @@ function createLogLevelDiagLogger(maxLevel, logger) {
|
|
|
16934
16859
|
}
|
|
16935
16860
|
logger = logger || {};
|
|
16936
16861
|
function _filterFunc(funcName, theLevel) {
|
|
16937
|
-
|
|
16862
|
+
const theFunc = logger[funcName];
|
|
16938
16863
|
if (typeof theFunc === "function" && maxLevel >= theLevel) {
|
|
16939
16864
|
return theFunc.bind(logger);
|
|
16940
16865
|
}
|
|
@@ -16951,71 +16876,51 @@ function createLogLevelDiagLogger(maxLevel, logger) {
|
|
|
16951
16876
|
};
|
|
16952
16877
|
}
|
|
16953
16878
|
var init_logLevelLogger = __esm({
|
|
16954
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16879
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"() {
|
|
16955
16880
|
init_types();
|
|
16956
16881
|
__name(createLogLevelDiagLogger, "createLogLevelDiagLogger");
|
|
16957
16882
|
}
|
|
16958
16883
|
});
|
|
16959
16884
|
|
|
16960
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16961
|
-
var
|
|
16885
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/diag.js
|
|
16886
|
+
var API_NAME, DiagAPI;
|
|
16962
16887
|
var init_diag = __esm({
|
|
16963
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
16888
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/diag.js"() {
|
|
16964
16889
|
init_ComponentLogger();
|
|
16965
16890
|
init_logLevelLogger();
|
|
16966
16891
|
init_types();
|
|
16967
16892
|
init_global_utils();
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
try {
|
|
16973
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
16974
|
-
} catch (error48) {
|
|
16975
|
-
e = { error: error48 };
|
|
16976
|
-
} finally {
|
|
16977
|
-
try {
|
|
16978
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
16979
|
-
} finally {
|
|
16980
|
-
if (e) throw e.error;
|
|
16981
|
-
}
|
|
16893
|
+
API_NAME = "diag";
|
|
16894
|
+
DiagAPI = class _DiagAPI {
|
|
16895
|
+
static {
|
|
16896
|
+
__name(this, "DiagAPI");
|
|
16982
16897
|
}
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
if (ar || !(i in from)) {
|
|
16988
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16989
|
-
ar[i] = from[i];
|
|
16898
|
+
/** Get the singleton instance of the DiagAPI API */
|
|
16899
|
+
static instance() {
|
|
16900
|
+
if (!this._instance) {
|
|
16901
|
+
this._instance = new _DiagAPI();
|
|
16990
16902
|
}
|
|
16903
|
+
return this._instance;
|
|
16991
16904
|
}
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
function DiagAPI2() {
|
|
16905
|
+
/**
|
|
16906
|
+
* Private internal constructor
|
|
16907
|
+
* @private
|
|
16908
|
+
*/
|
|
16909
|
+
constructor() {
|
|
16998
16910
|
function _logProxy(funcName) {
|
|
16999
|
-
return function() {
|
|
17000
|
-
|
|
17001
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17002
|
-
args[_i] = arguments[_i];
|
|
17003
|
-
}
|
|
17004
|
-
var logger = getGlobal("diag");
|
|
16911
|
+
return function(...args) {
|
|
16912
|
+
const logger = getGlobal("diag");
|
|
17005
16913
|
if (!logger)
|
|
17006
16914
|
return;
|
|
17007
|
-
return logger[funcName]
|
|
16915
|
+
return logger[funcName](...args);
|
|
17008
16916
|
};
|
|
17009
16917
|
}
|
|
17010
16918
|
__name(_logProxy, "_logProxy");
|
|
17011
|
-
|
|
17012
|
-
|
|
16919
|
+
const self2 = this;
|
|
16920
|
+
const setLogger = /* @__PURE__ */ __name((logger, optionsOrLogLevel = { logLevel: DiagLogLevel.INFO }) => {
|
|
17013
16921
|
var _a3, _b, _c;
|
|
17014
|
-
if (optionsOrLogLevel === void 0) {
|
|
17015
|
-
optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
|
|
17016
|
-
}
|
|
17017
16922
|
if (logger === self2) {
|
|
17018
|
-
|
|
16923
|
+
const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
17019
16924
|
self2.error((_a3 = err.stack) !== null && _a3 !== void 0 ? _a3 : err.message);
|
|
17020
16925
|
return false;
|
|
17021
16926
|
}
|
|
@@ -17024,20 +16929,20 @@ var init_diag = __esm({
|
|
|
17024
16929
|
logLevel: optionsOrLogLevel
|
|
17025
16930
|
};
|
|
17026
16931
|
}
|
|
17027
|
-
|
|
17028
|
-
|
|
16932
|
+
const oldLogger = getGlobal("diag");
|
|
16933
|
+
const newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger);
|
|
17029
16934
|
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
17030
|
-
|
|
17031
|
-
oldLogger.warn(
|
|
17032
|
-
newLogger.warn(
|
|
16935
|
+
const stack = (_c = new Error().stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
|
|
16936
|
+
oldLogger.warn(`Current logger will be overwritten from ${stack}`);
|
|
16937
|
+
newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
|
|
17033
16938
|
}
|
|
17034
16939
|
return registerGlobal("diag", newLogger, self2, true);
|
|
17035
16940
|
}, "setLogger");
|
|
17036
16941
|
self2.setLogger = setLogger;
|
|
17037
|
-
self2.disable =
|
|
16942
|
+
self2.disable = () => {
|
|
17038
16943
|
unregisterGlobal(API_NAME, self2);
|
|
17039
16944
|
};
|
|
17040
|
-
self2.createComponentLogger =
|
|
16945
|
+
self2.createComponentLogger = (options) => {
|
|
17041
16946
|
return new DiagComponentLogger(options);
|
|
17042
16947
|
};
|
|
17043
16948
|
self2.verbose = _logProxy("verbose");
|
|
@@ -17046,140 +16951,82 @@ var init_diag = __esm({
|
|
|
17046
16951
|
self2.warn = _logProxy("warn");
|
|
17047
16952
|
self2.error = _logProxy("error");
|
|
17048
16953
|
}
|
|
17049
|
-
|
|
17050
|
-
DiagAPI2.instance = function() {
|
|
17051
|
-
if (!this._instance) {
|
|
17052
|
-
this._instance = new DiagAPI2();
|
|
17053
|
-
}
|
|
17054
|
-
return this._instance;
|
|
17055
|
-
};
|
|
17056
|
-
return DiagAPI2;
|
|
17057
|
-
})();
|
|
16954
|
+
};
|
|
17058
16955
|
}
|
|
17059
16956
|
});
|
|
17060
16957
|
|
|
17061
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17062
|
-
var
|
|
16958
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js
|
|
16959
|
+
var BaggageImpl;
|
|
17063
16960
|
var init_baggage_impl = __esm({
|
|
17064
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17065
|
-
|
|
17066
|
-
|
|
17067
|
-
|
|
17068
|
-
var i = m.call(o), r, ar = [], e;
|
|
17069
|
-
try {
|
|
17070
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17071
|
-
} catch (error48) {
|
|
17072
|
-
e = { error: error48 };
|
|
17073
|
-
} finally {
|
|
17074
|
-
try {
|
|
17075
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17076
|
-
} finally {
|
|
17077
|
-
if (e) throw e.error;
|
|
17078
|
-
}
|
|
16961
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"() {
|
|
16962
|
+
BaggageImpl = class _BaggageImpl {
|
|
16963
|
+
static {
|
|
16964
|
+
__name(this, "BaggageImpl");
|
|
17079
16965
|
}
|
|
17080
|
-
|
|
17081
|
-
};
|
|
17082
|
-
__values = function(o) {
|
|
17083
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
17084
|
-
if (m) return m.call(o);
|
|
17085
|
-
if (o && typeof o.length === "number") return {
|
|
17086
|
-
next: /* @__PURE__ */ __name(function() {
|
|
17087
|
-
if (o && i >= o.length) o = void 0;
|
|
17088
|
-
return { value: o && o[i++], done: !o };
|
|
17089
|
-
}, "next")
|
|
17090
|
-
};
|
|
17091
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
17092
|
-
};
|
|
17093
|
-
BaggageImpl = /** @class */
|
|
17094
|
-
(function() {
|
|
17095
|
-
function BaggageImpl2(entries) {
|
|
16966
|
+
constructor(entries) {
|
|
17096
16967
|
this._entries = entries ? new Map(entries) : /* @__PURE__ */ new Map();
|
|
17097
16968
|
}
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
var entry = this._entries.get(key);
|
|
16969
|
+
getEntry(key) {
|
|
16970
|
+
const entry = this._entries.get(key);
|
|
17101
16971
|
if (!entry) {
|
|
17102
16972
|
return void 0;
|
|
17103
16973
|
}
|
|
17104
16974
|
return Object.assign({}, entry);
|
|
17105
|
-
}
|
|
17106
|
-
|
|
17107
|
-
return Array.from(this._entries.entries())
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
|
|
17111
|
-
};
|
|
17112
|
-
BaggageImpl2.prototype.setEntry = function(key, entry) {
|
|
17113
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
|
16975
|
+
}
|
|
16976
|
+
getAllEntries() {
|
|
16977
|
+
return Array.from(this._entries.entries());
|
|
16978
|
+
}
|
|
16979
|
+
setEntry(key, entry) {
|
|
16980
|
+
const newBaggage = new _BaggageImpl(this._entries);
|
|
17114
16981
|
newBaggage._entries.set(key, entry);
|
|
17115
16982
|
return newBaggage;
|
|
17116
|
-
}
|
|
17117
|
-
|
|
17118
|
-
|
|
16983
|
+
}
|
|
16984
|
+
removeEntry(key) {
|
|
16985
|
+
const newBaggage = new _BaggageImpl(this._entries);
|
|
17119
16986
|
newBaggage._entries.delete(key);
|
|
17120
16987
|
return newBaggage;
|
|
17121
|
-
}
|
|
17122
|
-
|
|
17123
|
-
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
-
keys[_i] = arguments[_i];
|
|
17127
|
-
}
|
|
17128
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
|
17129
|
-
try {
|
|
17130
|
-
for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
|
|
17131
|
-
var key = keys_1_1.value;
|
|
17132
|
-
newBaggage._entries.delete(key);
|
|
17133
|
-
}
|
|
17134
|
-
} catch (e_1_1) {
|
|
17135
|
-
e_1 = { error: e_1_1 };
|
|
17136
|
-
} finally {
|
|
17137
|
-
try {
|
|
17138
|
-
if (keys_1_1 && !keys_1_1.done && (_a3 = keys_1.return)) _a3.call(keys_1);
|
|
17139
|
-
} finally {
|
|
17140
|
-
if (e_1) throw e_1.error;
|
|
17141
|
-
}
|
|
16988
|
+
}
|
|
16989
|
+
removeEntries(...keys) {
|
|
16990
|
+
const newBaggage = new _BaggageImpl(this._entries);
|
|
16991
|
+
for (const key of keys) {
|
|
16992
|
+
newBaggage._entries.delete(key);
|
|
17142
16993
|
}
|
|
17143
16994
|
return newBaggage;
|
|
17144
|
-
}
|
|
17145
|
-
|
|
17146
|
-
return new
|
|
17147
|
-
}
|
|
17148
|
-
|
|
17149
|
-
})();
|
|
16995
|
+
}
|
|
16996
|
+
clear() {
|
|
16997
|
+
return new _BaggageImpl();
|
|
16998
|
+
}
|
|
16999
|
+
};
|
|
17150
17000
|
}
|
|
17151
17001
|
});
|
|
17152
17002
|
|
|
17153
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17003
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js
|
|
17154
17004
|
var baggageEntryMetadataSymbol;
|
|
17155
17005
|
var init_symbol = __esm({
|
|
17156
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17006
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"() {
|
|
17157
17007
|
baggageEntryMetadataSymbol = /* @__PURE__ */ Symbol("BaggageEntryMetadata");
|
|
17158
17008
|
}
|
|
17159
17009
|
});
|
|
17160
17010
|
|
|
17161
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17162
|
-
function createBaggage(entries) {
|
|
17163
|
-
if (entries === void 0) {
|
|
17164
|
-
entries = {};
|
|
17165
|
-
}
|
|
17011
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/utils.js
|
|
17012
|
+
function createBaggage(entries = {}) {
|
|
17166
17013
|
return new BaggageImpl(new Map(Object.entries(entries)));
|
|
17167
17014
|
}
|
|
17168
17015
|
function baggageEntryMetadataFromString(str) {
|
|
17169
17016
|
if (typeof str !== "string") {
|
|
17170
|
-
diag.error(
|
|
17017
|
+
diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
|
|
17171
17018
|
str = "";
|
|
17172
17019
|
}
|
|
17173
17020
|
return {
|
|
17174
17021
|
__TYPE__: baggageEntryMetadataSymbol,
|
|
17175
|
-
toString
|
|
17022
|
+
toString() {
|
|
17176
17023
|
return str;
|
|
17177
|
-
}
|
|
17024
|
+
}
|
|
17178
17025
|
};
|
|
17179
17026
|
}
|
|
17180
17027
|
var diag;
|
|
17181
17028
|
var init_utils = __esm({
|
|
17182
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17029
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/utils.js"() {
|
|
17183
17030
|
init_diag();
|
|
17184
17031
|
init_baggage_impl();
|
|
17185
17032
|
init_symbol();
|
|
@@ -17189,44 +17036,47 @@ var init_utils = __esm({
|
|
|
17189
17036
|
}
|
|
17190
17037
|
});
|
|
17191
17038
|
|
|
17192
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17039
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js
|
|
17193
17040
|
function createContextKey(description) {
|
|
17194
17041
|
return Symbol.for(description);
|
|
17195
17042
|
}
|
|
17196
17043
|
var BaseContext, ROOT_CONTEXT;
|
|
17197
17044
|
var init_context = __esm({
|
|
17198
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17045
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js"() {
|
|
17199
17046
|
__name(createContextKey, "createContextKey");
|
|
17200
|
-
BaseContext =
|
|
17201
|
-
|
|
17202
|
-
|
|
17203
|
-
|
|
17047
|
+
BaseContext = class _BaseContext {
|
|
17048
|
+
static {
|
|
17049
|
+
__name(this, "BaseContext");
|
|
17050
|
+
}
|
|
17051
|
+
/**
|
|
17052
|
+
* Construct a new context which inherits values from an optional parent context.
|
|
17053
|
+
*
|
|
17054
|
+
* @param parentContext a context from which to inherit values
|
|
17055
|
+
*/
|
|
17056
|
+
constructor(parentContext) {
|
|
17057
|
+
const self2 = this;
|
|
17204
17058
|
self2._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
|
|
17205
|
-
self2.getValue =
|
|
17206
|
-
|
|
17207
|
-
|
|
17208
|
-
self2.setValue = function(key, value) {
|
|
17209
|
-
var context2 = new BaseContext2(self2._currentContext);
|
|
17059
|
+
self2.getValue = (key) => self2._currentContext.get(key);
|
|
17060
|
+
self2.setValue = (key, value) => {
|
|
17061
|
+
const context2 = new _BaseContext(self2._currentContext);
|
|
17210
17062
|
context2._currentContext.set(key, value);
|
|
17211
17063
|
return context2;
|
|
17212
17064
|
};
|
|
17213
|
-
self2.deleteValue =
|
|
17214
|
-
|
|
17065
|
+
self2.deleteValue = (key) => {
|
|
17066
|
+
const context2 = new _BaseContext(self2._currentContext);
|
|
17215
17067
|
context2._currentContext.delete(key);
|
|
17216
17068
|
return context2;
|
|
17217
17069
|
};
|
|
17218
17070
|
}
|
|
17219
|
-
|
|
17220
|
-
return BaseContext2;
|
|
17221
|
-
})();
|
|
17071
|
+
};
|
|
17222
17072
|
ROOT_CONTEXT = new BaseContext();
|
|
17223
17073
|
}
|
|
17224
17074
|
});
|
|
17225
17075
|
|
|
17226
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17227
|
-
var consoleMap, DiagConsoleLogger;
|
|
17076
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js
|
|
17077
|
+
var consoleMap, _originalConsoleMethods, DiagConsoleLogger;
|
|
17228
17078
|
var init_consoleLogger = __esm({
|
|
17229
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17079
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js"() {
|
|
17230
17080
|
consoleMap = [
|
|
17231
17081
|
{ n: "error", c: "error" },
|
|
17232
17082
|
{ n: "warn", c: "warn" },
|
|
@@ -17234,185 +17084,176 @@ var init_consoleLogger = __esm({
|
|
|
17234
17084
|
{ n: "debug", c: "debug" },
|
|
17235
17085
|
{ n: "verbose", c: "trace" }
|
|
17236
17086
|
];
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17087
|
+
_originalConsoleMethods = {};
|
|
17088
|
+
if (typeof console !== "undefined") {
|
|
17089
|
+
const keys = [
|
|
17090
|
+
"error",
|
|
17091
|
+
"warn",
|
|
17092
|
+
"info",
|
|
17093
|
+
"debug",
|
|
17094
|
+
"trace",
|
|
17095
|
+
"log"
|
|
17096
|
+
];
|
|
17097
|
+
for (const key of keys) {
|
|
17098
|
+
if (typeof console[key] === "function") {
|
|
17099
|
+
_originalConsoleMethods[key] = console[key];
|
|
17100
|
+
}
|
|
17101
|
+
}
|
|
17102
|
+
}
|
|
17103
|
+
DiagConsoleLogger = class {
|
|
17104
|
+
static {
|
|
17105
|
+
__name(this, "DiagConsoleLogger");
|
|
17106
|
+
}
|
|
17107
|
+
constructor() {
|
|
17240
17108
|
function _consoleFunc(funcName) {
|
|
17241
|
-
return function() {
|
|
17242
|
-
|
|
17243
|
-
|
|
17244
|
-
|
|
17109
|
+
return function(...args) {
|
|
17110
|
+
let theFunc = _originalConsoleMethods[funcName];
|
|
17111
|
+
if (typeof theFunc !== "function") {
|
|
17112
|
+
theFunc = _originalConsoleMethods["log"];
|
|
17245
17113
|
}
|
|
17246
|
-
if (console) {
|
|
17247
|
-
|
|
17114
|
+
if (typeof theFunc !== "function" && console) {
|
|
17115
|
+
theFunc = console[funcName];
|
|
17248
17116
|
if (typeof theFunc !== "function") {
|
|
17249
17117
|
theFunc = console.log;
|
|
17250
17118
|
}
|
|
17251
|
-
|
|
17252
|
-
|
|
17253
|
-
|
|
17119
|
+
}
|
|
17120
|
+
if (typeof theFunc === "function") {
|
|
17121
|
+
return theFunc.apply(console, args);
|
|
17254
17122
|
}
|
|
17255
17123
|
};
|
|
17256
17124
|
}
|
|
17257
17125
|
__name(_consoleFunc, "_consoleFunc");
|
|
17258
|
-
for (
|
|
17126
|
+
for (let i = 0; i < consoleMap.length; i++) {
|
|
17259
17127
|
this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
|
|
17260
17128
|
}
|
|
17261
17129
|
}
|
|
17262
|
-
|
|
17263
|
-
return DiagConsoleLogger2;
|
|
17264
|
-
})();
|
|
17130
|
+
};
|
|
17265
17131
|
}
|
|
17266
17132
|
});
|
|
17267
17133
|
|
|
17268
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17134
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js
|
|
17269
17135
|
function createNoopMeter() {
|
|
17270
17136
|
return NOOP_METER;
|
|
17271
17137
|
}
|
|
17272
|
-
var
|
|
17138
|
+
var NoopMeter, NoopMetric, NoopCounterMetric, NoopUpDownCounterMetric, NoopGaugeMetric, NoopHistogramMetric, NoopObservableMetric, NoopObservableCounterMetric, NoopObservableGaugeMetric, NoopObservableUpDownCounterMetric, NOOP_METER, NOOP_COUNTER_METRIC, NOOP_GAUGE_METRIC, NOOP_HISTOGRAM_METRIC, NOOP_UP_DOWN_COUNTER_METRIC, NOOP_OBSERVABLE_COUNTER_METRIC, NOOP_OBSERVABLE_GAUGE_METRIC, NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
|
17273
17139
|
var init_NoopMeter = __esm({
|
|
17274
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17280
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
17281
|
-
};
|
|
17282
|
-
return extendStatics(d, b);
|
|
17283
|
-
}, "extendStatics");
|
|
17284
|
-
return function(d, b) {
|
|
17285
|
-
if (typeof b !== "function" && b !== null)
|
|
17286
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17287
|
-
extendStatics(d, b);
|
|
17288
|
-
function __() {
|
|
17289
|
-
this.constructor = d;
|
|
17290
|
-
}
|
|
17291
|
-
__name(__, "__");
|
|
17292
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17293
|
-
};
|
|
17294
|
-
})();
|
|
17295
|
-
NoopMeter = /** @class */
|
|
17296
|
-
(function() {
|
|
17297
|
-
function NoopMeter2() {
|
|
17140
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"() {
|
|
17141
|
+
NoopMeter = class {
|
|
17142
|
+
static {
|
|
17143
|
+
__name(this, "NoopMeter");
|
|
17144
|
+
}
|
|
17145
|
+
constructor() {
|
|
17298
17146
|
}
|
|
17299
|
-
|
|
17300
|
-
|
|
17147
|
+
/**
|
|
17148
|
+
* @see {@link Meter.createGauge}
|
|
17149
|
+
*/
|
|
17150
|
+
createGauge(_name, _options) {
|
|
17301
17151
|
return NOOP_GAUGE_METRIC;
|
|
17302
|
-
}
|
|
17303
|
-
|
|
17152
|
+
}
|
|
17153
|
+
/**
|
|
17154
|
+
* @see {@link Meter.createHistogram}
|
|
17155
|
+
*/
|
|
17156
|
+
createHistogram(_name, _options) {
|
|
17304
17157
|
return NOOP_HISTOGRAM_METRIC;
|
|
17305
|
-
}
|
|
17306
|
-
|
|
17158
|
+
}
|
|
17159
|
+
/**
|
|
17160
|
+
* @see {@link Meter.createCounter}
|
|
17161
|
+
*/
|
|
17162
|
+
createCounter(_name, _options) {
|
|
17307
17163
|
return NOOP_COUNTER_METRIC;
|
|
17308
|
-
}
|
|
17309
|
-
|
|
17164
|
+
}
|
|
17165
|
+
/**
|
|
17166
|
+
* @see {@link Meter.createUpDownCounter}
|
|
17167
|
+
*/
|
|
17168
|
+
createUpDownCounter(_name, _options) {
|
|
17310
17169
|
return NOOP_UP_DOWN_COUNTER_METRIC;
|
|
17311
|
-
}
|
|
17312
|
-
|
|
17170
|
+
}
|
|
17171
|
+
/**
|
|
17172
|
+
* @see {@link Meter.createObservableGauge}
|
|
17173
|
+
*/
|
|
17174
|
+
createObservableGauge(_name, _options) {
|
|
17313
17175
|
return NOOP_OBSERVABLE_GAUGE_METRIC;
|
|
17314
|
-
}
|
|
17315
|
-
|
|
17176
|
+
}
|
|
17177
|
+
/**
|
|
17178
|
+
* @see {@link Meter.createObservableCounter}
|
|
17179
|
+
*/
|
|
17180
|
+
createObservableCounter(_name, _options) {
|
|
17316
17181
|
return NOOP_OBSERVABLE_COUNTER_METRIC;
|
|
17317
|
-
}
|
|
17318
|
-
|
|
17182
|
+
}
|
|
17183
|
+
/**
|
|
17184
|
+
* @see {@link Meter.createObservableUpDownCounter}
|
|
17185
|
+
*/
|
|
17186
|
+
createObservableUpDownCounter(_name, _options) {
|
|
17319
17187
|
return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
|
17320
|
-
};
|
|
17321
|
-
NoopMeter2.prototype.addBatchObservableCallback = function(_callback, _observables) {
|
|
17322
|
-
};
|
|
17323
|
-
NoopMeter2.prototype.removeBatchObservableCallback = function(_callback) {
|
|
17324
|
-
};
|
|
17325
|
-
return NoopMeter2;
|
|
17326
|
-
})();
|
|
17327
|
-
NoopMetric = /** @class */
|
|
17328
|
-
/* @__PURE__ */ (function() {
|
|
17329
|
-
function NoopMetric2() {
|
|
17330
17188
|
}
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17343
|
-
|
|
17344
|
-
|
|
17345
|
-
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
}
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
|
|
17354
|
-
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
}
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17374
|
-
|
|
17375
|
-
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
}
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
(function(_super) {
|
|
17400
|
-
__extends(NoopObservableGaugeMetric2, _super);
|
|
17401
|
-
function NoopObservableGaugeMetric2() {
|
|
17402
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17403
|
-
}
|
|
17404
|
-
__name(NoopObservableGaugeMetric2, "NoopObservableGaugeMetric");
|
|
17405
|
-
return NoopObservableGaugeMetric2;
|
|
17406
|
-
})(NoopObservableMetric);
|
|
17407
|
-
NoopObservableUpDownCounterMetric = /** @class */
|
|
17408
|
-
(function(_super) {
|
|
17409
|
-
__extends(NoopObservableUpDownCounterMetric2, _super);
|
|
17410
|
-
function NoopObservableUpDownCounterMetric2() {
|
|
17411
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17412
|
-
}
|
|
17413
|
-
__name(NoopObservableUpDownCounterMetric2, "NoopObservableUpDownCounterMetric");
|
|
17414
|
-
return NoopObservableUpDownCounterMetric2;
|
|
17415
|
-
})(NoopObservableMetric);
|
|
17189
|
+
/**
|
|
17190
|
+
* @see {@link Meter.addBatchObservableCallback}
|
|
17191
|
+
*/
|
|
17192
|
+
addBatchObservableCallback(_callback, _observables) {
|
|
17193
|
+
}
|
|
17194
|
+
/**
|
|
17195
|
+
* @see {@link Meter.removeBatchObservableCallback}
|
|
17196
|
+
*/
|
|
17197
|
+
removeBatchObservableCallback(_callback) {
|
|
17198
|
+
}
|
|
17199
|
+
};
|
|
17200
|
+
NoopMetric = class {
|
|
17201
|
+
static {
|
|
17202
|
+
__name(this, "NoopMetric");
|
|
17203
|
+
}
|
|
17204
|
+
};
|
|
17205
|
+
NoopCounterMetric = class extends NoopMetric {
|
|
17206
|
+
static {
|
|
17207
|
+
__name(this, "NoopCounterMetric");
|
|
17208
|
+
}
|
|
17209
|
+
add(_value, _attributes) {
|
|
17210
|
+
}
|
|
17211
|
+
};
|
|
17212
|
+
NoopUpDownCounterMetric = class extends NoopMetric {
|
|
17213
|
+
static {
|
|
17214
|
+
__name(this, "NoopUpDownCounterMetric");
|
|
17215
|
+
}
|
|
17216
|
+
add(_value, _attributes) {
|
|
17217
|
+
}
|
|
17218
|
+
};
|
|
17219
|
+
NoopGaugeMetric = class extends NoopMetric {
|
|
17220
|
+
static {
|
|
17221
|
+
__name(this, "NoopGaugeMetric");
|
|
17222
|
+
}
|
|
17223
|
+
record(_value, _attributes) {
|
|
17224
|
+
}
|
|
17225
|
+
};
|
|
17226
|
+
NoopHistogramMetric = class extends NoopMetric {
|
|
17227
|
+
static {
|
|
17228
|
+
__name(this, "NoopHistogramMetric");
|
|
17229
|
+
}
|
|
17230
|
+
record(_value, _attributes) {
|
|
17231
|
+
}
|
|
17232
|
+
};
|
|
17233
|
+
NoopObservableMetric = class {
|
|
17234
|
+
static {
|
|
17235
|
+
__name(this, "NoopObservableMetric");
|
|
17236
|
+
}
|
|
17237
|
+
addCallback(_callback) {
|
|
17238
|
+
}
|
|
17239
|
+
removeCallback(_callback) {
|
|
17240
|
+
}
|
|
17241
|
+
};
|
|
17242
|
+
NoopObservableCounterMetric = class extends NoopObservableMetric {
|
|
17243
|
+
static {
|
|
17244
|
+
__name(this, "NoopObservableCounterMetric");
|
|
17245
|
+
}
|
|
17246
|
+
};
|
|
17247
|
+
NoopObservableGaugeMetric = class extends NoopObservableMetric {
|
|
17248
|
+
static {
|
|
17249
|
+
__name(this, "NoopObservableGaugeMetric");
|
|
17250
|
+
}
|
|
17251
|
+
};
|
|
17252
|
+
NoopObservableUpDownCounterMetric = class extends NoopObservableMetric {
|
|
17253
|
+
static {
|
|
17254
|
+
__name(this, "NoopObservableUpDownCounterMetric");
|
|
17255
|
+
}
|
|
17256
|
+
};
|
|
17416
17257
|
NOOP_METER = new NoopMeter();
|
|
17417
17258
|
NOOP_COUNTER_METRIC = new NoopCounterMetric();
|
|
17418
17259
|
NOOP_GAUGE_METRIC = new NoopGaugeMetric();
|
|
@@ -17425,10 +17266,10 @@ var init_NoopMeter = __esm({
|
|
|
17425
17266
|
}
|
|
17426
17267
|
});
|
|
17427
17268
|
|
|
17428
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17269
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js
|
|
17429
17270
|
var ValueType;
|
|
17430
17271
|
var init_Metric = __esm({
|
|
17431
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17272
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js"() {
|
|
17432
17273
|
(function(ValueType2) {
|
|
17433
17274
|
ValueType2[ValueType2["INT"] = 0] = "INT";
|
|
17434
17275
|
ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
|
|
@@ -17436,174 +17277,136 @@ var init_Metric = __esm({
|
|
|
17436
17277
|
}
|
|
17437
17278
|
});
|
|
17438
17279
|
|
|
17439
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17280
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
|
|
17440
17281
|
var defaultTextMapGetter, defaultTextMapSetter;
|
|
17441
17282
|
var init_TextMapPropagator = __esm({
|
|
17442
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17283
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js"() {
|
|
17443
17284
|
defaultTextMapGetter = {
|
|
17444
|
-
get
|
|
17285
|
+
get(carrier, key) {
|
|
17445
17286
|
if (carrier == null) {
|
|
17446
17287
|
return void 0;
|
|
17447
17288
|
}
|
|
17448
17289
|
return carrier[key];
|
|
17449
|
-
},
|
|
17450
|
-
keys
|
|
17290
|
+
},
|
|
17291
|
+
keys(carrier) {
|
|
17451
17292
|
if (carrier == null) {
|
|
17452
17293
|
return [];
|
|
17453
17294
|
}
|
|
17454
17295
|
return Object.keys(carrier);
|
|
17455
|
-
}
|
|
17296
|
+
}
|
|
17456
17297
|
};
|
|
17457
17298
|
defaultTextMapSetter = {
|
|
17458
|
-
set
|
|
17299
|
+
set(carrier, key, value) {
|
|
17459
17300
|
if (carrier == null) {
|
|
17460
17301
|
return;
|
|
17461
17302
|
}
|
|
17462
17303
|
carrier[key] = value;
|
|
17463
|
-
}
|
|
17304
|
+
}
|
|
17464
17305
|
};
|
|
17465
17306
|
}
|
|
17466
17307
|
});
|
|
17467
17308
|
|
|
17468
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17469
|
-
var
|
|
17309
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
|
|
17310
|
+
var NoopContextManager;
|
|
17470
17311
|
var init_NoopContextManager = __esm({
|
|
17471
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17312
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"() {
|
|
17472
17313
|
init_context();
|
|
17473
|
-
|
|
17474
|
-
|
|
17475
|
-
|
|
17476
|
-
var i = m.call(o), r, ar = [], e;
|
|
17477
|
-
try {
|
|
17478
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17479
|
-
} catch (error48) {
|
|
17480
|
-
e = { error: error48 };
|
|
17481
|
-
} finally {
|
|
17482
|
-
try {
|
|
17483
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17484
|
-
} finally {
|
|
17485
|
-
if (e) throw e.error;
|
|
17486
|
-
}
|
|
17314
|
+
NoopContextManager = class {
|
|
17315
|
+
static {
|
|
17316
|
+
__name(this, "NoopContextManager");
|
|
17487
17317
|
}
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
__spreadArray3 = function(to, from, pack) {
|
|
17491
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17492
|
-
if (ar || !(i in from)) {
|
|
17493
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17494
|
-
ar[i] = from[i];
|
|
17495
|
-
}
|
|
17318
|
+
active() {
|
|
17319
|
+
return ROOT_CONTEXT;
|
|
17496
17320
|
}
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
NoopContextManager = /** @class */
|
|
17500
|
-
(function() {
|
|
17501
|
-
function NoopContextManager2() {
|
|
17321
|
+
with(_context, fn, thisArg, ...args) {
|
|
17322
|
+
return fn.call(thisArg, ...args);
|
|
17502
17323
|
}
|
|
17503
|
-
|
|
17504
|
-
NoopContextManager2.prototype.active = function() {
|
|
17505
|
-
return ROOT_CONTEXT;
|
|
17506
|
-
};
|
|
17507
|
-
NoopContextManager2.prototype.with = function(_context, fn, thisArg) {
|
|
17508
|
-
var args = [];
|
|
17509
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
17510
|
-
args[_i - 3] = arguments[_i];
|
|
17511
|
-
}
|
|
17512
|
-
return fn.call.apply(fn, __spreadArray3([thisArg], __read4(args), false));
|
|
17513
|
-
};
|
|
17514
|
-
NoopContextManager2.prototype.bind = function(_context, target2) {
|
|
17324
|
+
bind(_context, target2) {
|
|
17515
17325
|
return target2;
|
|
17516
|
-
}
|
|
17517
|
-
|
|
17326
|
+
}
|
|
17327
|
+
enable() {
|
|
17518
17328
|
return this;
|
|
17519
|
-
}
|
|
17520
|
-
|
|
17329
|
+
}
|
|
17330
|
+
disable() {
|
|
17521
17331
|
return this;
|
|
17522
|
-
}
|
|
17523
|
-
|
|
17524
|
-
})();
|
|
17332
|
+
}
|
|
17333
|
+
};
|
|
17525
17334
|
}
|
|
17526
17335
|
});
|
|
17527
17336
|
|
|
17528
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17529
|
-
var
|
|
17337
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/context.js
|
|
17338
|
+
var API_NAME2, NOOP_CONTEXT_MANAGER, ContextAPI;
|
|
17530
17339
|
var init_context2 = __esm({
|
|
17531
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17340
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/context.js"() {
|
|
17532
17341
|
init_NoopContextManager();
|
|
17533
17342
|
init_global_utils();
|
|
17534
17343
|
init_diag();
|
|
17535
|
-
__read5 = function(o, n) {
|
|
17536
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
17537
|
-
if (!m) return o;
|
|
17538
|
-
var i = m.call(o), r, ar = [], e;
|
|
17539
|
-
try {
|
|
17540
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17541
|
-
} catch (error48) {
|
|
17542
|
-
e = { error: error48 };
|
|
17543
|
-
} finally {
|
|
17544
|
-
try {
|
|
17545
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17546
|
-
} finally {
|
|
17547
|
-
if (e) throw e.error;
|
|
17548
|
-
}
|
|
17549
|
-
}
|
|
17550
|
-
return ar;
|
|
17551
|
-
};
|
|
17552
|
-
__spreadArray4 = function(to, from, pack) {
|
|
17553
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17554
|
-
if (ar || !(i in from)) {
|
|
17555
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17556
|
-
ar[i] = from[i];
|
|
17557
|
-
}
|
|
17558
|
-
}
|
|
17559
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
17560
|
-
};
|
|
17561
17344
|
API_NAME2 = "context";
|
|
17562
17345
|
NOOP_CONTEXT_MANAGER = new NoopContextManager();
|
|
17563
|
-
ContextAPI =
|
|
17564
|
-
|
|
17565
|
-
|
|
17346
|
+
ContextAPI = class _ContextAPI {
|
|
17347
|
+
static {
|
|
17348
|
+
__name(this, "ContextAPI");
|
|
17349
|
+
}
|
|
17350
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
17351
|
+
constructor() {
|
|
17566
17352
|
}
|
|
17567
|
-
|
|
17568
|
-
|
|
17353
|
+
/** Get the singleton instance of the Context API */
|
|
17354
|
+
static getInstance() {
|
|
17569
17355
|
if (!this._instance) {
|
|
17570
|
-
this._instance = new
|
|
17356
|
+
this._instance = new _ContextAPI();
|
|
17571
17357
|
}
|
|
17572
17358
|
return this._instance;
|
|
17573
|
-
}
|
|
17574
|
-
|
|
17359
|
+
}
|
|
17360
|
+
/**
|
|
17361
|
+
* Set the current context manager.
|
|
17362
|
+
*
|
|
17363
|
+
* @returns true if the context manager was successfully registered, else false
|
|
17364
|
+
*/
|
|
17365
|
+
setGlobalContextManager(contextManager) {
|
|
17575
17366
|
return registerGlobal(API_NAME2, contextManager, DiagAPI.instance());
|
|
17576
|
-
}
|
|
17577
|
-
|
|
17367
|
+
}
|
|
17368
|
+
/**
|
|
17369
|
+
* Get the currently active context
|
|
17370
|
+
*/
|
|
17371
|
+
active() {
|
|
17578
17372
|
return this._getContextManager().active();
|
|
17579
|
-
}
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
|
|
17587
|
-
|
|
17588
|
-
|
|
17373
|
+
}
|
|
17374
|
+
/**
|
|
17375
|
+
* Execute a function with an active context
|
|
17376
|
+
*
|
|
17377
|
+
* @param context context to be active during function execution
|
|
17378
|
+
* @param fn function to execute in a context
|
|
17379
|
+
* @param thisArg optional receiver to be used for calling fn
|
|
17380
|
+
* @param args optional arguments forwarded to fn
|
|
17381
|
+
*/
|
|
17382
|
+
with(context2, fn, thisArg, ...args) {
|
|
17383
|
+
return this._getContextManager().with(context2, fn, thisArg, ...args);
|
|
17384
|
+
}
|
|
17385
|
+
/**
|
|
17386
|
+
* Bind a context to a target function or event emitter
|
|
17387
|
+
*
|
|
17388
|
+
* @param context context to bind to the event emitter or function. Defaults to the currently active context
|
|
17389
|
+
* @param target function or event emitter to bind
|
|
17390
|
+
*/
|
|
17391
|
+
bind(context2, target2) {
|
|
17589
17392
|
return this._getContextManager().bind(context2, target2);
|
|
17590
|
-
}
|
|
17591
|
-
|
|
17393
|
+
}
|
|
17394
|
+
_getContextManager() {
|
|
17592
17395
|
return getGlobal(API_NAME2) || NOOP_CONTEXT_MANAGER;
|
|
17593
|
-
}
|
|
17594
|
-
|
|
17396
|
+
}
|
|
17397
|
+
/** Disable and remove the global context manager */
|
|
17398
|
+
disable() {
|
|
17595
17399
|
this._getContextManager().disable();
|
|
17596
17400
|
unregisterGlobal(API_NAME2, DiagAPI.instance());
|
|
17597
|
-
}
|
|
17598
|
-
|
|
17599
|
-
})();
|
|
17401
|
+
}
|
|
17402
|
+
};
|
|
17600
17403
|
}
|
|
17601
17404
|
});
|
|
17602
17405
|
|
|
17603
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17406
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
|
|
17604
17407
|
var TraceFlags;
|
|
17605
17408
|
var init_trace_flags = __esm({
|
|
17606
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17409
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"() {
|
|
17607
17410
|
(function(TraceFlags2) {
|
|
17608
17411
|
TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
|
|
17609
17412
|
TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
|
|
@@ -17611,10 +17414,10 @@ var init_trace_flags = __esm({
|
|
|
17611
17414
|
}
|
|
17612
17415
|
});
|
|
17613
17416
|
|
|
17614
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17417
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
|
|
17615
17418
|
var INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT;
|
|
17616
17419
|
var init_invalid_span_constants = __esm({
|
|
17617
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17420
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"() {
|
|
17618
17421
|
init_trace_flags();
|
|
17619
17422
|
INVALID_SPANID = "0000000000000000";
|
|
17620
17423
|
INVALID_TRACEID = "00000000000000000000000000000000";
|
|
@@ -17626,57 +17429,63 @@ var init_invalid_span_constants = __esm({
|
|
|
17626
17429
|
}
|
|
17627
17430
|
});
|
|
17628
17431
|
|
|
17629
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17432
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
|
|
17630
17433
|
var NonRecordingSpan;
|
|
17631
17434
|
var init_NonRecordingSpan = __esm({
|
|
17632
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17435
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"() {
|
|
17633
17436
|
init_invalid_span_constants();
|
|
17634
|
-
NonRecordingSpan =
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
this._spanContext = _spanContext;
|
|
17437
|
+
NonRecordingSpan = class {
|
|
17438
|
+
static {
|
|
17439
|
+
__name(this, "NonRecordingSpan");
|
|
17440
|
+
}
|
|
17441
|
+
constructor(spanContext = INVALID_SPAN_CONTEXT) {
|
|
17442
|
+
this._spanContext = spanContext;
|
|
17641
17443
|
}
|
|
17642
|
-
|
|
17643
|
-
|
|
17444
|
+
// Returns a SpanContext.
|
|
17445
|
+
spanContext() {
|
|
17644
17446
|
return this._spanContext;
|
|
17645
|
-
}
|
|
17646
|
-
|
|
17447
|
+
}
|
|
17448
|
+
// By default does nothing
|
|
17449
|
+
setAttribute(_key, _value) {
|
|
17647
17450
|
return this;
|
|
17648
|
-
}
|
|
17649
|
-
|
|
17451
|
+
}
|
|
17452
|
+
// By default does nothing
|
|
17453
|
+
setAttributes(_attributes) {
|
|
17650
17454
|
return this;
|
|
17651
|
-
}
|
|
17652
|
-
|
|
17455
|
+
}
|
|
17456
|
+
// By default does nothing
|
|
17457
|
+
addEvent(_name, _attributes) {
|
|
17653
17458
|
return this;
|
|
17654
|
-
}
|
|
17655
|
-
|
|
17459
|
+
}
|
|
17460
|
+
addLink(_link) {
|
|
17656
17461
|
return this;
|
|
17657
|
-
}
|
|
17658
|
-
|
|
17462
|
+
}
|
|
17463
|
+
addLinks(_links) {
|
|
17659
17464
|
return this;
|
|
17660
|
-
}
|
|
17661
|
-
|
|
17465
|
+
}
|
|
17466
|
+
// By default does nothing
|
|
17467
|
+
setStatus(_status) {
|
|
17662
17468
|
return this;
|
|
17663
|
-
}
|
|
17664
|
-
|
|
17469
|
+
}
|
|
17470
|
+
// By default does nothing
|
|
17471
|
+
updateName(_name) {
|
|
17665
17472
|
return this;
|
|
17666
|
-
}
|
|
17667
|
-
|
|
17668
|
-
|
|
17669
|
-
|
|
17473
|
+
}
|
|
17474
|
+
// By default does nothing
|
|
17475
|
+
end(_endTime) {
|
|
17476
|
+
}
|
|
17477
|
+
// isRecording always returns false for NonRecordingSpan.
|
|
17478
|
+
isRecording() {
|
|
17670
17479
|
return false;
|
|
17671
|
-
}
|
|
17672
|
-
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
}
|
|
17480
|
+
}
|
|
17481
|
+
// By default does nothing
|
|
17482
|
+
recordException(_exception, _time) {
|
|
17483
|
+
}
|
|
17484
|
+
};
|
|
17676
17485
|
}
|
|
17677
17486
|
});
|
|
17678
17487
|
|
|
17679
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17488
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
|
|
17680
17489
|
function getSpan(context2) {
|
|
17681
17490
|
return context2.getValue(SPAN_KEY) || void 0;
|
|
17682
17491
|
}
|
|
@@ -17698,7 +17507,7 @@ function getSpanContext(context2) {
|
|
|
17698
17507
|
}
|
|
17699
17508
|
var SPAN_KEY;
|
|
17700
17509
|
var init_context_utils = __esm({
|
|
17701
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17510
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"() {
|
|
17702
17511
|
init_context();
|
|
17703
17512
|
init_NonRecordingSpan();
|
|
17704
17513
|
init_context2();
|
|
@@ -17712,12 +17521,21 @@ var init_context_utils = __esm({
|
|
|
17712
17521
|
}
|
|
17713
17522
|
});
|
|
17714
17523
|
|
|
17715
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17524
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
|
|
17525
|
+
function isValidHex(id, length) {
|
|
17526
|
+
if (typeof id !== "string" || id.length !== length)
|
|
17527
|
+
return false;
|
|
17528
|
+
let r = 0;
|
|
17529
|
+
for (let i = 0; i < id.length; i += 4) {
|
|
17530
|
+
r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
|
|
17531
|
+
}
|
|
17532
|
+
return r === length;
|
|
17533
|
+
}
|
|
17716
17534
|
function isValidTraceId(traceId) {
|
|
17717
|
-
return
|
|
17535
|
+
return isValidHex(traceId, 32) && traceId !== INVALID_TRACEID;
|
|
17718
17536
|
}
|
|
17719
17537
|
function isValidSpanId(spanId) {
|
|
17720
|
-
return
|
|
17538
|
+
return isValidHex(spanId, 16) && spanId !== INVALID_SPANID;
|
|
17721
17539
|
}
|
|
17722
17540
|
function isSpanContextValid(spanContext) {
|
|
17723
17541
|
return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
|
|
@@ -17725,13 +17543,117 @@ function isSpanContextValid(spanContext) {
|
|
|
17725
17543
|
function wrapSpanContext(spanContext) {
|
|
17726
17544
|
return new NonRecordingSpan(spanContext);
|
|
17727
17545
|
}
|
|
17728
|
-
var
|
|
17546
|
+
var isHex;
|
|
17729
17547
|
var init_spancontext_utils = __esm({
|
|
17730
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17548
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"() {
|
|
17731
17549
|
init_invalid_span_constants();
|
|
17732
17550
|
init_NonRecordingSpan();
|
|
17733
|
-
|
|
17734
|
-
|
|
17551
|
+
isHex = new Uint8Array([
|
|
17552
|
+
0,
|
|
17553
|
+
0,
|
|
17554
|
+
0,
|
|
17555
|
+
0,
|
|
17556
|
+
0,
|
|
17557
|
+
0,
|
|
17558
|
+
0,
|
|
17559
|
+
0,
|
|
17560
|
+
0,
|
|
17561
|
+
0,
|
|
17562
|
+
0,
|
|
17563
|
+
0,
|
|
17564
|
+
0,
|
|
17565
|
+
0,
|
|
17566
|
+
0,
|
|
17567
|
+
0,
|
|
17568
|
+
0,
|
|
17569
|
+
0,
|
|
17570
|
+
0,
|
|
17571
|
+
0,
|
|
17572
|
+
0,
|
|
17573
|
+
0,
|
|
17574
|
+
0,
|
|
17575
|
+
0,
|
|
17576
|
+
0,
|
|
17577
|
+
0,
|
|
17578
|
+
0,
|
|
17579
|
+
0,
|
|
17580
|
+
0,
|
|
17581
|
+
0,
|
|
17582
|
+
0,
|
|
17583
|
+
0,
|
|
17584
|
+
0,
|
|
17585
|
+
0,
|
|
17586
|
+
0,
|
|
17587
|
+
0,
|
|
17588
|
+
0,
|
|
17589
|
+
0,
|
|
17590
|
+
0,
|
|
17591
|
+
0,
|
|
17592
|
+
0,
|
|
17593
|
+
0,
|
|
17594
|
+
0,
|
|
17595
|
+
0,
|
|
17596
|
+
0,
|
|
17597
|
+
0,
|
|
17598
|
+
0,
|
|
17599
|
+
0,
|
|
17600
|
+
1,
|
|
17601
|
+
1,
|
|
17602
|
+
1,
|
|
17603
|
+
1,
|
|
17604
|
+
1,
|
|
17605
|
+
1,
|
|
17606
|
+
1,
|
|
17607
|
+
1,
|
|
17608
|
+
1,
|
|
17609
|
+
1,
|
|
17610
|
+
0,
|
|
17611
|
+
0,
|
|
17612
|
+
0,
|
|
17613
|
+
0,
|
|
17614
|
+
0,
|
|
17615
|
+
0,
|
|
17616
|
+
0,
|
|
17617
|
+
1,
|
|
17618
|
+
1,
|
|
17619
|
+
1,
|
|
17620
|
+
1,
|
|
17621
|
+
1,
|
|
17622
|
+
1,
|
|
17623
|
+
0,
|
|
17624
|
+
0,
|
|
17625
|
+
0,
|
|
17626
|
+
0,
|
|
17627
|
+
0,
|
|
17628
|
+
0,
|
|
17629
|
+
0,
|
|
17630
|
+
0,
|
|
17631
|
+
0,
|
|
17632
|
+
0,
|
|
17633
|
+
0,
|
|
17634
|
+
0,
|
|
17635
|
+
0,
|
|
17636
|
+
0,
|
|
17637
|
+
0,
|
|
17638
|
+
0,
|
|
17639
|
+
0,
|
|
17640
|
+
0,
|
|
17641
|
+
0,
|
|
17642
|
+
0,
|
|
17643
|
+
0,
|
|
17644
|
+
0,
|
|
17645
|
+
0,
|
|
17646
|
+
0,
|
|
17647
|
+
0,
|
|
17648
|
+
0,
|
|
17649
|
+
1,
|
|
17650
|
+
1,
|
|
17651
|
+
1,
|
|
17652
|
+
1,
|
|
17653
|
+
1,
|
|
17654
|
+
1
|
|
17655
|
+
]);
|
|
17656
|
+
__name(isValidHex, "isValidHex");
|
|
17735
17657
|
__name(isValidTraceId, "isValidTraceId");
|
|
17736
17658
|
__name(isValidSpanId, "isValidSpanId");
|
|
17737
17659
|
__name(isSpanContextValid, "isSpanContextValid");
|
|
@@ -17739,42 +17661,39 @@ var init_spancontext_utils = __esm({
|
|
|
17739
17661
|
}
|
|
17740
17662
|
});
|
|
17741
17663
|
|
|
17742
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17664
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
|
|
17743
17665
|
function isSpanContext(spanContext) {
|
|
17744
|
-
return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number";
|
|
17666
|
+
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";
|
|
17745
17667
|
}
|
|
17746
17668
|
var contextApi, NoopTracer;
|
|
17747
17669
|
var init_NoopTracer = __esm({
|
|
17748
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17670
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"() {
|
|
17749
17671
|
init_context2();
|
|
17750
17672
|
init_context_utils();
|
|
17751
17673
|
init_NonRecordingSpan();
|
|
17752
17674
|
init_spancontext_utils();
|
|
17753
17675
|
contextApi = ContextAPI.getInstance();
|
|
17754
|
-
NoopTracer =
|
|
17755
|
-
|
|
17756
|
-
|
|
17676
|
+
NoopTracer = class {
|
|
17677
|
+
static {
|
|
17678
|
+
__name(this, "NoopTracer");
|
|
17757
17679
|
}
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
context2 = contextApi.active();
|
|
17762
|
-
}
|
|
17763
|
-
var root = Boolean(options === null || options === void 0 ? void 0 : options.root);
|
|
17680
|
+
// startSpan starts a noop span.
|
|
17681
|
+
startSpan(name, options, context2 = contextApi.active()) {
|
|
17682
|
+
const root = Boolean(options === null || options === void 0 ? void 0 : options.root);
|
|
17764
17683
|
if (root) {
|
|
17765
17684
|
return new NonRecordingSpan();
|
|
17766
17685
|
}
|
|
17767
|
-
|
|
17686
|
+
const parentFromContext = context2 && getSpanContext(context2);
|
|
17768
17687
|
if (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) {
|
|
17769
17688
|
return new NonRecordingSpan(parentFromContext);
|
|
17770
17689
|
} else {
|
|
17771
17690
|
return new NonRecordingSpan();
|
|
17772
17691
|
}
|
|
17773
|
-
}
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
|
|
17777
|
-
|
|
17692
|
+
}
|
|
17693
|
+
startActiveSpan(name, arg2, arg3, arg4) {
|
|
17694
|
+
let opts;
|
|
17695
|
+
let ctx;
|
|
17696
|
+
let fn;
|
|
17778
17697
|
if (arguments.length < 2) {
|
|
17779
17698
|
return;
|
|
17780
17699
|
} else if (arguments.length === 2) {
|
|
@@ -17787,109 +17706,114 @@ var init_NoopTracer = __esm({
|
|
|
17787
17706
|
ctx = arg3;
|
|
17788
17707
|
fn = arg4;
|
|
17789
17708
|
}
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17709
|
+
const parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();
|
|
17710
|
+
const span = this.startSpan(name, opts, parentContext);
|
|
17711
|
+
const contextWithSpanSet = setSpan(parentContext, span);
|
|
17793
17712
|
return contextApi.with(contextWithSpanSet, fn, void 0, span);
|
|
17794
|
-
}
|
|
17795
|
-
|
|
17796
|
-
})();
|
|
17713
|
+
}
|
|
17714
|
+
};
|
|
17797
17715
|
__name(isSpanContext, "isSpanContext");
|
|
17798
17716
|
}
|
|
17799
17717
|
});
|
|
17800
17718
|
|
|
17801
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17719
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
|
|
17802
17720
|
var NOOP_TRACER, ProxyTracer;
|
|
17803
17721
|
var init_ProxyTracer = __esm({
|
|
17804
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17722
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"() {
|
|
17805
17723
|
init_NoopTracer();
|
|
17806
17724
|
NOOP_TRACER = new NoopTracer();
|
|
17807
|
-
ProxyTracer =
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17725
|
+
ProxyTracer = class {
|
|
17726
|
+
static {
|
|
17727
|
+
__name(this, "ProxyTracer");
|
|
17728
|
+
}
|
|
17729
|
+
constructor(provider, name, version4, options) {
|
|
17730
|
+
this._provider = provider;
|
|
17811
17731
|
this.name = name;
|
|
17812
17732
|
this.version = version4;
|
|
17813
17733
|
this.options = options;
|
|
17814
17734
|
}
|
|
17815
|
-
|
|
17816
|
-
ProxyTracer2.prototype.startSpan = function(name, options, context2) {
|
|
17735
|
+
startSpan(name, options, context2) {
|
|
17817
17736
|
return this._getTracer().startSpan(name, options, context2);
|
|
17818
|
-
}
|
|
17819
|
-
|
|
17820
|
-
|
|
17737
|
+
}
|
|
17738
|
+
startActiveSpan(_name, _options, _context, _fn) {
|
|
17739
|
+
const tracer = this._getTracer();
|
|
17821
17740
|
return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
|
|
17822
|
-
}
|
|
17823
|
-
|
|
17741
|
+
}
|
|
17742
|
+
/**
|
|
17743
|
+
* Try to get a tracer from the proxy tracer provider.
|
|
17744
|
+
* If the proxy tracer provider has no delegate, return a noop tracer.
|
|
17745
|
+
*/
|
|
17746
|
+
_getTracer() {
|
|
17824
17747
|
if (this._delegate) {
|
|
17825
17748
|
return this._delegate;
|
|
17826
17749
|
}
|
|
17827
|
-
|
|
17750
|
+
const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
17828
17751
|
if (!tracer) {
|
|
17829
17752
|
return NOOP_TRACER;
|
|
17830
17753
|
}
|
|
17831
17754
|
this._delegate = tracer;
|
|
17832
17755
|
return this._delegate;
|
|
17833
|
-
}
|
|
17834
|
-
|
|
17835
|
-
})();
|
|
17756
|
+
}
|
|
17757
|
+
};
|
|
17836
17758
|
}
|
|
17837
17759
|
});
|
|
17838
17760
|
|
|
17839
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17761
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
|
|
17840
17762
|
var NoopTracerProvider;
|
|
17841
17763
|
var init_NoopTracerProvider = __esm({
|
|
17842
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17764
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js"() {
|
|
17843
17765
|
init_NoopTracer();
|
|
17844
|
-
NoopTracerProvider =
|
|
17845
|
-
|
|
17846
|
-
|
|
17766
|
+
NoopTracerProvider = class {
|
|
17767
|
+
static {
|
|
17768
|
+
__name(this, "NoopTracerProvider");
|
|
17847
17769
|
}
|
|
17848
|
-
|
|
17849
|
-
NoopTracerProvider2.prototype.getTracer = function(_name, _version, _options) {
|
|
17770
|
+
getTracer(_name, _version, _options) {
|
|
17850
17771
|
return new NoopTracer();
|
|
17851
|
-
}
|
|
17852
|
-
|
|
17853
|
-
})();
|
|
17772
|
+
}
|
|
17773
|
+
};
|
|
17854
17774
|
}
|
|
17855
17775
|
});
|
|
17856
17776
|
|
|
17857
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17777
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
|
|
17858
17778
|
var NOOP_TRACER_PROVIDER, ProxyTracerProvider;
|
|
17859
17779
|
var init_ProxyTracerProvider = __esm({
|
|
17860
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17780
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"() {
|
|
17861
17781
|
init_ProxyTracer();
|
|
17862
17782
|
init_NoopTracerProvider();
|
|
17863
17783
|
NOOP_TRACER_PROVIDER = new NoopTracerProvider();
|
|
17864
|
-
ProxyTracerProvider =
|
|
17865
|
-
|
|
17866
|
-
|
|
17784
|
+
ProxyTracerProvider = class {
|
|
17785
|
+
static {
|
|
17786
|
+
__name(this, "ProxyTracerProvider");
|
|
17867
17787
|
}
|
|
17868
|
-
|
|
17869
|
-
|
|
17788
|
+
/**
|
|
17789
|
+
* Get a {@link ProxyTracer}
|
|
17790
|
+
*/
|
|
17791
|
+
getTracer(name, version4, options) {
|
|
17870
17792
|
var _a3;
|
|
17871
17793
|
return (_a3 = this.getDelegateTracer(name, version4, options)) !== null && _a3 !== void 0 ? _a3 : new ProxyTracer(this, name, version4, options);
|
|
17872
|
-
}
|
|
17873
|
-
|
|
17794
|
+
}
|
|
17795
|
+
getDelegate() {
|
|
17874
17796
|
var _a3;
|
|
17875
17797
|
return (_a3 = this._delegate) !== null && _a3 !== void 0 ? _a3 : NOOP_TRACER_PROVIDER;
|
|
17876
|
-
}
|
|
17877
|
-
|
|
17798
|
+
}
|
|
17799
|
+
/**
|
|
17800
|
+
* Set the delegate tracer provider
|
|
17801
|
+
*/
|
|
17802
|
+
setDelegate(delegate) {
|
|
17878
17803
|
this._delegate = delegate;
|
|
17879
|
-
}
|
|
17880
|
-
|
|
17804
|
+
}
|
|
17805
|
+
getDelegateTracer(name, version4, options) {
|
|
17881
17806
|
var _a3;
|
|
17882
17807
|
return (_a3 = this._delegate) === null || _a3 === void 0 ? void 0 : _a3.getTracer(name, version4, options);
|
|
17883
|
-
}
|
|
17884
|
-
|
|
17885
|
-
})();
|
|
17808
|
+
}
|
|
17809
|
+
};
|
|
17886
17810
|
}
|
|
17887
17811
|
});
|
|
17888
17812
|
|
|
17889
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17813
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js
|
|
17890
17814
|
var SamplingDecision;
|
|
17891
17815
|
var init_SamplingResult = __esm({
|
|
17892
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17816
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js"() {
|
|
17893
17817
|
(function(SamplingDecision2) {
|
|
17894
17818
|
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
17895
17819
|
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
|
@@ -17898,10 +17822,10 @@ var init_SamplingResult = __esm({
|
|
|
17898
17822
|
}
|
|
17899
17823
|
});
|
|
17900
17824
|
|
|
17901
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17825
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
|
|
17902
17826
|
var SpanKind;
|
|
17903
17827
|
var init_span_kind = __esm({
|
|
17904
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17828
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"() {
|
|
17905
17829
|
(function(SpanKind2) {
|
|
17906
17830
|
SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
|
|
17907
17831
|
SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
|
|
@@ -17912,10 +17836,10 @@ var init_span_kind = __esm({
|
|
|
17912
17836
|
}
|
|
17913
17837
|
});
|
|
17914
17838
|
|
|
17915
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17839
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/status.js
|
|
17916
17840
|
var SpanStatusCode;
|
|
17917
17841
|
var init_status = __esm({
|
|
17918
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17842
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/status.js"() {
|
|
17919
17843
|
(function(SpanStatusCode2) {
|
|
17920
17844
|
SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
|
|
17921
17845
|
SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
|
|
@@ -17924,7 +17848,7 @@ var init_status = __esm({
|
|
|
17924
17848
|
}
|
|
17925
17849
|
});
|
|
17926
17850
|
|
|
17927
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17851
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js
|
|
17928
17852
|
function validateKey(key) {
|
|
17929
17853
|
return VALID_KEY_REGEX.test(key);
|
|
17930
17854
|
}
|
|
@@ -17933,11 +17857,11 @@ function validateValue(value) {
|
|
|
17933
17857
|
}
|
|
17934
17858
|
var VALID_KEY_CHAR_RANGE, VALID_KEY, VALID_VENDOR_KEY, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
|
|
17935
17859
|
var init_tracestate_validators = __esm({
|
|
17936
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17860
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js"() {
|
|
17937
17861
|
VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
17938
|
-
VALID_KEY =
|
|
17939
|
-
VALID_VENDOR_KEY =
|
|
17940
|
-
VALID_KEY_REGEX = new RegExp(
|
|
17862
|
+
VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
|
17863
|
+
VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
|
17864
|
+
VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
|
17941
17865
|
VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
17942
17866
|
INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
17943
17867
|
__name(validateKey, "validateKey");
|
|
@@ -17945,55 +17869,55 @@ var init_tracestate_validators = __esm({
|
|
|
17945
17869
|
}
|
|
17946
17870
|
});
|
|
17947
17871
|
|
|
17948
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17872
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js
|
|
17949
17873
|
var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceStateImpl;
|
|
17950
17874
|
var init_tracestate_impl = __esm({
|
|
17951
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17875
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js"() {
|
|
17952
17876
|
init_tracestate_validators();
|
|
17953
17877
|
MAX_TRACE_STATE_ITEMS = 32;
|
|
17954
17878
|
MAX_TRACE_STATE_LEN = 512;
|
|
17955
17879
|
LIST_MEMBERS_SEPARATOR = ",";
|
|
17956
17880
|
LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
|
17957
|
-
TraceStateImpl =
|
|
17958
|
-
|
|
17959
|
-
|
|
17881
|
+
TraceStateImpl = class _TraceStateImpl {
|
|
17882
|
+
static {
|
|
17883
|
+
__name(this, "TraceStateImpl");
|
|
17884
|
+
}
|
|
17885
|
+
constructor(rawTraceState) {
|
|
17960
17886
|
this._internalState = /* @__PURE__ */ new Map();
|
|
17961
17887
|
if (rawTraceState)
|
|
17962
17888
|
this._parse(rawTraceState);
|
|
17963
17889
|
}
|
|
17964
|
-
|
|
17965
|
-
|
|
17966
|
-
var traceState = this._clone();
|
|
17890
|
+
set(key, value) {
|
|
17891
|
+
const traceState = this._clone();
|
|
17967
17892
|
if (traceState._internalState.has(key)) {
|
|
17968
17893
|
traceState._internalState.delete(key);
|
|
17969
17894
|
}
|
|
17970
17895
|
traceState._internalState.set(key, value);
|
|
17971
17896
|
return traceState;
|
|
17972
|
-
}
|
|
17973
|
-
|
|
17974
|
-
|
|
17897
|
+
}
|
|
17898
|
+
unset(key) {
|
|
17899
|
+
const traceState = this._clone();
|
|
17975
17900
|
traceState._internalState.delete(key);
|
|
17976
17901
|
return traceState;
|
|
17977
|
-
}
|
|
17978
|
-
|
|
17902
|
+
}
|
|
17903
|
+
get(key) {
|
|
17979
17904
|
return this._internalState.get(key);
|
|
17980
|
-
}
|
|
17981
|
-
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
|
|
17905
|
+
}
|
|
17906
|
+
serialize() {
|
|
17907
|
+
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
17908
|
+
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
17985
17909
|
return agg;
|
|
17986
17910
|
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
17987
|
-
}
|
|
17988
|
-
|
|
17911
|
+
}
|
|
17912
|
+
_parse(rawTraceState) {
|
|
17989
17913
|
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
17990
17914
|
return;
|
|
17991
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).
|
|
17992
|
-
|
|
17993
|
-
|
|
17915
|
+
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
|
|
17916
|
+
const listMember = part.trim();
|
|
17917
|
+
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
17994
17918
|
if (i !== -1) {
|
|
17995
|
-
|
|
17996
|
-
|
|
17919
|
+
const key = listMember.slice(0, i);
|
|
17920
|
+
const value = listMember.slice(i + 1, part.length);
|
|
17997
17921
|
if (validateKey(key) && validateValue(value)) {
|
|
17998
17922
|
agg.set(key, value);
|
|
17999
17923
|
} else {
|
|
@@ -18004,136 +17928,147 @@ var init_tracestate_impl = __esm({
|
|
|
18004
17928
|
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
18005
17929
|
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
18006
17930
|
}
|
|
18007
|
-
}
|
|
18008
|
-
|
|
17931
|
+
}
|
|
17932
|
+
// @ts-expect-error TS6133 Accessed in tests only.
|
|
17933
|
+
_keys() {
|
|
18009
17934
|
return Array.from(this._internalState.keys()).reverse();
|
|
18010
|
-
}
|
|
18011
|
-
|
|
18012
|
-
|
|
17935
|
+
}
|
|
17936
|
+
_clone() {
|
|
17937
|
+
const traceState = new _TraceStateImpl();
|
|
18013
17938
|
traceState._internalState = new Map(this._internalState);
|
|
18014
17939
|
return traceState;
|
|
18015
|
-
}
|
|
18016
|
-
|
|
18017
|
-
})();
|
|
17940
|
+
}
|
|
17941
|
+
};
|
|
18018
17942
|
}
|
|
18019
17943
|
});
|
|
18020
17944
|
|
|
18021
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17945
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js
|
|
18022
17946
|
function createTraceState(rawTraceState) {
|
|
18023
17947
|
return new TraceStateImpl(rawTraceState);
|
|
18024
17948
|
}
|
|
18025
17949
|
var init_utils2 = __esm({
|
|
18026
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17950
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js"() {
|
|
18027
17951
|
init_tracestate_impl();
|
|
18028
17952
|
__name(createTraceState, "createTraceState");
|
|
18029
17953
|
}
|
|
18030
17954
|
});
|
|
18031
17955
|
|
|
18032
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17956
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context-api.js
|
|
18033
17957
|
var context;
|
|
18034
17958
|
var init_context_api = __esm({
|
|
18035
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17959
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context-api.js"() {
|
|
18036
17960
|
init_context2();
|
|
18037
17961
|
context = ContextAPI.getInstance();
|
|
18038
17962
|
}
|
|
18039
17963
|
});
|
|
18040
17964
|
|
|
18041
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17965
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag-api.js
|
|
18042
17966
|
var diag2;
|
|
18043
17967
|
var init_diag_api = __esm({
|
|
18044
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17968
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag-api.js"() {
|
|
18045
17969
|
init_diag();
|
|
18046
17970
|
diag2 = DiagAPI.instance();
|
|
18047
17971
|
}
|
|
18048
17972
|
});
|
|
18049
17973
|
|
|
18050
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17974
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js
|
|
18051
17975
|
var NoopMeterProvider, NOOP_METER_PROVIDER;
|
|
18052
17976
|
var init_NoopMeterProvider = __esm({
|
|
18053
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17977
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"() {
|
|
18054
17978
|
init_NoopMeter();
|
|
18055
|
-
NoopMeterProvider =
|
|
18056
|
-
|
|
18057
|
-
|
|
17979
|
+
NoopMeterProvider = class {
|
|
17980
|
+
static {
|
|
17981
|
+
__name(this, "NoopMeterProvider");
|
|
18058
17982
|
}
|
|
18059
|
-
|
|
18060
|
-
NoopMeterProvider2.prototype.getMeter = function(_name, _version, _options) {
|
|
17983
|
+
getMeter(_name, _version, _options) {
|
|
18061
17984
|
return NOOP_METER;
|
|
18062
|
-
}
|
|
18063
|
-
|
|
18064
|
-
})();
|
|
17985
|
+
}
|
|
17986
|
+
};
|
|
18065
17987
|
NOOP_METER_PROVIDER = new NoopMeterProvider();
|
|
18066
17988
|
}
|
|
18067
17989
|
});
|
|
18068
17990
|
|
|
18069
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17991
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/metrics.js
|
|
18070
17992
|
var API_NAME3, MetricsAPI;
|
|
18071
17993
|
var init_metrics = __esm({
|
|
18072
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17994
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/metrics.js"() {
|
|
18073
17995
|
init_NoopMeterProvider();
|
|
18074
17996
|
init_global_utils();
|
|
18075
17997
|
init_diag();
|
|
18076
17998
|
API_NAME3 = "metrics";
|
|
18077
|
-
MetricsAPI =
|
|
18078
|
-
|
|
18079
|
-
|
|
17999
|
+
MetricsAPI = class _MetricsAPI {
|
|
18000
|
+
static {
|
|
18001
|
+
__name(this, "MetricsAPI");
|
|
18080
18002
|
}
|
|
18081
|
-
|
|
18082
|
-
|
|
18003
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
18004
|
+
constructor() {
|
|
18005
|
+
}
|
|
18006
|
+
/** Get the singleton instance of the Metrics API */
|
|
18007
|
+
static getInstance() {
|
|
18083
18008
|
if (!this._instance) {
|
|
18084
|
-
this._instance = new
|
|
18009
|
+
this._instance = new _MetricsAPI();
|
|
18085
18010
|
}
|
|
18086
18011
|
return this._instance;
|
|
18087
|
-
}
|
|
18088
|
-
|
|
18012
|
+
}
|
|
18013
|
+
/**
|
|
18014
|
+
* Set the current global meter provider.
|
|
18015
|
+
* Returns true if the meter provider was successfully registered, else false.
|
|
18016
|
+
*/
|
|
18017
|
+
setGlobalMeterProvider(provider) {
|
|
18089
18018
|
return registerGlobal(API_NAME3, provider, DiagAPI.instance());
|
|
18090
|
-
}
|
|
18091
|
-
|
|
18019
|
+
}
|
|
18020
|
+
/**
|
|
18021
|
+
* Returns the global meter provider.
|
|
18022
|
+
*/
|
|
18023
|
+
getMeterProvider() {
|
|
18092
18024
|
return getGlobal(API_NAME3) || NOOP_METER_PROVIDER;
|
|
18093
|
-
}
|
|
18094
|
-
|
|
18025
|
+
}
|
|
18026
|
+
/**
|
|
18027
|
+
* Returns a meter from the global meter provider.
|
|
18028
|
+
*/
|
|
18029
|
+
getMeter(name, version4, options) {
|
|
18095
18030
|
return this.getMeterProvider().getMeter(name, version4, options);
|
|
18096
|
-
}
|
|
18097
|
-
|
|
18031
|
+
}
|
|
18032
|
+
/** Remove the global meter provider */
|
|
18033
|
+
disable() {
|
|
18098
18034
|
unregisterGlobal(API_NAME3, DiagAPI.instance());
|
|
18099
|
-
}
|
|
18100
|
-
|
|
18101
|
-
})();
|
|
18035
|
+
}
|
|
18036
|
+
};
|
|
18102
18037
|
}
|
|
18103
18038
|
});
|
|
18104
18039
|
|
|
18105
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18040
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics-api.js
|
|
18106
18041
|
var metrics;
|
|
18107
18042
|
var init_metrics_api = __esm({
|
|
18108
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18043
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics-api.js"() {
|
|
18109
18044
|
init_metrics();
|
|
18110
18045
|
metrics = MetricsAPI.getInstance();
|
|
18111
18046
|
}
|
|
18112
18047
|
});
|
|
18113
18048
|
|
|
18114
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18049
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
|
|
18115
18050
|
var NoopTextMapPropagator;
|
|
18116
18051
|
var init_NoopTextMapPropagator = __esm({
|
|
18117
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18118
|
-
NoopTextMapPropagator =
|
|
18119
|
-
|
|
18120
|
-
|
|
18052
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"() {
|
|
18053
|
+
NoopTextMapPropagator = class {
|
|
18054
|
+
static {
|
|
18055
|
+
__name(this, "NoopTextMapPropagator");
|
|
18121
18056
|
}
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
}
|
|
18125
|
-
|
|
18057
|
+
/** Noop inject function does nothing */
|
|
18058
|
+
inject(_context, _carrier) {
|
|
18059
|
+
}
|
|
18060
|
+
/** Noop extract function does nothing and returns the input context */
|
|
18061
|
+
extract(context2, _carrier) {
|
|
18126
18062
|
return context2;
|
|
18127
|
-
}
|
|
18128
|
-
|
|
18063
|
+
}
|
|
18064
|
+
fields() {
|
|
18129
18065
|
return [];
|
|
18130
|
-
}
|
|
18131
|
-
|
|
18132
|
-
})();
|
|
18066
|
+
}
|
|
18067
|
+
};
|
|
18133
18068
|
}
|
|
18134
18069
|
});
|
|
18135
18070
|
|
|
18136
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18071
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
|
|
18137
18072
|
function getBaggage(context2) {
|
|
18138
18073
|
return context2.getValue(BAGGAGE_KEY) || void 0;
|
|
18139
18074
|
}
|
|
@@ -18148,7 +18083,7 @@ function deleteBaggage(context2) {
|
|
|
18148
18083
|
}
|
|
18149
18084
|
var BAGGAGE_KEY;
|
|
18150
18085
|
var init_context_helpers = __esm({
|
|
18151
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18086
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js"() {
|
|
18152
18087
|
init_context2();
|
|
18153
18088
|
init_context();
|
|
18154
18089
|
BAGGAGE_KEY = createContextKey("OpenTelemetry Baggage Key");
|
|
@@ -18159,10 +18094,10 @@ var init_context_helpers = __esm({
|
|
|
18159
18094
|
}
|
|
18160
18095
|
});
|
|
18161
18096
|
|
|
18162
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18097
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/propagation.js
|
|
18163
18098
|
var API_NAME4, NOOP_TEXT_MAP_PROPAGATOR, PropagationAPI;
|
|
18164
18099
|
var init_propagation = __esm({
|
|
18165
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18100
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/propagation.js"() {
|
|
18166
18101
|
init_global_utils();
|
|
18167
18102
|
init_NoopTextMapPropagator();
|
|
18168
18103
|
init_TextMapPropagator();
|
|
@@ -18171,73 +18106,95 @@ var init_propagation = __esm({
|
|
|
18171
18106
|
init_diag();
|
|
18172
18107
|
API_NAME4 = "propagation";
|
|
18173
18108
|
NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();
|
|
18174
|
-
PropagationAPI =
|
|
18175
|
-
|
|
18176
|
-
|
|
18109
|
+
PropagationAPI = class _PropagationAPI {
|
|
18110
|
+
static {
|
|
18111
|
+
__name(this, "PropagationAPI");
|
|
18112
|
+
}
|
|
18113
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
18114
|
+
constructor() {
|
|
18177
18115
|
this.createBaggage = createBaggage;
|
|
18178
18116
|
this.getBaggage = getBaggage;
|
|
18179
18117
|
this.getActiveBaggage = getActiveBaggage;
|
|
18180
18118
|
this.setBaggage = setBaggage;
|
|
18181
18119
|
this.deleteBaggage = deleteBaggage;
|
|
18182
18120
|
}
|
|
18183
|
-
|
|
18184
|
-
|
|
18121
|
+
/** Get the singleton instance of the Propagator API */
|
|
18122
|
+
static getInstance() {
|
|
18185
18123
|
if (!this._instance) {
|
|
18186
|
-
this._instance = new
|
|
18124
|
+
this._instance = new _PropagationAPI();
|
|
18187
18125
|
}
|
|
18188
18126
|
return this._instance;
|
|
18189
|
-
}
|
|
18190
|
-
|
|
18127
|
+
}
|
|
18128
|
+
/**
|
|
18129
|
+
* Set the current propagator.
|
|
18130
|
+
*
|
|
18131
|
+
* @returns true if the propagator was successfully registered, else false
|
|
18132
|
+
*/
|
|
18133
|
+
setGlobalPropagator(propagator) {
|
|
18191
18134
|
return registerGlobal(API_NAME4, propagator, DiagAPI.instance());
|
|
18192
|
-
}
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18135
|
+
}
|
|
18136
|
+
/**
|
|
18137
|
+
* Inject context into a carrier to be propagated inter-process
|
|
18138
|
+
*
|
|
18139
|
+
* @param context Context carrying tracing data to inject
|
|
18140
|
+
* @param carrier carrier to inject context into
|
|
18141
|
+
* @param setter Function used to set values on the carrier
|
|
18142
|
+
*/
|
|
18143
|
+
inject(context2, carrier, setter = defaultTextMapSetter) {
|
|
18197
18144
|
return this._getGlobalPropagator().inject(context2, carrier, setter);
|
|
18198
|
-
}
|
|
18199
|
-
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18145
|
+
}
|
|
18146
|
+
/**
|
|
18147
|
+
* Extract context from a carrier
|
|
18148
|
+
*
|
|
18149
|
+
* @param context Context which the newly created context will inherit from
|
|
18150
|
+
* @param carrier Carrier to extract context from
|
|
18151
|
+
* @param getter Function used to extract keys from a carrier
|
|
18152
|
+
*/
|
|
18153
|
+
extract(context2, carrier, getter = defaultTextMapGetter) {
|
|
18203
18154
|
return this._getGlobalPropagator().extract(context2, carrier, getter);
|
|
18204
|
-
}
|
|
18205
|
-
|
|
18155
|
+
}
|
|
18156
|
+
/**
|
|
18157
|
+
* Return a list of all fields which may be used by the propagator.
|
|
18158
|
+
*/
|
|
18159
|
+
fields() {
|
|
18206
18160
|
return this._getGlobalPropagator().fields();
|
|
18207
|
-
}
|
|
18208
|
-
|
|
18161
|
+
}
|
|
18162
|
+
/** Remove the global propagator */
|
|
18163
|
+
disable() {
|
|
18209
18164
|
unregisterGlobal(API_NAME4, DiagAPI.instance());
|
|
18210
|
-
}
|
|
18211
|
-
|
|
18165
|
+
}
|
|
18166
|
+
_getGlobalPropagator() {
|
|
18212
18167
|
return getGlobal(API_NAME4) || NOOP_TEXT_MAP_PROPAGATOR;
|
|
18213
|
-
}
|
|
18214
|
-
|
|
18215
|
-
})();
|
|
18168
|
+
}
|
|
18169
|
+
};
|
|
18216
18170
|
}
|
|
18217
18171
|
});
|
|
18218
18172
|
|
|
18219
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18173
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation-api.js
|
|
18220
18174
|
var propagation;
|
|
18221
18175
|
var init_propagation_api = __esm({
|
|
18222
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18176
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation-api.js"() {
|
|
18223
18177
|
init_propagation();
|
|
18224
18178
|
propagation = PropagationAPI.getInstance();
|
|
18225
18179
|
}
|
|
18226
18180
|
});
|
|
18227
18181
|
|
|
18228
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18182
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/trace.js
|
|
18229
18183
|
var API_NAME5, TraceAPI;
|
|
18230
18184
|
var init_trace = __esm({
|
|
18231
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18185
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/trace.js"() {
|
|
18232
18186
|
init_global_utils();
|
|
18233
18187
|
init_ProxyTracerProvider();
|
|
18234
18188
|
init_spancontext_utils();
|
|
18235
18189
|
init_context_utils();
|
|
18236
18190
|
init_diag();
|
|
18237
18191
|
API_NAME5 = "trace";
|
|
18238
|
-
TraceAPI =
|
|
18239
|
-
|
|
18240
|
-
|
|
18192
|
+
TraceAPI = class _TraceAPI {
|
|
18193
|
+
static {
|
|
18194
|
+
__name(this, "TraceAPI");
|
|
18195
|
+
}
|
|
18196
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
18197
|
+
constructor() {
|
|
18241
18198
|
this._proxyTracerProvider = new ProxyTracerProvider();
|
|
18242
18199
|
this.wrapSpanContext = wrapSpanContext;
|
|
18243
18200
|
this.isSpanContextValid = isSpanContextValid;
|
|
@@ -18248,45 +18205,56 @@ var init_trace = __esm({
|
|
|
18248
18205
|
this.setSpan = setSpan;
|
|
18249
18206
|
this.setSpanContext = setSpanContext;
|
|
18250
18207
|
}
|
|
18251
|
-
|
|
18252
|
-
|
|
18208
|
+
/** Get the singleton instance of the Trace API */
|
|
18209
|
+
static getInstance() {
|
|
18253
18210
|
if (!this._instance) {
|
|
18254
|
-
this._instance = new
|
|
18211
|
+
this._instance = new _TraceAPI();
|
|
18255
18212
|
}
|
|
18256
18213
|
return this._instance;
|
|
18257
|
-
}
|
|
18258
|
-
|
|
18259
|
-
|
|
18214
|
+
}
|
|
18215
|
+
/**
|
|
18216
|
+
* Set the current global tracer.
|
|
18217
|
+
*
|
|
18218
|
+
* @returns true if the tracer provider was successfully registered, else false
|
|
18219
|
+
*/
|
|
18220
|
+
setGlobalTracerProvider(provider) {
|
|
18221
|
+
const success2 = registerGlobal(API_NAME5, this._proxyTracerProvider, DiagAPI.instance());
|
|
18260
18222
|
if (success2) {
|
|
18261
18223
|
this._proxyTracerProvider.setDelegate(provider);
|
|
18262
18224
|
}
|
|
18263
18225
|
return success2;
|
|
18264
|
-
}
|
|
18265
|
-
|
|
18226
|
+
}
|
|
18227
|
+
/**
|
|
18228
|
+
* Returns the global tracer provider.
|
|
18229
|
+
*/
|
|
18230
|
+
getTracerProvider() {
|
|
18266
18231
|
return getGlobal(API_NAME5) || this._proxyTracerProvider;
|
|
18267
|
-
}
|
|
18268
|
-
|
|
18232
|
+
}
|
|
18233
|
+
/**
|
|
18234
|
+
* Returns a tracer from the global tracer provider.
|
|
18235
|
+
*/
|
|
18236
|
+
getTracer(name, version4) {
|
|
18269
18237
|
return this.getTracerProvider().getTracer(name, version4);
|
|
18270
|
-
}
|
|
18271
|
-
|
|
18238
|
+
}
|
|
18239
|
+
/** Remove the global tracer provider */
|
|
18240
|
+
disable() {
|
|
18272
18241
|
unregisterGlobal(API_NAME5, DiagAPI.instance());
|
|
18273
18242
|
this._proxyTracerProvider = new ProxyTracerProvider();
|
|
18274
|
-
}
|
|
18275
|
-
|
|
18276
|
-
})();
|
|
18243
|
+
}
|
|
18244
|
+
};
|
|
18277
18245
|
}
|
|
18278
18246
|
});
|
|
18279
18247
|
|
|
18280
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18248
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace-api.js
|
|
18281
18249
|
var trace;
|
|
18282
18250
|
var init_trace_api = __esm({
|
|
18283
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18251
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace-api.js"() {
|
|
18284
18252
|
init_trace();
|
|
18285
18253
|
trace = TraceAPI.getInstance();
|
|
18286
18254
|
}
|
|
18287
18255
|
});
|
|
18288
18256
|
|
|
18289
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18257
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/index.js
|
|
18290
18258
|
var esm_exports = {};
|
|
18291
18259
|
__export(esm_exports, {
|
|
18292
18260
|
DiagConsoleLogger: () => DiagConsoleLogger,
|
|
@@ -18320,7 +18288,7 @@ __export(esm_exports, {
|
|
|
18320
18288
|
});
|
|
18321
18289
|
var esm_default;
|
|
18322
18290
|
var init_esm = __esm({
|
|
18323
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18291
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/index.js"() {
|
|
18324
18292
|
init_utils();
|
|
18325
18293
|
init_context();
|
|
18326
18294
|
init_consoleLogger();
|
|
@@ -51637,7 +51605,7 @@ init_dist();
|
|
|
51637
51605
|
init_node();
|
|
51638
51606
|
|
|
51639
51607
|
// ../core/dist/version.js
|
|
51640
|
-
var version2 = "4.8.
|
|
51608
|
+
var version2 = "4.8.13";
|
|
51641
51609
|
|
|
51642
51610
|
// ../core/dist/runtime/world.js
|
|
51643
51611
|
var import_node_module = require("node:module");
|
|
@@ -54913,6 +54881,27 @@ function createStreamer(basedir, tag) {
|
|
|
54913
54881
|
__name(createStreamer, "createStreamer");
|
|
54914
54882
|
|
|
54915
54883
|
// ../world-local/dist/index.js
|
|
54884
|
+
async function clearTaggedLocks(basedir, tag) {
|
|
54885
|
+
const locksDir = import_node_path9.default.join(basedir, ".locks");
|
|
54886
|
+
let lockKindEntries;
|
|
54887
|
+
try {
|
|
54888
|
+
lockKindEntries = await import_node_fs2.promises.readdir(locksDir, { withFileTypes: true });
|
|
54889
|
+
} catch {
|
|
54890
|
+
lockKindEntries = [];
|
|
54891
|
+
}
|
|
54892
|
+
await Promise.all(lockKindEntries.filter((entry) => entry.isDirectory()).map(async (entry) => {
|
|
54893
|
+
const lockKindDir = import_node_path9.default.join(locksDir, entry.name);
|
|
54894
|
+
const lockNames = await import_node_fs2.promises.readdir(lockKindDir).catch(() => []);
|
|
54895
|
+
await Promise.all(lockNames.filter((name) => name.endsWith(`.${tag}`)).map((name) => (
|
|
54896
|
+
// Recursive: a run's staged hook events are a directory.
|
|
54897
|
+
import_node_fs2.promises.rm(import_node_path9.default.join(lockKindDir, name), {
|
|
54898
|
+
recursive: true,
|
|
54899
|
+
force: true
|
|
54900
|
+
})
|
|
54901
|
+
)));
|
|
54902
|
+
}));
|
|
54903
|
+
}
|
|
54904
|
+
__name(clearTaggedLocks, "clearTaggedLocks");
|
|
54916
54905
|
function createLocalWorld(args) {
|
|
54917
54906
|
const definedArgs = args ? Object.fromEntries(Object.entries(args).filter(([, value]) => value !== void 0)) : {};
|
|
54918
54907
|
const mergedConfig = { ...config2.value, ...definedArgs };
|
|
@@ -54976,8 +54965,7 @@ function createLocalWorld(args) {
|
|
|
54976
54965
|
const files = await listTaggedFiles(fullDir, tag);
|
|
54977
54966
|
await Promise.all(files.map((f) => deleteJSON(import_node_path9.default.join(fullDir, f))));
|
|
54978
54967
|
}));
|
|
54979
|
-
await
|
|
54980
|
-
});
|
|
54968
|
+
await clearTaggedLocks(basedir, tag);
|
|
54981
54969
|
const chunksDir = import_node_path9.default.join(basedir, "streams", "chunks");
|
|
54982
54970
|
const taggedBinFiles = await listTaggedFilesByExtension(chunksDir, tag, ".bin");
|
|
54983
54971
|
await Promise.all(taggedBinFiles.map((f) => import_node_fs2.promises.unlink(import_node_path9.default.join(chunksDir, f)).catch(() => {
|
|
@@ -62898,7 +62886,7 @@ var import_oidc3 = __toESM(require_dist(), 1);
|
|
|
62898
62886
|
init_dist();
|
|
62899
62887
|
|
|
62900
62888
|
// ../world-vercel/dist/version.js
|
|
62901
|
-
var version3 = "4.7.
|
|
62889
|
+
var version3 = "4.7.7";
|
|
62902
62890
|
|
|
62903
62891
|
// ../world-vercel/dist/utils.js
|
|
62904
62892
|
var WORKFLOW_SERVER_URL_OVERRIDE = "";
|
|
@@ -66109,12 +66097,25 @@ async function awaitEarlierDeliveries(ctx, eventIndex, kind) {
|
|
|
66109
66097
|
}
|
|
66110
66098
|
}
|
|
66111
66099
|
__name(awaitEarlierDeliveries, "awaitEarlierDeliveries");
|
|
66112
|
-
function registerDeliveryBarrier(ctx, eventIndex, kind, options
|
|
66100
|
+
function registerDeliveryBarrier(ctx, eventIndex, kind, options) {
|
|
66101
|
+
let deliveredToWorkflow = false;
|
|
66102
|
+
const deliver = /* @__PURE__ */ __name(() => {
|
|
66103
|
+
if (deliveredToWorkflow) {
|
|
66104
|
+
return false;
|
|
66105
|
+
}
|
|
66106
|
+
deliveredToWorkflow = true;
|
|
66107
|
+
ctx.advanceClock?.(options.deliveredAt);
|
|
66108
|
+
return true;
|
|
66109
|
+
}, "deliver");
|
|
66113
66110
|
const barriers = ctx.pendingDeliveryBarriers;
|
|
66114
66111
|
if (!barriers || eventIndex === void 0) {
|
|
66115
|
-
return {
|
|
66116
|
-
|
|
66117
|
-
|
|
66112
|
+
return {
|
|
66113
|
+
markDelivered: /* @__PURE__ */ __name(() => {
|
|
66114
|
+
deliver();
|
|
66115
|
+
}, "markDelivered"),
|
|
66116
|
+
arm: /* @__PURE__ */ __name(() => {
|
|
66117
|
+
}, "arm")
|
|
66118
|
+
};
|
|
66118
66119
|
}
|
|
66119
66120
|
let done = false;
|
|
66120
66121
|
const { promise: promise2, resolve: resolve3 } = withResolvers();
|
|
@@ -66137,7 +66138,12 @@ function registerDeliveryBarrier(ctx, eventIndex, kind, options = {}) {
|
|
|
66137
66138
|
barriers.set(eventIndex, entry);
|
|
66138
66139
|
ensureBarrierSafetyNet(ctx);
|
|
66139
66140
|
return {
|
|
66140
|
-
markDelivered:
|
|
66141
|
+
markDelivered: /* @__PURE__ */ __name(() => {
|
|
66142
|
+
if (!deliver()) {
|
|
66143
|
+
return;
|
|
66144
|
+
}
|
|
66145
|
+
finish();
|
|
66146
|
+
}, "markDelivered"),
|
|
66141
66147
|
arm: /* @__PURE__ */ __name(() => {
|
|
66142
66148
|
entry.armed = true;
|
|
66143
66149
|
}, "arm")
|
|
@@ -68748,7 +68754,9 @@ function createUseStep(ctx) {
|
|
|
68748
68754
|
if (event.eventType === "step_failed") {
|
|
68749
68755
|
ctx.invocationsQueue.delete(event.correlationId);
|
|
68750
68756
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
68751
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step"
|
|
68757
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step", {
|
|
68758
|
+
deliveredAt: +event.createdAt
|
|
68759
|
+
});
|
|
68752
68760
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "step");
|
|
68753
68761
|
ctx.promiseQueue = ctx.promiseQueue.then(() => {
|
|
68754
68762
|
const errorData = event.eventData.error;
|
|
@@ -68771,7 +68779,9 @@ function createUseStep(ctx) {
|
|
|
68771
68779
|
const completedEventId = event.eventId;
|
|
68772
68780
|
const serializedResult = event.eventData.result;
|
|
68773
68781
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
68774
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step"
|
|
68782
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "step", {
|
|
68783
|
+
deliveredAt: +event.createdAt
|
|
68784
|
+
});
|
|
68775
68785
|
let outcome;
|
|
68776
68786
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "step");
|
|
68777
68787
|
ctx.pendingDeliveries++;
|
|
@@ -69409,6 +69419,26 @@ function createCreateHook(ctx) {
|
|
|
69409
69419
|
let hasConflict = false;
|
|
69410
69420
|
let conflictErrorRef = null;
|
|
69411
69421
|
let conflictRunRef = null;
|
|
69422
|
+
let registrationDelivered = Promise.resolve();
|
|
69423
|
+
function deliverRegistration(deliveredAt, settle) {
|
|
69424
|
+
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69425
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "hook", {
|
|
69426
|
+
deliveredAt
|
|
69427
|
+
});
|
|
69428
|
+
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "hook");
|
|
69429
|
+
registrationDelivered = ctx.promiseQueue.then(() => earlierDelivered).then(() => {
|
|
69430
|
+
barrier.markDelivered();
|
|
69431
|
+
settle();
|
|
69432
|
+
});
|
|
69433
|
+
}
|
|
69434
|
+
__name(deliverRegistration, "deliverRegistration");
|
|
69435
|
+
function afterRegistration(settle) {
|
|
69436
|
+
const delivered = registrationDelivered;
|
|
69437
|
+
ctx.promiseQueue = ctx.promiseQueue.then(() => {
|
|
69438
|
+
void delivered.then(settle);
|
|
69439
|
+
});
|
|
69440
|
+
}
|
|
69441
|
+
__name(afterRegistration, "afterRegistration");
|
|
69412
69442
|
webhookLogger.debug("Hook consumer setup", { correlationId, token });
|
|
69413
69443
|
ctx.eventsConsumer.subscribe((event) => {
|
|
69414
69444
|
if (!event) {
|
|
@@ -69438,7 +69468,7 @@ function createCreateHook(ctx) {
|
|
|
69438
69468
|
hasCreated = true;
|
|
69439
69469
|
const pendingGetConflictPromises = getConflictPromises.slice();
|
|
69440
69470
|
getConflictPromises.length = 0;
|
|
69441
|
-
|
|
69471
|
+
deliverRegistration(+event.createdAt, () => {
|
|
69442
69472
|
for (const resolver2 of pendingGetConflictPromises) {
|
|
69443
69473
|
resolver2.resolve(null);
|
|
69444
69474
|
}
|
|
@@ -69456,7 +69486,7 @@ function createCreateHook(ctx) {
|
|
|
69456
69486
|
promises.length = 0;
|
|
69457
69487
|
const pendingGetConflictPromises = getConflictPromises.slice();
|
|
69458
69488
|
getConflictPromises.length = 0;
|
|
69459
|
-
|
|
69489
|
+
deliverRegistration(+event.createdAt, () => {
|
|
69460
69490
|
for (const resolver2 of pendingPromises) {
|
|
69461
69491
|
resolver2.reject(conflictError);
|
|
69462
69492
|
}
|
|
@@ -69474,7 +69504,8 @@ function createCreateHook(ctx) {
|
|
|
69474
69504
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69475
69505
|
const hasWaitingConsumer = promises.length > 0;
|
|
69476
69506
|
const barrier = registerDeliveryBarrier(ctx, eventIndex, "hook", {
|
|
69477
|
-
armed: hasWaitingConsumer
|
|
69507
|
+
armed: hasWaitingConsumer,
|
|
69508
|
+
deliveredAt: +event.createdAt
|
|
69478
69509
|
});
|
|
69479
69510
|
if (hasWaitingConsumer) {
|
|
69480
69511
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "hook");
|
|
@@ -69544,7 +69575,7 @@ function createCreateHook(ctx) {
|
|
|
69544
69575
|
function createHookPromise() {
|
|
69545
69576
|
const resolvers = withResolvers();
|
|
69546
69577
|
if (hasConflict && conflictErrorRef) {
|
|
69547
|
-
|
|
69578
|
+
afterRegistration(() => {
|
|
69548
69579
|
resolvers.reject(conflictErrorRef);
|
|
69549
69580
|
});
|
|
69550
69581
|
return resolvers.promise;
|
|
@@ -69567,13 +69598,13 @@ function createCreateHook(ctx) {
|
|
|
69567
69598
|
function createGetConflictPromise() {
|
|
69568
69599
|
const resolvers = withResolvers();
|
|
69569
69600
|
if (hasCreated) {
|
|
69570
|
-
|
|
69601
|
+
afterRegistration(() => {
|
|
69571
69602
|
resolvers.resolve(null);
|
|
69572
69603
|
});
|
|
69573
69604
|
return resolvers.promise;
|
|
69574
69605
|
}
|
|
69575
69606
|
if (hasConflict) {
|
|
69576
|
-
|
|
69607
|
+
afterRegistration(() => {
|
|
69577
69608
|
if (conflictRunRef) {
|
|
69578
69609
|
resolvers.resolve(conflictRunRef);
|
|
69579
69610
|
} else {
|
|
@@ -69691,7 +69722,9 @@ function createSleep(ctx) {
|
|
|
69691
69722
|
}
|
|
69692
69723
|
ctx.invocationsQueue.delete(correlationId);
|
|
69693
69724
|
const eventIndex = ctx.eventsConsumer.eventIndex;
|
|
69694
|
-
const barrier = registerDeliveryBarrier(ctx, eventIndex, "wait"
|
|
69725
|
+
const barrier = registerDeliveryBarrier(ctx, eventIndex, "wait", {
|
|
69726
|
+
deliveredAt: +event.createdAt
|
|
69727
|
+
});
|
|
69695
69728
|
const earlierDelivered = awaitEarlierDeliveries(ctx, eventIndex, "wait");
|
|
69696
69729
|
const queueAtCompletion = ctx.promiseQueue;
|
|
69697
69730
|
void queueAtCompletion.then(() => earlierDelivered).then(() => {
|
|
@@ -69753,10 +69786,14 @@ async function runWorkflow(workflowCode2, workflowRun, events, encryptionKey, st
|
|
|
69753
69786
|
const generateNanoid = customRandom(urlAlphabet, 21, (size) => new Uint8Array(size).map(() => 256 * vmGlobalThis.Math.random()));
|
|
69754
69787
|
const promiseQueueHolder = { current: Promise.resolve() };
|
|
69755
69788
|
const deliveryIdleHolder = { current: /* @__PURE__ */ __name(() => true, "current") };
|
|
69789
|
+
let clock = +startedAt;
|
|
69790
|
+
const advanceClock = /* @__PURE__ */ __name((at) => {
|
|
69791
|
+
if (at > clock) {
|
|
69792
|
+
clock = at;
|
|
69793
|
+
updateTimestamp(at);
|
|
69794
|
+
}
|
|
69795
|
+
}, "advanceClock");
|
|
69756
69796
|
const eventsConsumer = new EventsConsumer(events, {
|
|
69757
|
-
onConsumedEvent: /* @__PURE__ */ __name((event) => {
|
|
69758
|
-
updateTimestamp(+event.createdAt);
|
|
69759
|
-
}, "onConsumedEvent"),
|
|
69760
69797
|
onUnconsumedEvent: /* @__PURE__ */ __name((event) => {
|
|
69761
69798
|
workflowDiscontinuation.reject(new ReplayDivergenceError(`Replay could not consume event: eventType=${event.eventType}, correlationId=${event.correlationId}, eventId=${event.eventId}.`, { eventId: event.eventId }));
|
|
69762
69799
|
}, "onUnconsumedEvent"),
|
|
@@ -69782,6 +69819,7 @@ async function runWorkflow(workflowCode2, workflowRun, events, encryptionKey, st
|
|
|
69782
69819
|
},
|
|
69783
69820
|
pendingDeliveries: 0,
|
|
69784
69821
|
pendingDeliveryBarriers: /* @__PURE__ */ new Map(),
|
|
69822
|
+
advanceClock,
|
|
69785
69823
|
stepHydrationCache
|
|
69786
69824
|
};
|
|
69787
69825
|
deliveryIdleHolder.current = () => isDeliveryIdle(workflowContext);
|