@workflow/world-testing 5.0.0-beta.33 → 5.0.0-beta.34
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.
|
@@ -17113,47 +17113,23 @@ Caused by: ${options.cause.stack}`;
|
|
|
17113
17113
|
}
|
|
17114
17114
|
});
|
|
17115
17115
|
|
|
17116
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17117
|
-
var _globalThis;
|
|
17118
|
-
var init_globalThis = __esm({
|
|
17119
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js"() {
|
|
17120
|
-
_globalThis = typeof globalThis === "object" ? globalThis : global;
|
|
17121
|
-
}
|
|
17122
|
-
});
|
|
17123
|
-
|
|
17124
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js
|
|
17125
|
-
var init_node3 = __esm({
|
|
17126
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js"() {
|
|
17127
|
-
init_globalThis();
|
|
17128
|
-
}
|
|
17129
|
-
});
|
|
17130
|
-
|
|
17131
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js
|
|
17132
|
-
var init_platform = __esm({
|
|
17133
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js"() {
|
|
17134
|
-
init_node3();
|
|
17135
|
-
}
|
|
17136
|
-
});
|
|
17137
|
-
|
|
17138
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/version.js
|
|
17116
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/version.js
|
|
17139
17117
|
var VERSION;
|
|
17140
17118
|
var init_version2 = __esm({
|
|
17141
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17142
|
-
VERSION = "1.9.
|
|
17119
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/version.js"() {
|
|
17120
|
+
VERSION = "1.9.1";
|
|
17143
17121
|
}
|
|
17144
17122
|
});
|
|
17145
17123
|
|
|
17146
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17124
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/semver.js
|
|
17147
17125
|
function _makeCompatibilityCheck(ownVersion) {
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17126
|
+
const acceptedVersions = /* @__PURE__ */ new Set([ownVersion]);
|
|
17127
|
+
const rejectedVersions = /* @__PURE__ */ new Set();
|
|
17128
|
+
const myVersionMatch = ownVersion.match(re);
|
|
17151
17129
|
if (!myVersionMatch) {
|
|
17152
|
-
return
|
|
17153
|
-
return false;
|
|
17154
|
-
};
|
|
17130
|
+
return () => false;
|
|
17155
17131
|
}
|
|
17156
|
-
|
|
17132
|
+
const ownVersionParsed = {
|
|
17157
17133
|
major: +myVersionMatch[1],
|
|
17158
17134
|
minor: +myVersionMatch[2],
|
|
17159
17135
|
patch: +myVersionMatch[3],
|
|
@@ -17181,11 +17157,11 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
17181
17157
|
if (rejectedVersions.has(globalVersion)) {
|
|
17182
17158
|
return false;
|
|
17183
17159
|
}
|
|
17184
|
-
|
|
17160
|
+
const globalVersionMatch = globalVersion.match(re);
|
|
17185
17161
|
if (!globalVersionMatch) {
|
|
17186
17162
|
return _reject(globalVersion);
|
|
17187
17163
|
}
|
|
17188
|
-
|
|
17164
|
+
const globalVersionParsed = {
|
|
17189
17165
|
major: +globalVersionMatch[1],
|
|
17190
17166
|
minor: +globalVersionMatch[2],
|
|
17191
17167
|
patch: +globalVersionMatch[3],
|
|
@@ -17211,7 +17187,7 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
17211
17187
|
}
|
|
17212
17188
|
var re, isCompatible;
|
|
17213
17189
|
var init_semver = __esm({
|
|
17214
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17190
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/semver.js"() {
|
|
17215
17191
|
init_version2();
|
|
17216
17192
|
re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
17217
17193
|
__name(_makeCompatibilityCheck, "_makeCompatibilityCheck");
|
|
@@ -17219,149 +17195,98 @@ var init_semver = __esm({
|
|
|
17219
17195
|
}
|
|
17220
17196
|
});
|
|
17221
17197
|
|
|
17222
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17223
|
-
function registerGlobal(type, instance, diag3, allowOverride) {
|
|
17198
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
|
|
17199
|
+
function registerGlobal(type, instance, diag3, allowOverride = false) {
|
|
17224
17200
|
var _a3;
|
|
17225
|
-
|
|
17226
|
-
allowOverride = false;
|
|
17227
|
-
}
|
|
17228
|
-
var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
|
|
17201
|
+
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
|
|
17229
17202
|
version: VERSION
|
|
17230
17203
|
};
|
|
17231
17204
|
if (!allowOverride && api[type]) {
|
|
17232
|
-
|
|
17205
|
+
const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
|
|
17233
17206
|
diag3.error(err.stack || err.message);
|
|
17234
17207
|
return false;
|
|
17235
17208
|
}
|
|
17236
17209
|
if (api.version !== VERSION) {
|
|
17237
|
-
|
|
17210
|
+
const err = new Error(`@opentelemetry/api: Registration of version v${api.version} for ${type} does not match previously registered API v${VERSION}`);
|
|
17238
17211
|
diag3.error(err.stack || err.message);
|
|
17239
17212
|
return false;
|
|
17240
17213
|
}
|
|
17241
17214
|
api[type] = instance;
|
|
17242
|
-
diag3.debug(
|
|
17215
|
+
diag3.debug(`@opentelemetry/api: Registered a global for ${type} v${VERSION}.`);
|
|
17243
17216
|
return true;
|
|
17244
17217
|
}
|
|
17245
17218
|
function getGlobal(type) {
|
|
17246
17219
|
var _a3, _b;
|
|
17247
|
-
|
|
17220
|
+
const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === void 0 ? void 0 : _a3.version;
|
|
17248
17221
|
if (!globalVersion || !isCompatible(globalVersion)) {
|
|
17249
17222
|
return;
|
|
17250
17223
|
}
|
|
17251
17224
|
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
|
|
17252
17225
|
}
|
|
17253
17226
|
function unregisterGlobal(type, diag3) {
|
|
17254
|
-
diag3.debug(
|
|
17255
|
-
|
|
17227
|
+
diag3.debug(`@opentelemetry/api: Unregistering a global for ${type} v${VERSION}.`);
|
|
17228
|
+
const api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
17256
17229
|
if (api) {
|
|
17257
17230
|
delete api[type];
|
|
17258
17231
|
}
|
|
17259
17232
|
}
|
|
17260
17233
|
var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
|
|
17261
17234
|
var init_global_utils = __esm({
|
|
17262
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17263
|
-
init_platform();
|
|
17235
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"() {
|
|
17264
17236
|
init_version2();
|
|
17265
17237
|
init_semver();
|
|
17266
17238
|
major = VERSION.split(".")[0];
|
|
17267
|
-
GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(
|
|
17268
|
-
_global =
|
|
17239
|
+
GLOBAL_OPENTELEMETRY_API_KEY = /* @__PURE__ */ Symbol.for(`opentelemetry.js.api.${major}`);
|
|
17240
|
+
_global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
17269
17241
|
__name(registerGlobal, "registerGlobal");
|
|
17270
17242
|
__name(getGlobal, "getGlobal");
|
|
17271
17243
|
__name(unregisterGlobal, "unregisterGlobal");
|
|
17272
17244
|
}
|
|
17273
17245
|
});
|
|
17274
17246
|
|
|
17275
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17247
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
|
|
17276
17248
|
function logProxy(funcName, namespace, args) {
|
|
17277
|
-
|
|
17249
|
+
const logger = getGlobal("diag");
|
|
17278
17250
|
if (!logger) {
|
|
17279
17251
|
return;
|
|
17280
17252
|
}
|
|
17281
|
-
|
|
17282
|
-
return logger[funcName].apply(logger, __spreadArray([], __read(args), false));
|
|
17253
|
+
return logger[funcName](namespace, ...args);
|
|
17283
17254
|
}
|
|
17284
|
-
var
|
|
17255
|
+
var DiagComponentLogger;
|
|
17285
17256
|
var init_ComponentLogger = __esm({
|
|
17286
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17257
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"() {
|
|
17287
17258
|
init_global_utils();
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
var i = m.call(o), r, ar = [], e;
|
|
17292
|
-
try {
|
|
17293
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17294
|
-
} catch (error95) {
|
|
17295
|
-
e = { error: error95 };
|
|
17296
|
-
} finally {
|
|
17297
|
-
try {
|
|
17298
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17299
|
-
} finally {
|
|
17300
|
-
if (e) throw e.error;
|
|
17301
|
-
}
|
|
17302
|
-
}
|
|
17303
|
-
return ar;
|
|
17304
|
-
};
|
|
17305
|
-
__spreadArray = function(to, from, pack) {
|
|
17306
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17307
|
-
if (ar || !(i in from)) {
|
|
17308
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17309
|
-
ar[i] = from[i];
|
|
17310
|
-
}
|
|
17259
|
+
DiagComponentLogger = class {
|
|
17260
|
+
static {
|
|
17261
|
+
__name(this, "DiagComponentLogger");
|
|
17311
17262
|
}
|
|
17312
|
-
|
|
17313
|
-
};
|
|
17314
|
-
DiagComponentLogger = /** @class */
|
|
17315
|
-
(function() {
|
|
17316
|
-
function DiagComponentLogger2(props) {
|
|
17263
|
+
constructor(props) {
|
|
17317
17264
|
this._namespace = props.namespace || "DiagComponentLogger";
|
|
17318
17265
|
}
|
|
17319
|
-
|
|
17320
|
-
DiagComponentLogger2.prototype.debug = function() {
|
|
17321
|
-
var args = [];
|
|
17322
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17323
|
-
args[_i] = arguments[_i];
|
|
17324
|
-
}
|
|
17266
|
+
debug(...args) {
|
|
17325
17267
|
return logProxy("debug", this._namespace, args);
|
|
17326
|
-
}
|
|
17327
|
-
|
|
17328
|
-
var args = [];
|
|
17329
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17330
|
-
args[_i] = arguments[_i];
|
|
17331
|
-
}
|
|
17268
|
+
}
|
|
17269
|
+
error(...args) {
|
|
17332
17270
|
return logProxy("error", this._namespace, args);
|
|
17333
|
-
}
|
|
17334
|
-
|
|
17335
|
-
var args = [];
|
|
17336
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17337
|
-
args[_i] = arguments[_i];
|
|
17338
|
-
}
|
|
17271
|
+
}
|
|
17272
|
+
info(...args) {
|
|
17339
17273
|
return logProxy("info", this._namespace, args);
|
|
17340
|
-
}
|
|
17341
|
-
|
|
17342
|
-
var args = [];
|
|
17343
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17344
|
-
args[_i] = arguments[_i];
|
|
17345
|
-
}
|
|
17274
|
+
}
|
|
17275
|
+
warn(...args) {
|
|
17346
17276
|
return logProxy("warn", this._namespace, args);
|
|
17347
|
-
}
|
|
17348
|
-
|
|
17349
|
-
var args = [];
|
|
17350
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17351
|
-
args[_i] = arguments[_i];
|
|
17352
|
-
}
|
|
17277
|
+
}
|
|
17278
|
+
verbose(...args) {
|
|
17353
17279
|
return logProxy("verbose", this._namespace, args);
|
|
17354
|
-
}
|
|
17355
|
-
|
|
17356
|
-
})();
|
|
17280
|
+
}
|
|
17281
|
+
};
|
|
17357
17282
|
__name(logProxy, "logProxy");
|
|
17358
17283
|
}
|
|
17359
17284
|
});
|
|
17360
17285
|
|
|
17361
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17286
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/types.js
|
|
17362
17287
|
var DiagLogLevel;
|
|
17363
17288
|
var init_types2 = __esm({
|
|
17364
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17289
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/types.js"() {
|
|
17365
17290
|
(function(DiagLogLevel2) {
|
|
17366
17291
|
DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
|
|
17367
17292
|
DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
|
|
@@ -17374,7 +17299,7 @@ var init_types2 = __esm({
|
|
|
17374
17299
|
}
|
|
17375
17300
|
});
|
|
17376
17301
|
|
|
17377
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17302
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
|
17378
17303
|
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
17379
17304
|
if (maxLevel < DiagLogLevel.NONE) {
|
|
17380
17305
|
maxLevel = DiagLogLevel.NONE;
|
|
@@ -17383,7 +17308,7 @@ function createLogLevelDiagLogger(maxLevel, logger) {
|
|
|
17383
17308
|
}
|
|
17384
17309
|
logger = logger || {};
|
|
17385
17310
|
function _filterFunc(funcName, theLevel) {
|
|
17386
|
-
|
|
17311
|
+
const theFunc = logger[funcName];
|
|
17387
17312
|
if (typeof theFunc === "function" && maxLevel >= theLevel) {
|
|
17388
17313
|
return theFunc.bind(logger);
|
|
17389
17314
|
}
|
|
@@ -17400,71 +17325,51 @@ function createLogLevelDiagLogger(maxLevel, logger) {
|
|
|
17400
17325
|
};
|
|
17401
17326
|
}
|
|
17402
17327
|
var init_logLevelLogger = __esm({
|
|
17403
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17328
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"() {
|
|
17404
17329
|
init_types2();
|
|
17405
17330
|
__name(createLogLevelDiagLogger, "createLogLevelDiagLogger");
|
|
17406
17331
|
}
|
|
17407
17332
|
});
|
|
17408
17333
|
|
|
17409
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17410
|
-
var
|
|
17334
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/diag.js
|
|
17335
|
+
var API_NAME, DiagAPI;
|
|
17411
17336
|
var init_diag = __esm({
|
|
17412
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17337
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/diag.js"() {
|
|
17413
17338
|
init_ComponentLogger();
|
|
17414
17339
|
init_logLevelLogger();
|
|
17415
17340
|
init_types2();
|
|
17416
17341
|
init_global_utils();
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
try {
|
|
17422
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17423
|
-
} catch (error95) {
|
|
17424
|
-
e = { error: error95 };
|
|
17425
|
-
} finally {
|
|
17426
|
-
try {
|
|
17427
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17428
|
-
} finally {
|
|
17429
|
-
if (e) throw e.error;
|
|
17430
|
-
}
|
|
17342
|
+
API_NAME = "diag";
|
|
17343
|
+
DiagAPI = class _DiagAPI {
|
|
17344
|
+
static {
|
|
17345
|
+
__name(this, "DiagAPI");
|
|
17431
17346
|
}
|
|
17432
|
-
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
|
|
17436
|
-
if (ar || !(i in from)) {
|
|
17437
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17438
|
-
ar[i] = from[i];
|
|
17347
|
+
/** Get the singleton instance of the DiagAPI API */
|
|
17348
|
+
static instance() {
|
|
17349
|
+
if (!this._instance) {
|
|
17350
|
+
this._instance = new _DiagAPI();
|
|
17439
17351
|
}
|
|
17352
|
+
return this._instance;
|
|
17440
17353
|
}
|
|
17441
|
-
|
|
17442
|
-
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
|
|
17446
|
-
function DiagAPI2() {
|
|
17354
|
+
/**
|
|
17355
|
+
* Private internal constructor
|
|
17356
|
+
* @private
|
|
17357
|
+
*/
|
|
17358
|
+
constructor() {
|
|
17447
17359
|
function _logProxy(funcName) {
|
|
17448
|
-
return function() {
|
|
17449
|
-
|
|
17450
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17451
|
-
args[_i] = arguments[_i];
|
|
17452
|
-
}
|
|
17453
|
-
var logger = getGlobal("diag");
|
|
17360
|
+
return function(...args) {
|
|
17361
|
+
const logger = getGlobal("diag");
|
|
17454
17362
|
if (!logger)
|
|
17455
17363
|
return;
|
|
17456
|
-
return logger[funcName]
|
|
17364
|
+
return logger[funcName](...args);
|
|
17457
17365
|
};
|
|
17458
17366
|
}
|
|
17459
17367
|
__name(_logProxy, "_logProxy");
|
|
17460
|
-
|
|
17461
|
-
|
|
17368
|
+
const self2 = this;
|
|
17369
|
+
const setLogger = /* @__PURE__ */ __name((logger, optionsOrLogLevel = { logLevel: DiagLogLevel.INFO }) => {
|
|
17462
17370
|
var _a3, _b, _c;
|
|
17463
|
-
if (optionsOrLogLevel === void 0) {
|
|
17464
|
-
optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
|
|
17465
|
-
}
|
|
17466
17371
|
if (logger === self2) {
|
|
17467
|
-
|
|
17372
|
+
const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
17468
17373
|
self2.error((_a3 = err.stack) !== null && _a3 !== void 0 ? _a3 : err.message);
|
|
17469
17374
|
return false;
|
|
17470
17375
|
}
|
|
@@ -17473,20 +17378,20 @@ var init_diag = __esm({
|
|
|
17473
17378
|
logLevel: optionsOrLogLevel
|
|
17474
17379
|
};
|
|
17475
17380
|
}
|
|
17476
|
-
|
|
17477
|
-
|
|
17381
|
+
const oldLogger = getGlobal("diag");
|
|
17382
|
+
const newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger);
|
|
17478
17383
|
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
17479
|
-
|
|
17480
|
-
oldLogger.warn(
|
|
17481
|
-
newLogger.warn(
|
|
17384
|
+
const stack = (_c = new Error().stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
|
|
17385
|
+
oldLogger.warn(`Current logger will be overwritten from ${stack}`);
|
|
17386
|
+
newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
|
|
17482
17387
|
}
|
|
17483
17388
|
return registerGlobal("diag", newLogger, self2, true);
|
|
17484
17389
|
}, "setLogger");
|
|
17485
17390
|
self2.setLogger = setLogger;
|
|
17486
|
-
self2.disable =
|
|
17391
|
+
self2.disable = () => {
|
|
17487
17392
|
unregisterGlobal(API_NAME, self2);
|
|
17488
17393
|
};
|
|
17489
|
-
self2.createComponentLogger =
|
|
17394
|
+
self2.createComponentLogger = (options) => {
|
|
17490
17395
|
return new DiagComponentLogger(options);
|
|
17491
17396
|
};
|
|
17492
17397
|
self2.verbose = _logProxy("verbose");
|
|
@@ -17495,140 +17400,82 @@ var init_diag = __esm({
|
|
|
17495
17400
|
self2.warn = _logProxy("warn");
|
|
17496
17401
|
self2.error = _logProxy("error");
|
|
17497
17402
|
}
|
|
17498
|
-
|
|
17499
|
-
DiagAPI2.instance = function() {
|
|
17500
|
-
if (!this._instance) {
|
|
17501
|
-
this._instance = new DiagAPI2();
|
|
17502
|
-
}
|
|
17503
|
-
return this._instance;
|
|
17504
|
-
};
|
|
17505
|
-
return DiagAPI2;
|
|
17506
|
-
})();
|
|
17403
|
+
};
|
|
17507
17404
|
}
|
|
17508
17405
|
});
|
|
17509
17406
|
|
|
17510
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17511
|
-
var
|
|
17407
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js
|
|
17408
|
+
var BaggageImpl;
|
|
17512
17409
|
var init_baggage_impl = __esm({
|
|
17513
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17514
|
-
|
|
17515
|
-
|
|
17516
|
-
|
|
17517
|
-
var i = m.call(o), r, ar = [], e;
|
|
17518
|
-
try {
|
|
17519
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17520
|
-
} catch (error95) {
|
|
17521
|
-
e = { error: error95 };
|
|
17522
|
-
} finally {
|
|
17523
|
-
try {
|
|
17524
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17525
|
-
} finally {
|
|
17526
|
-
if (e) throw e.error;
|
|
17527
|
-
}
|
|
17410
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"() {
|
|
17411
|
+
BaggageImpl = class _BaggageImpl {
|
|
17412
|
+
static {
|
|
17413
|
+
__name(this, "BaggageImpl");
|
|
17528
17414
|
}
|
|
17529
|
-
|
|
17530
|
-
};
|
|
17531
|
-
__values = function(o) {
|
|
17532
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
17533
|
-
if (m) return m.call(o);
|
|
17534
|
-
if (o && typeof o.length === "number") return {
|
|
17535
|
-
next: /* @__PURE__ */ __name(function() {
|
|
17536
|
-
if (o && i >= o.length) o = void 0;
|
|
17537
|
-
return { value: o && o[i++], done: !o };
|
|
17538
|
-
}, "next")
|
|
17539
|
-
};
|
|
17540
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
17541
|
-
};
|
|
17542
|
-
BaggageImpl = /** @class */
|
|
17543
|
-
(function() {
|
|
17544
|
-
function BaggageImpl2(entries) {
|
|
17415
|
+
constructor(entries) {
|
|
17545
17416
|
this._entries = entries ? new Map(entries) : /* @__PURE__ */ new Map();
|
|
17546
17417
|
}
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
var entry = this._entries.get(key);
|
|
17418
|
+
getEntry(key) {
|
|
17419
|
+
const entry = this._entries.get(key);
|
|
17550
17420
|
if (!entry) {
|
|
17551
17421
|
return void 0;
|
|
17552
17422
|
}
|
|
17553
17423
|
return Object.assign({}, entry);
|
|
17554
|
-
}
|
|
17555
|
-
|
|
17556
|
-
return Array.from(this._entries.entries())
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
};
|
|
17561
|
-
BaggageImpl2.prototype.setEntry = function(key, entry) {
|
|
17562
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
|
17424
|
+
}
|
|
17425
|
+
getAllEntries() {
|
|
17426
|
+
return Array.from(this._entries.entries());
|
|
17427
|
+
}
|
|
17428
|
+
setEntry(key, entry) {
|
|
17429
|
+
const newBaggage = new _BaggageImpl(this._entries);
|
|
17563
17430
|
newBaggage._entries.set(key, entry);
|
|
17564
17431
|
return newBaggage;
|
|
17565
|
-
}
|
|
17566
|
-
|
|
17567
|
-
|
|
17432
|
+
}
|
|
17433
|
+
removeEntry(key) {
|
|
17434
|
+
const newBaggage = new _BaggageImpl(this._entries);
|
|
17568
17435
|
newBaggage._entries.delete(key);
|
|
17569
17436
|
return newBaggage;
|
|
17570
|
-
}
|
|
17571
|
-
|
|
17572
|
-
|
|
17573
|
-
|
|
17574
|
-
|
|
17575
|
-
keys[_i] = arguments[_i];
|
|
17576
|
-
}
|
|
17577
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
|
17578
|
-
try {
|
|
17579
|
-
for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
|
|
17580
|
-
var key = keys_1_1.value;
|
|
17581
|
-
newBaggage._entries.delete(key);
|
|
17582
|
-
}
|
|
17583
|
-
} catch (e_1_1) {
|
|
17584
|
-
e_1 = { error: e_1_1 };
|
|
17585
|
-
} finally {
|
|
17586
|
-
try {
|
|
17587
|
-
if (keys_1_1 && !keys_1_1.done && (_a3 = keys_1.return)) _a3.call(keys_1);
|
|
17588
|
-
} finally {
|
|
17589
|
-
if (e_1) throw e_1.error;
|
|
17590
|
-
}
|
|
17437
|
+
}
|
|
17438
|
+
removeEntries(...keys) {
|
|
17439
|
+
const newBaggage = new _BaggageImpl(this._entries);
|
|
17440
|
+
for (const key of keys) {
|
|
17441
|
+
newBaggage._entries.delete(key);
|
|
17591
17442
|
}
|
|
17592
17443
|
return newBaggage;
|
|
17593
|
-
}
|
|
17594
|
-
|
|
17595
|
-
return new
|
|
17596
|
-
}
|
|
17597
|
-
|
|
17598
|
-
})();
|
|
17444
|
+
}
|
|
17445
|
+
clear() {
|
|
17446
|
+
return new _BaggageImpl();
|
|
17447
|
+
}
|
|
17448
|
+
};
|
|
17599
17449
|
}
|
|
17600
17450
|
});
|
|
17601
17451
|
|
|
17602
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17452
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js
|
|
17603
17453
|
var baggageEntryMetadataSymbol;
|
|
17604
17454
|
var init_symbol = __esm({
|
|
17605
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17455
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"() {
|
|
17606
17456
|
baggageEntryMetadataSymbol = /* @__PURE__ */ Symbol("BaggageEntryMetadata");
|
|
17607
17457
|
}
|
|
17608
17458
|
});
|
|
17609
17459
|
|
|
17610
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17611
|
-
function createBaggage(entries) {
|
|
17612
|
-
if (entries === void 0) {
|
|
17613
|
-
entries = {};
|
|
17614
|
-
}
|
|
17460
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/utils.js
|
|
17461
|
+
function createBaggage(entries = {}) {
|
|
17615
17462
|
return new BaggageImpl(new Map(Object.entries(entries)));
|
|
17616
17463
|
}
|
|
17617
17464
|
function baggageEntryMetadataFromString(str) {
|
|
17618
17465
|
if (typeof str !== "string") {
|
|
17619
|
-
diag.error(
|
|
17466
|
+
diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
|
|
17620
17467
|
str = "";
|
|
17621
17468
|
}
|
|
17622
17469
|
return {
|
|
17623
17470
|
__TYPE__: baggageEntryMetadataSymbol,
|
|
17624
|
-
toString
|
|
17471
|
+
toString() {
|
|
17625
17472
|
return str;
|
|
17626
|
-
}
|
|
17473
|
+
}
|
|
17627
17474
|
};
|
|
17628
17475
|
}
|
|
17629
17476
|
var diag;
|
|
17630
17477
|
var init_utils2 = __esm({
|
|
17631
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17478
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/utils.js"() {
|
|
17632
17479
|
init_diag();
|
|
17633
17480
|
init_baggage_impl();
|
|
17634
17481
|
init_symbol();
|
|
@@ -17638,44 +17485,47 @@ var init_utils2 = __esm({
|
|
|
17638
17485
|
}
|
|
17639
17486
|
});
|
|
17640
17487
|
|
|
17641
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17488
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js
|
|
17642
17489
|
function createContextKey(description) {
|
|
17643
17490
|
return Symbol.for(description);
|
|
17644
17491
|
}
|
|
17645
17492
|
var BaseContext, ROOT_CONTEXT;
|
|
17646
17493
|
var init_context = __esm({
|
|
17647
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17494
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js"() {
|
|
17648
17495
|
__name(createContextKey, "createContextKey");
|
|
17649
|
-
BaseContext =
|
|
17650
|
-
|
|
17651
|
-
|
|
17652
|
-
|
|
17496
|
+
BaseContext = class _BaseContext {
|
|
17497
|
+
static {
|
|
17498
|
+
__name(this, "BaseContext");
|
|
17499
|
+
}
|
|
17500
|
+
/**
|
|
17501
|
+
* Construct a new context which inherits values from an optional parent context.
|
|
17502
|
+
*
|
|
17503
|
+
* @param parentContext a context from which to inherit values
|
|
17504
|
+
*/
|
|
17505
|
+
constructor(parentContext) {
|
|
17506
|
+
const self2 = this;
|
|
17653
17507
|
self2._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
|
|
17654
|
-
self2.getValue =
|
|
17655
|
-
|
|
17656
|
-
|
|
17657
|
-
self2.setValue = function(key, value) {
|
|
17658
|
-
var context2 = new BaseContext2(self2._currentContext);
|
|
17508
|
+
self2.getValue = (key) => self2._currentContext.get(key);
|
|
17509
|
+
self2.setValue = (key, value) => {
|
|
17510
|
+
const context2 = new _BaseContext(self2._currentContext);
|
|
17659
17511
|
context2._currentContext.set(key, value);
|
|
17660
17512
|
return context2;
|
|
17661
17513
|
};
|
|
17662
|
-
self2.deleteValue =
|
|
17663
|
-
|
|
17514
|
+
self2.deleteValue = (key) => {
|
|
17515
|
+
const context2 = new _BaseContext(self2._currentContext);
|
|
17664
17516
|
context2._currentContext.delete(key);
|
|
17665
17517
|
return context2;
|
|
17666
17518
|
};
|
|
17667
17519
|
}
|
|
17668
|
-
|
|
17669
|
-
return BaseContext2;
|
|
17670
|
-
})();
|
|
17520
|
+
};
|
|
17671
17521
|
ROOT_CONTEXT = new BaseContext();
|
|
17672
17522
|
}
|
|
17673
17523
|
});
|
|
17674
17524
|
|
|
17675
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17676
|
-
var consoleMap, DiagConsoleLogger;
|
|
17525
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js
|
|
17526
|
+
var consoleMap, _originalConsoleMethods, DiagConsoleLogger;
|
|
17677
17527
|
var init_consoleLogger = __esm({
|
|
17678
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17528
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js"() {
|
|
17679
17529
|
consoleMap = [
|
|
17680
17530
|
{ n: "error", c: "error" },
|
|
17681
17531
|
{ n: "warn", c: "warn" },
|
|
@@ -17683,185 +17533,176 @@ var init_consoleLogger = __esm({
|
|
|
17683
17533
|
{ n: "debug", c: "debug" },
|
|
17684
17534
|
{ n: "verbose", c: "trace" }
|
|
17685
17535
|
];
|
|
17686
|
-
|
|
17687
|
-
|
|
17688
|
-
|
|
17536
|
+
_originalConsoleMethods = {};
|
|
17537
|
+
if (typeof console !== "undefined") {
|
|
17538
|
+
const keys = [
|
|
17539
|
+
"error",
|
|
17540
|
+
"warn",
|
|
17541
|
+
"info",
|
|
17542
|
+
"debug",
|
|
17543
|
+
"trace",
|
|
17544
|
+
"log"
|
|
17545
|
+
];
|
|
17546
|
+
for (const key of keys) {
|
|
17547
|
+
if (typeof console[key] === "function") {
|
|
17548
|
+
_originalConsoleMethods[key] = console[key];
|
|
17549
|
+
}
|
|
17550
|
+
}
|
|
17551
|
+
}
|
|
17552
|
+
DiagConsoleLogger = class {
|
|
17553
|
+
static {
|
|
17554
|
+
__name(this, "DiagConsoleLogger");
|
|
17555
|
+
}
|
|
17556
|
+
constructor() {
|
|
17689
17557
|
function _consoleFunc(funcName) {
|
|
17690
|
-
return function() {
|
|
17691
|
-
|
|
17692
|
-
|
|
17693
|
-
|
|
17558
|
+
return function(...args) {
|
|
17559
|
+
let theFunc = _originalConsoleMethods[funcName];
|
|
17560
|
+
if (typeof theFunc !== "function") {
|
|
17561
|
+
theFunc = _originalConsoleMethods["log"];
|
|
17694
17562
|
}
|
|
17695
|
-
if (console) {
|
|
17696
|
-
|
|
17563
|
+
if (typeof theFunc !== "function" && console) {
|
|
17564
|
+
theFunc = console[funcName];
|
|
17697
17565
|
if (typeof theFunc !== "function") {
|
|
17698
17566
|
theFunc = console.log;
|
|
17699
17567
|
}
|
|
17700
|
-
|
|
17701
|
-
|
|
17702
|
-
|
|
17568
|
+
}
|
|
17569
|
+
if (typeof theFunc === "function") {
|
|
17570
|
+
return theFunc.apply(console, args);
|
|
17703
17571
|
}
|
|
17704
17572
|
};
|
|
17705
17573
|
}
|
|
17706
17574
|
__name(_consoleFunc, "_consoleFunc");
|
|
17707
|
-
for (
|
|
17575
|
+
for (let i = 0; i < consoleMap.length; i++) {
|
|
17708
17576
|
this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
|
|
17709
17577
|
}
|
|
17710
17578
|
}
|
|
17711
|
-
|
|
17712
|
-
return DiagConsoleLogger2;
|
|
17713
|
-
})();
|
|
17579
|
+
};
|
|
17714
17580
|
}
|
|
17715
17581
|
});
|
|
17716
17582
|
|
|
17717
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17583
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js
|
|
17718
17584
|
function createNoopMeter() {
|
|
17719
17585
|
return NOOP_METER;
|
|
17720
17586
|
}
|
|
17721
|
-
var
|
|
17587
|
+
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;
|
|
17722
17588
|
var init_NoopMeter = __esm({
|
|
17723
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17724
|
-
|
|
17725
|
-
|
|
17726
|
-
|
|
17727
|
-
|
|
17728
|
-
|
|
17729
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
17730
|
-
};
|
|
17731
|
-
return extendStatics(d, b);
|
|
17732
|
-
}, "extendStatics");
|
|
17733
|
-
return function(d, b) {
|
|
17734
|
-
if (typeof b !== "function" && b !== null)
|
|
17735
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17736
|
-
extendStatics(d, b);
|
|
17737
|
-
function __() {
|
|
17738
|
-
this.constructor = d;
|
|
17739
|
-
}
|
|
17740
|
-
__name(__, "__");
|
|
17741
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17742
|
-
};
|
|
17743
|
-
})();
|
|
17744
|
-
NoopMeter = /** @class */
|
|
17745
|
-
(function() {
|
|
17746
|
-
function NoopMeter2() {
|
|
17589
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"() {
|
|
17590
|
+
NoopMeter = class {
|
|
17591
|
+
static {
|
|
17592
|
+
__name(this, "NoopMeter");
|
|
17593
|
+
}
|
|
17594
|
+
constructor() {
|
|
17747
17595
|
}
|
|
17748
|
-
|
|
17749
|
-
|
|
17596
|
+
/**
|
|
17597
|
+
* @see {@link Meter.createGauge}
|
|
17598
|
+
*/
|
|
17599
|
+
createGauge(_name, _options) {
|
|
17750
17600
|
return NOOP_GAUGE_METRIC;
|
|
17751
|
-
}
|
|
17752
|
-
|
|
17601
|
+
}
|
|
17602
|
+
/**
|
|
17603
|
+
* @see {@link Meter.createHistogram}
|
|
17604
|
+
*/
|
|
17605
|
+
createHistogram(_name, _options) {
|
|
17753
17606
|
return NOOP_HISTOGRAM_METRIC;
|
|
17754
|
-
}
|
|
17755
|
-
|
|
17607
|
+
}
|
|
17608
|
+
/**
|
|
17609
|
+
* @see {@link Meter.createCounter}
|
|
17610
|
+
*/
|
|
17611
|
+
createCounter(_name, _options) {
|
|
17756
17612
|
return NOOP_COUNTER_METRIC;
|
|
17757
|
-
}
|
|
17758
|
-
|
|
17613
|
+
}
|
|
17614
|
+
/**
|
|
17615
|
+
* @see {@link Meter.createUpDownCounter}
|
|
17616
|
+
*/
|
|
17617
|
+
createUpDownCounter(_name, _options) {
|
|
17759
17618
|
return NOOP_UP_DOWN_COUNTER_METRIC;
|
|
17760
|
-
}
|
|
17761
|
-
|
|
17619
|
+
}
|
|
17620
|
+
/**
|
|
17621
|
+
* @see {@link Meter.createObservableGauge}
|
|
17622
|
+
*/
|
|
17623
|
+
createObservableGauge(_name, _options) {
|
|
17762
17624
|
return NOOP_OBSERVABLE_GAUGE_METRIC;
|
|
17763
|
-
}
|
|
17764
|
-
|
|
17625
|
+
}
|
|
17626
|
+
/**
|
|
17627
|
+
* @see {@link Meter.createObservableCounter}
|
|
17628
|
+
*/
|
|
17629
|
+
createObservableCounter(_name, _options) {
|
|
17765
17630
|
return NOOP_OBSERVABLE_COUNTER_METRIC;
|
|
17766
|
-
}
|
|
17767
|
-
|
|
17631
|
+
}
|
|
17632
|
+
/**
|
|
17633
|
+
* @see {@link Meter.createObservableUpDownCounter}
|
|
17634
|
+
*/
|
|
17635
|
+
createObservableUpDownCounter(_name, _options) {
|
|
17768
17636
|
return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
|
17769
|
-
};
|
|
17770
|
-
NoopMeter2.prototype.addBatchObservableCallback = function(_callback, _observables) {
|
|
17771
|
-
};
|
|
17772
|
-
NoopMeter2.prototype.removeBatchObservableCallback = function(_callback) {
|
|
17773
|
-
};
|
|
17774
|
-
return NoopMeter2;
|
|
17775
|
-
})();
|
|
17776
|
-
NoopMetric = /** @class */
|
|
17777
|
-
/* @__PURE__ */ (function() {
|
|
17778
|
-
function NoopMetric2() {
|
|
17779
17637
|
}
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
|
|
17786
|
-
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
17792
|
-
|
|
17793
|
-
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
}
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
}
|
|
17814
|
-
|
|
17815
|
-
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
|
|
17835
|
-
|
|
17836
|
-
|
|
17837
|
-
}
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
|
|
17842
|
-
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
(function(_super) {
|
|
17849
|
-
__extends(NoopObservableGaugeMetric2, _super);
|
|
17850
|
-
function NoopObservableGaugeMetric2() {
|
|
17851
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17852
|
-
}
|
|
17853
|
-
__name(NoopObservableGaugeMetric2, "NoopObservableGaugeMetric");
|
|
17854
|
-
return NoopObservableGaugeMetric2;
|
|
17855
|
-
})(NoopObservableMetric);
|
|
17856
|
-
NoopObservableUpDownCounterMetric = /** @class */
|
|
17857
|
-
(function(_super) {
|
|
17858
|
-
__extends(NoopObservableUpDownCounterMetric2, _super);
|
|
17859
|
-
function NoopObservableUpDownCounterMetric2() {
|
|
17860
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17861
|
-
}
|
|
17862
|
-
__name(NoopObservableUpDownCounterMetric2, "NoopObservableUpDownCounterMetric");
|
|
17863
|
-
return NoopObservableUpDownCounterMetric2;
|
|
17864
|
-
})(NoopObservableMetric);
|
|
17638
|
+
/**
|
|
17639
|
+
* @see {@link Meter.addBatchObservableCallback}
|
|
17640
|
+
*/
|
|
17641
|
+
addBatchObservableCallback(_callback, _observables) {
|
|
17642
|
+
}
|
|
17643
|
+
/**
|
|
17644
|
+
* @see {@link Meter.removeBatchObservableCallback}
|
|
17645
|
+
*/
|
|
17646
|
+
removeBatchObservableCallback(_callback) {
|
|
17647
|
+
}
|
|
17648
|
+
};
|
|
17649
|
+
NoopMetric = class {
|
|
17650
|
+
static {
|
|
17651
|
+
__name(this, "NoopMetric");
|
|
17652
|
+
}
|
|
17653
|
+
};
|
|
17654
|
+
NoopCounterMetric = class extends NoopMetric {
|
|
17655
|
+
static {
|
|
17656
|
+
__name(this, "NoopCounterMetric");
|
|
17657
|
+
}
|
|
17658
|
+
add(_value, _attributes) {
|
|
17659
|
+
}
|
|
17660
|
+
};
|
|
17661
|
+
NoopUpDownCounterMetric = class extends NoopMetric {
|
|
17662
|
+
static {
|
|
17663
|
+
__name(this, "NoopUpDownCounterMetric");
|
|
17664
|
+
}
|
|
17665
|
+
add(_value, _attributes) {
|
|
17666
|
+
}
|
|
17667
|
+
};
|
|
17668
|
+
NoopGaugeMetric = class extends NoopMetric {
|
|
17669
|
+
static {
|
|
17670
|
+
__name(this, "NoopGaugeMetric");
|
|
17671
|
+
}
|
|
17672
|
+
record(_value, _attributes) {
|
|
17673
|
+
}
|
|
17674
|
+
};
|
|
17675
|
+
NoopHistogramMetric = class extends NoopMetric {
|
|
17676
|
+
static {
|
|
17677
|
+
__name(this, "NoopHistogramMetric");
|
|
17678
|
+
}
|
|
17679
|
+
record(_value, _attributes) {
|
|
17680
|
+
}
|
|
17681
|
+
};
|
|
17682
|
+
NoopObservableMetric = class {
|
|
17683
|
+
static {
|
|
17684
|
+
__name(this, "NoopObservableMetric");
|
|
17685
|
+
}
|
|
17686
|
+
addCallback(_callback) {
|
|
17687
|
+
}
|
|
17688
|
+
removeCallback(_callback) {
|
|
17689
|
+
}
|
|
17690
|
+
};
|
|
17691
|
+
NoopObservableCounterMetric = class extends NoopObservableMetric {
|
|
17692
|
+
static {
|
|
17693
|
+
__name(this, "NoopObservableCounterMetric");
|
|
17694
|
+
}
|
|
17695
|
+
};
|
|
17696
|
+
NoopObservableGaugeMetric = class extends NoopObservableMetric {
|
|
17697
|
+
static {
|
|
17698
|
+
__name(this, "NoopObservableGaugeMetric");
|
|
17699
|
+
}
|
|
17700
|
+
};
|
|
17701
|
+
NoopObservableUpDownCounterMetric = class extends NoopObservableMetric {
|
|
17702
|
+
static {
|
|
17703
|
+
__name(this, "NoopObservableUpDownCounterMetric");
|
|
17704
|
+
}
|
|
17705
|
+
};
|
|
17865
17706
|
NOOP_METER = new NoopMeter();
|
|
17866
17707
|
NOOP_COUNTER_METRIC = new NoopCounterMetric();
|
|
17867
17708
|
NOOP_GAUGE_METRIC = new NoopGaugeMetric();
|
|
@@ -17874,10 +17715,10 @@ var init_NoopMeter = __esm({
|
|
|
17874
17715
|
}
|
|
17875
17716
|
});
|
|
17876
17717
|
|
|
17877
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17718
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js
|
|
17878
17719
|
var ValueType;
|
|
17879
17720
|
var init_Metric = __esm({
|
|
17880
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17721
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js"() {
|
|
17881
17722
|
(function(ValueType2) {
|
|
17882
17723
|
ValueType2[ValueType2["INT"] = 0] = "INT";
|
|
17883
17724
|
ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
|
|
@@ -17885,174 +17726,136 @@ var init_Metric = __esm({
|
|
|
17885
17726
|
}
|
|
17886
17727
|
});
|
|
17887
17728
|
|
|
17888
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17729
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
|
|
17889
17730
|
var defaultTextMapGetter, defaultTextMapSetter;
|
|
17890
17731
|
var init_TextMapPropagator = __esm({
|
|
17891
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17732
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js"() {
|
|
17892
17733
|
defaultTextMapGetter = {
|
|
17893
|
-
get
|
|
17734
|
+
get(carrier, key) {
|
|
17894
17735
|
if (carrier == null) {
|
|
17895
17736
|
return void 0;
|
|
17896
17737
|
}
|
|
17897
17738
|
return carrier[key];
|
|
17898
|
-
},
|
|
17899
|
-
keys
|
|
17739
|
+
},
|
|
17740
|
+
keys(carrier) {
|
|
17900
17741
|
if (carrier == null) {
|
|
17901
17742
|
return [];
|
|
17902
17743
|
}
|
|
17903
17744
|
return Object.keys(carrier);
|
|
17904
|
-
}
|
|
17745
|
+
}
|
|
17905
17746
|
};
|
|
17906
17747
|
defaultTextMapSetter = {
|
|
17907
|
-
set
|
|
17748
|
+
set(carrier, key, value) {
|
|
17908
17749
|
if (carrier == null) {
|
|
17909
17750
|
return;
|
|
17910
17751
|
}
|
|
17911
17752
|
carrier[key] = value;
|
|
17912
|
-
}
|
|
17753
|
+
}
|
|
17913
17754
|
};
|
|
17914
17755
|
}
|
|
17915
17756
|
});
|
|
17916
17757
|
|
|
17917
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17918
|
-
var
|
|
17758
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
|
|
17759
|
+
var NoopContextManager;
|
|
17919
17760
|
var init_NoopContextManager = __esm({
|
|
17920
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17761
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"() {
|
|
17921
17762
|
init_context();
|
|
17922
|
-
|
|
17923
|
-
|
|
17924
|
-
|
|
17925
|
-
var i = m.call(o), r, ar = [], e;
|
|
17926
|
-
try {
|
|
17927
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17928
|
-
} catch (error95) {
|
|
17929
|
-
e = { error: error95 };
|
|
17930
|
-
} finally {
|
|
17931
|
-
try {
|
|
17932
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17933
|
-
} finally {
|
|
17934
|
-
if (e) throw e.error;
|
|
17935
|
-
}
|
|
17763
|
+
NoopContextManager = class {
|
|
17764
|
+
static {
|
|
17765
|
+
__name(this, "NoopContextManager");
|
|
17936
17766
|
}
|
|
17937
|
-
|
|
17938
|
-
|
|
17939
|
-
__spreadArray3 = function(to, from, pack) {
|
|
17940
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17941
|
-
if (ar || !(i in from)) {
|
|
17942
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17943
|
-
ar[i] = from[i];
|
|
17944
|
-
}
|
|
17767
|
+
active() {
|
|
17768
|
+
return ROOT_CONTEXT;
|
|
17945
17769
|
}
|
|
17946
|
-
|
|
17947
|
-
|
|
17948
|
-
NoopContextManager = /** @class */
|
|
17949
|
-
(function() {
|
|
17950
|
-
function NoopContextManager2() {
|
|
17770
|
+
with(_context, fn, thisArg, ...args) {
|
|
17771
|
+
return fn.call(thisArg, ...args);
|
|
17951
17772
|
}
|
|
17952
|
-
|
|
17953
|
-
NoopContextManager2.prototype.active = function() {
|
|
17954
|
-
return ROOT_CONTEXT;
|
|
17955
|
-
};
|
|
17956
|
-
NoopContextManager2.prototype.with = function(_context, fn, thisArg) {
|
|
17957
|
-
var args = [];
|
|
17958
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
17959
|
-
args[_i - 3] = arguments[_i];
|
|
17960
|
-
}
|
|
17961
|
-
return fn.call.apply(fn, __spreadArray3([thisArg], __read4(args), false));
|
|
17962
|
-
};
|
|
17963
|
-
NoopContextManager2.prototype.bind = function(_context, target) {
|
|
17773
|
+
bind(_context, target) {
|
|
17964
17774
|
return target;
|
|
17965
|
-
}
|
|
17966
|
-
|
|
17775
|
+
}
|
|
17776
|
+
enable() {
|
|
17967
17777
|
return this;
|
|
17968
|
-
}
|
|
17969
|
-
|
|
17778
|
+
}
|
|
17779
|
+
disable() {
|
|
17970
17780
|
return this;
|
|
17971
|
-
}
|
|
17972
|
-
|
|
17973
|
-
})();
|
|
17781
|
+
}
|
|
17782
|
+
};
|
|
17974
17783
|
}
|
|
17975
17784
|
});
|
|
17976
17785
|
|
|
17977
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17978
|
-
var
|
|
17786
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/context.js
|
|
17787
|
+
var API_NAME2, NOOP_CONTEXT_MANAGER, ContextAPI;
|
|
17979
17788
|
var init_context2 = __esm({
|
|
17980
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17789
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/context.js"() {
|
|
17981
17790
|
init_NoopContextManager();
|
|
17982
17791
|
init_global_utils();
|
|
17983
17792
|
init_diag();
|
|
17984
|
-
__read5 = function(o, n) {
|
|
17985
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
17986
|
-
if (!m) return o;
|
|
17987
|
-
var i = m.call(o), r, ar = [], e;
|
|
17988
|
-
try {
|
|
17989
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
17990
|
-
} catch (error95) {
|
|
17991
|
-
e = { error: error95 };
|
|
17992
|
-
} finally {
|
|
17993
|
-
try {
|
|
17994
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
17995
|
-
} finally {
|
|
17996
|
-
if (e) throw e.error;
|
|
17997
|
-
}
|
|
17998
|
-
}
|
|
17999
|
-
return ar;
|
|
18000
|
-
};
|
|
18001
|
-
__spreadArray4 = function(to, from, pack) {
|
|
18002
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
18003
|
-
if (ar || !(i in from)) {
|
|
18004
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
18005
|
-
ar[i] = from[i];
|
|
18006
|
-
}
|
|
18007
|
-
}
|
|
18008
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
18009
|
-
};
|
|
18010
17793
|
API_NAME2 = "context";
|
|
18011
17794
|
NOOP_CONTEXT_MANAGER = new NoopContextManager();
|
|
18012
|
-
ContextAPI =
|
|
18013
|
-
|
|
18014
|
-
|
|
17795
|
+
ContextAPI = class _ContextAPI {
|
|
17796
|
+
static {
|
|
17797
|
+
__name(this, "ContextAPI");
|
|
17798
|
+
}
|
|
17799
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
17800
|
+
constructor() {
|
|
18015
17801
|
}
|
|
18016
|
-
|
|
18017
|
-
|
|
17802
|
+
/** Get the singleton instance of the Context API */
|
|
17803
|
+
static getInstance() {
|
|
18018
17804
|
if (!this._instance) {
|
|
18019
|
-
this._instance = new
|
|
17805
|
+
this._instance = new _ContextAPI();
|
|
18020
17806
|
}
|
|
18021
17807
|
return this._instance;
|
|
18022
|
-
}
|
|
18023
|
-
|
|
17808
|
+
}
|
|
17809
|
+
/**
|
|
17810
|
+
* Set the current context manager.
|
|
17811
|
+
*
|
|
17812
|
+
* @returns true if the context manager was successfully registered, else false
|
|
17813
|
+
*/
|
|
17814
|
+
setGlobalContextManager(contextManager) {
|
|
18024
17815
|
return registerGlobal(API_NAME2, contextManager, DiagAPI.instance());
|
|
18025
|
-
}
|
|
18026
|
-
|
|
17816
|
+
}
|
|
17817
|
+
/**
|
|
17818
|
+
* Get the currently active context
|
|
17819
|
+
*/
|
|
17820
|
+
active() {
|
|
18027
17821
|
return this._getContextManager().active();
|
|
18028
|
-
}
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
|
|
18036
|
-
|
|
18037
|
-
|
|
17822
|
+
}
|
|
17823
|
+
/**
|
|
17824
|
+
* Execute a function with an active context
|
|
17825
|
+
*
|
|
17826
|
+
* @param context context to be active during function execution
|
|
17827
|
+
* @param fn function to execute in a context
|
|
17828
|
+
* @param thisArg optional receiver to be used for calling fn
|
|
17829
|
+
* @param args optional arguments forwarded to fn
|
|
17830
|
+
*/
|
|
17831
|
+
with(context2, fn, thisArg, ...args) {
|
|
17832
|
+
return this._getContextManager().with(context2, fn, thisArg, ...args);
|
|
17833
|
+
}
|
|
17834
|
+
/**
|
|
17835
|
+
* Bind a context to a target function or event emitter
|
|
17836
|
+
*
|
|
17837
|
+
* @param context context to bind to the event emitter or function. Defaults to the currently active context
|
|
17838
|
+
* @param target function or event emitter to bind
|
|
17839
|
+
*/
|
|
17840
|
+
bind(context2, target) {
|
|
18038
17841
|
return this._getContextManager().bind(context2, target);
|
|
18039
|
-
}
|
|
18040
|
-
|
|
17842
|
+
}
|
|
17843
|
+
_getContextManager() {
|
|
18041
17844
|
return getGlobal(API_NAME2) || NOOP_CONTEXT_MANAGER;
|
|
18042
|
-
}
|
|
18043
|
-
|
|
17845
|
+
}
|
|
17846
|
+
/** Disable and remove the global context manager */
|
|
17847
|
+
disable() {
|
|
18044
17848
|
this._getContextManager().disable();
|
|
18045
17849
|
unregisterGlobal(API_NAME2, DiagAPI.instance());
|
|
18046
|
-
}
|
|
18047
|
-
|
|
18048
|
-
})();
|
|
17850
|
+
}
|
|
17851
|
+
};
|
|
18049
17852
|
}
|
|
18050
17853
|
});
|
|
18051
17854
|
|
|
18052
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17855
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
|
|
18053
17856
|
var TraceFlags;
|
|
18054
17857
|
var init_trace_flags = __esm({
|
|
18055
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17858
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"() {
|
|
18056
17859
|
(function(TraceFlags2) {
|
|
18057
17860
|
TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
|
|
18058
17861
|
TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
|
|
@@ -18060,10 +17863,10 @@ var init_trace_flags = __esm({
|
|
|
18060
17863
|
}
|
|
18061
17864
|
});
|
|
18062
17865
|
|
|
18063
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17866
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
|
|
18064
17867
|
var INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT;
|
|
18065
17868
|
var init_invalid_span_constants = __esm({
|
|
18066
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17869
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"() {
|
|
18067
17870
|
init_trace_flags();
|
|
18068
17871
|
INVALID_SPANID = "0000000000000000";
|
|
18069
17872
|
INVALID_TRACEID = "00000000000000000000000000000000";
|
|
@@ -18075,57 +17878,63 @@ var init_invalid_span_constants = __esm({
|
|
|
18075
17878
|
}
|
|
18076
17879
|
});
|
|
18077
17880
|
|
|
18078
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17881
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
|
|
18079
17882
|
var NonRecordingSpan;
|
|
18080
17883
|
var init_NonRecordingSpan = __esm({
|
|
18081
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17884
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"() {
|
|
18082
17885
|
init_invalid_span_constants();
|
|
18083
|
-
NonRecordingSpan =
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18089
|
-
this._spanContext = _spanContext;
|
|
17886
|
+
NonRecordingSpan = class {
|
|
17887
|
+
static {
|
|
17888
|
+
__name(this, "NonRecordingSpan");
|
|
17889
|
+
}
|
|
17890
|
+
constructor(spanContext = INVALID_SPAN_CONTEXT) {
|
|
17891
|
+
this._spanContext = spanContext;
|
|
18090
17892
|
}
|
|
18091
|
-
|
|
18092
|
-
|
|
17893
|
+
// Returns a SpanContext.
|
|
17894
|
+
spanContext() {
|
|
18093
17895
|
return this._spanContext;
|
|
18094
|
-
}
|
|
18095
|
-
|
|
17896
|
+
}
|
|
17897
|
+
// By default does nothing
|
|
17898
|
+
setAttribute(_key, _value) {
|
|
18096
17899
|
return this;
|
|
18097
|
-
}
|
|
18098
|
-
|
|
17900
|
+
}
|
|
17901
|
+
// By default does nothing
|
|
17902
|
+
setAttributes(_attributes) {
|
|
18099
17903
|
return this;
|
|
18100
|
-
}
|
|
18101
|
-
|
|
17904
|
+
}
|
|
17905
|
+
// By default does nothing
|
|
17906
|
+
addEvent(_name, _attributes) {
|
|
18102
17907
|
return this;
|
|
18103
|
-
}
|
|
18104
|
-
|
|
17908
|
+
}
|
|
17909
|
+
addLink(_link) {
|
|
18105
17910
|
return this;
|
|
18106
|
-
}
|
|
18107
|
-
|
|
17911
|
+
}
|
|
17912
|
+
addLinks(_links) {
|
|
18108
17913
|
return this;
|
|
18109
|
-
}
|
|
18110
|
-
|
|
17914
|
+
}
|
|
17915
|
+
// By default does nothing
|
|
17916
|
+
setStatus(_status) {
|
|
18111
17917
|
return this;
|
|
18112
|
-
}
|
|
18113
|
-
|
|
17918
|
+
}
|
|
17919
|
+
// By default does nothing
|
|
17920
|
+
updateName(_name) {
|
|
18114
17921
|
return this;
|
|
18115
|
-
}
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
17922
|
+
}
|
|
17923
|
+
// By default does nothing
|
|
17924
|
+
end(_endTime) {
|
|
17925
|
+
}
|
|
17926
|
+
// isRecording always returns false for NonRecordingSpan.
|
|
17927
|
+
isRecording() {
|
|
18119
17928
|
return false;
|
|
18120
|
-
}
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
}
|
|
17929
|
+
}
|
|
17930
|
+
// By default does nothing
|
|
17931
|
+
recordException(_exception, _time) {
|
|
17932
|
+
}
|
|
17933
|
+
};
|
|
18125
17934
|
}
|
|
18126
17935
|
});
|
|
18127
17936
|
|
|
18128
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17937
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
|
|
18129
17938
|
function getSpan(context2) {
|
|
18130
17939
|
return context2.getValue(SPAN_KEY) || void 0;
|
|
18131
17940
|
}
|
|
@@ -18147,7 +17956,7 @@ function getSpanContext(context2) {
|
|
|
18147
17956
|
}
|
|
18148
17957
|
var SPAN_KEY;
|
|
18149
17958
|
var init_context_utils = __esm({
|
|
18150
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17959
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"() {
|
|
18151
17960
|
init_context();
|
|
18152
17961
|
init_NonRecordingSpan();
|
|
18153
17962
|
init_context2();
|
|
@@ -18161,12 +17970,21 @@ var init_context_utils = __esm({
|
|
|
18161
17970
|
}
|
|
18162
17971
|
});
|
|
18163
17972
|
|
|
18164
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17973
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
|
|
17974
|
+
function isValidHex(id, length) {
|
|
17975
|
+
if (typeof id !== "string" || id.length !== length)
|
|
17976
|
+
return false;
|
|
17977
|
+
let r = 0;
|
|
17978
|
+
for (let i = 0; i < id.length; i += 4) {
|
|
17979
|
+
r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
|
|
17980
|
+
}
|
|
17981
|
+
return r === length;
|
|
17982
|
+
}
|
|
18165
17983
|
function isValidTraceId(traceId) {
|
|
18166
|
-
return
|
|
17984
|
+
return isValidHex(traceId, 32) && traceId !== INVALID_TRACEID;
|
|
18167
17985
|
}
|
|
18168
17986
|
function isValidSpanId(spanId) {
|
|
18169
|
-
return
|
|
17987
|
+
return isValidHex(spanId, 16) && spanId !== INVALID_SPANID;
|
|
18170
17988
|
}
|
|
18171
17989
|
function isSpanContextValid(spanContext) {
|
|
18172
17990
|
return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
|
|
@@ -18174,13 +17992,117 @@ function isSpanContextValid(spanContext) {
|
|
|
18174
17992
|
function wrapSpanContext(spanContext) {
|
|
18175
17993
|
return new NonRecordingSpan(spanContext);
|
|
18176
17994
|
}
|
|
18177
|
-
var
|
|
17995
|
+
var isHex;
|
|
18178
17996
|
var init_spancontext_utils = __esm({
|
|
18179
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
17997
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"() {
|
|
18180
17998
|
init_invalid_span_constants();
|
|
18181
17999
|
init_NonRecordingSpan();
|
|
18182
|
-
|
|
18183
|
-
|
|
18000
|
+
isHex = new Uint8Array([
|
|
18001
|
+
0,
|
|
18002
|
+
0,
|
|
18003
|
+
0,
|
|
18004
|
+
0,
|
|
18005
|
+
0,
|
|
18006
|
+
0,
|
|
18007
|
+
0,
|
|
18008
|
+
0,
|
|
18009
|
+
0,
|
|
18010
|
+
0,
|
|
18011
|
+
0,
|
|
18012
|
+
0,
|
|
18013
|
+
0,
|
|
18014
|
+
0,
|
|
18015
|
+
0,
|
|
18016
|
+
0,
|
|
18017
|
+
0,
|
|
18018
|
+
0,
|
|
18019
|
+
0,
|
|
18020
|
+
0,
|
|
18021
|
+
0,
|
|
18022
|
+
0,
|
|
18023
|
+
0,
|
|
18024
|
+
0,
|
|
18025
|
+
0,
|
|
18026
|
+
0,
|
|
18027
|
+
0,
|
|
18028
|
+
0,
|
|
18029
|
+
0,
|
|
18030
|
+
0,
|
|
18031
|
+
0,
|
|
18032
|
+
0,
|
|
18033
|
+
0,
|
|
18034
|
+
0,
|
|
18035
|
+
0,
|
|
18036
|
+
0,
|
|
18037
|
+
0,
|
|
18038
|
+
0,
|
|
18039
|
+
0,
|
|
18040
|
+
0,
|
|
18041
|
+
0,
|
|
18042
|
+
0,
|
|
18043
|
+
0,
|
|
18044
|
+
0,
|
|
18045
|
+
0,
|
|
18046
|
+
0,
|
|
18047
|
+
0,
|
|
18048
|
+
0,
|
|
18049
|
+
1,
|
|
18050
|
+
1,
|
|
18051
|
+
1,
|
|
18052
|
+
1,
|
|
18053
|
+
1,
|
|
18054
|
+
1,
|
|
18055
|
+
1,
|
|
18056
|
+
1,
|
|
18057
|
+
1,
|
|
18058
|
+
1,
|
|
18059
|
+
0,
|
|
18060
|
+
0,
|
|
18061
|
+
0,
|
|
18062
|
+
0,
|
|
18063
|
+
0,
|
|
18064
|
+
0,
|
|
18065
|
+
0,
|
|
18066
|
+
1,
|
|
18067
|
+
1,
|
|
18068
|
+
1,
|
|
18069
|
+
1,
|
|
18070
|
+
1,
|
|
18071
|
+
1,
|
|
18072
|
+
0,
|
|
18073
|
+
0,
|
|
18074
|
+
0,
|
|
18075
|
+
0,
|
|
18076
|
+
0,
|
|
18077
|
+
0,
|
|
18078
|
+
0,
|
|
18079
|
+
0,
|
|
18080
|
+
0,
|
|
18081
|
+
0,
|
|
18082
|
+
0,
|
|
18083
|
+
0,
|
|
18084
|
+
0,
|
|
18085
|
+
0,
|
|
18086
|
+
0,
|
|
18087
|
+
0,
|
|
18088
|
+
0,
|
|
18089
|
+
0,
|
|
18090
|
+
0,
|
|
18091
|
+
0,
|
|
18092
|
+
0,
|
|
18093
|
+
0,
|
|
18094
|
+
0,
|
|
18095
|
+
0,
|
|
18096
|
+
0,
|
|
18097
|
+
0,
|
|
18098
|
+
1,
|
|
18099
|
+
1,
|
|
18100
|
+
1,
|
|
18101
|
+
1,
|
|
18102
|
+
1,
|
|
18103
|
+
1
|
|
18104
|
+
]);
|
|
18105
|
+
__name(isValidHex, "isValidHex");
|
|
18184
18106
|
__name(isValidTraceId, "isValidTraceId");
|
|
18185
18107
|
__name(isValidSpanId, "isValidSpanId");
|
|
18186
18108
|
__name(isSpanContextValid, "isSpanContextValid");
|
|
@@ -18188,42 +18110,39 @@ var init_spancontext_utils = __esm({
|
|
|
18188
18110
|
}
|
|
18189
18111
|
});
|
|
18190
18112
|
|
|
18191
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18113
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
|
|
18192
18114
|
function isSpanContext(spanContext) {
|
|
18193
|
-
return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number";
|
|
18115
|
+
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";
|
|
18194
18116
|
}
|
|
18195
18117
|
var contextApi, NoopTracer;
|
|
18196
18118
|
var init_NoopTracer = __esm({
|
|
18197
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18119
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"() {
|
|
18198
18120
|
init_context2();
|
|
18199
18121
|
init_context_utils();
|
|
18200
18122
|
init_NonRecordingSpan();
|
|
18201
18123
|
init_spancontext_utils();
|
|
18202
18124
|
contextApi = ContextAPI.getInstance();
|
|
18203
|
-
NoopTracer =
|
|
18204
|
-
|
|
18205
|
-
|
|
18125
|
+
NoopTracer = class {
|
|
18126
|
+
static {
|
|
18127
|
+
__name(this, "NoopTracer");
|
|
18206
18128
|
}
|
|
18207
|
-
|
|
18208
|
-
|
|
18209
|
-
|
|
18210
|
-
context2 = contextApi.active();
|
|
18211
|
-
}
|
|
18212
|
-
var root = Boolean(options === null || options === void 0 ? void 0 : options.root);
|
|
18129
|
+
// startSpan starts a noop span.
|
|
18130
|
+
startSpan(name, options, context2 = contextApi.active()) {
|
|
18131
|
+
const root = Boolean(options === null || options === void 0 ? void 0 : options.root);
|
|
18213
18132
|
if (root) {
|
|
18214
18133
|
return new NonRecordingSpan();
|
|
18215
18134
|
}
|
|
18216
|
-
|
|
18135
|
+
const parentFromContext = context2 && getSpanContext(context2);
|
|
18217
18136
|
if (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) {
|
|
18218
18137
|
return new NonRecordingSpan(parentFromContext);
|
|
18219
18138
|
} else {
|
|
18220
18139
|
return new NonRecordingSpan();
|
|
18221
18140
|
}
|
|
18222
|
-
}
|
|
18223
|
-
|
|
18224
|
-
|
|
18225
|
-
|
|
18226
|
-
|
|
18141
|
+
}
|
|
18142
|
+
startActiveSpan(name, arg2, arg3, arg4) {
|
|
18143
|
+
let opts;
|
|
18144
|
+
let ctx;
|
|
18145
|
+
let fn;
|
|
18227
18146
|
if (arguments.length < 2) {
|
|
18228
18147
|
return;
|
|
18229
18148
|
} else if (arguments.length === 2) {
|
|
@@ -18236,109 +18155,114 @@ var init_NoopTracer = __esm({
|
|
|
18236
18155
|
ctx = arg3;
|
|
18237
18156
|
fn = arg4;
|
|
18238
18157
|
}
|
|
18239
|
-
|
|
18240
|
-
|
|
18241
|
-
|
|
18158
|
+
const parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();
|
|
18159
|
+
const span = this.startSpan(name, opts, parentContext);
|
|
18160
|
+
const contextWithSpanSet = setSpan(parentContext, span);
|
|
18242
18161
|
return contextApi.with(contextWithSpanSet, fn, void 0, span);
|
|
18243
|
-
}
|
|
18244
|
-
|
|
18245
|
-
})();
|
|
18162
|
+
}
|
|
18163
|
+
};
|
|
18246
18164
|
__name(isSpanContext, "isSpanContext");
|
|
18247
18165
|
}
|
|
18248
18166
|
});
|
|
18249
18167
|
|
|
18250
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18168
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
|
|
18251
18169
|
var NOOP_TRACER, ProxyTracer;
|
|
18252
18170
|
var init_ProxyTracer = __esm({
|
|
18253
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18171
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"() {
|
|
18254
18172
|
init_NoopTracer();
|
|
18255
18173
|
NOOP_TRACER = new NoopTracer();
|
|
18256
|
-
ProxyTracer =
|
|
18257
|
-
|
|
18258
|
-
|
|
18259
|
-
|
|
18174
|
+
ProxyTracer = class {
|
|
18175
|
+
static {
|
|
18176
|
+
__name(this, "ProxyTracer");
|
|
18177
|
+
}
|
|
18178
|
+
constructor(provider, name, version5, options) {
|
|
18179
|
+
this._provider = provider;
|
|
18260
18180
|
this.name = name;
|
|
18261
18181
|
this.version = version5;
|
|
18262
18182
|
this.options = options;
|
|
18263
18183
|
}
|
|
18264
|
-
|
|
18265
|
-
ProxyTracer2.prototype.startSpan = function(name, options, context2) {
|
|
18184
|
+
startSpan(name, options, context2) {
|
|
18266
18185
|
return this._getTracer().startSpan(name, options, context2);
|
|
18267
|
-
}
|
|
18268
|
-
|
|
18269
|
-
|
|
18186
|
+
}
|
|
18187
|
+
startActiveSpan(_name, _options, _context, _fn) {
|
|
18188
|
+
const tracer = this._getTracer();
|
|
18270
18189
|
return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
|
|
18271
|
-
}
|
|
18272
|
-
|
|
18190
|
+
}
|
|
18191
|
+
/**
|
|
18192
|
+
* Try to get a tracer from the proxy tracer provider.
|
|
18193
|
+
* If the proxy tracer provider has no delegate, return a noop tracer.
|
|
18194
|
+
*/
|
|
18195
|
+
_getTracer() {
|
|
18273
18196
|
if (this._delegate) {
|
|
18274
18197
|
return this._delegate;
|
|
18275
18198
|
}
|
|
18276
|
-
|
|
18199
|
+
const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
18277
18200
|
if (!tracer) {
|
|
18278
18201
|
return NOOP_TRACER;
|
|
18279
18202
|
}
|
|
18280
18203
|
this._delegate = tracer;
|
|
18281
18204
|
return this._delegate;
|
|
18282
|
-
}
|
|
18283
|
-
|
|
18284
|
-
})();
|
|
18205
|
+
}
|
|
18206
|
+
};
|
|
18285
18207
|
}
|
|
18286
18208
|
});
|
|
18287
18209
|
|
|
18288
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18210
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
|
|
18289
18211
|
var NoopTracerProvider;
|
|
18290
18212
|
var init_NoopTracerProvider = __esm({
|
|
18291
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18213
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js"() {
|
|
18292
18214
|
init_NoopTracer();
|
|
18293
|
-
NoopTracerProvider =
|
|
18294
|
-
|
|
18295
|
-
|
|
18215
|
+
NoopTracerProvider = class {
|
|
18216
|
+
static {
|
|
18217
|
+
__name(this, "NoopTracerProvider");
|
|
18296
18218
|
}
|
|
18297
|
-
|
|
18298
|
-
NoopTracerProvider2.prototype.getTracer = function(_name, _version, _options) {
|
|
18219
|
+
getTracer(_name, _version, _options) {
|
|
18299
18220
|
return new NoopTracer();
|
|
18300
|
-
}
|
|
18301
|
-
|
|
18302
|
-
})();
|
|
18221
|
+
}
|
|
18222
|
+
};
|
|
18303
18223
|
}
|
|
18304
18224
|
});
|
|
18305
18225
|
|
|
18306
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18226
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
|
|
18307
18227
|
var NOOP_TRACER_PROVIDER, ProxyTracerProvider;
|
|
18308
18228
|
var init_ProxyTracerProvider = __esm({
|
|
18309
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18229
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"() {
|
|
18310
18230
|
init_ProxyTracer();
|
|
18311
18231
|
init_NoopTracerProvider();
|
|
18312
18232
|
NOOP_TRACER_PROVIDER = new NoopTracerProvider();
|
|
18313
|
-
ProxyTracerProvider =
|
|
18314
|
-
|
|
18315
|
-
|
|
18233
|
+
ProxyTracerProvider = class {
|
|
18234
|
+
static {
|
|
18235
|
+
__name(this, "ProxyTracerProvider");
|
|
18316
18236
|
}
|
|
18317
|
-
|
|
18318
|
-
|
|
18237
|
+
/**
|
|
18238
|
+
* Get a {@link ProxyTracer}
|
|
18239
|
+
*/
|
|
18240
|
+
getTracer(name, version5, options) {
|
|
18319
18241
|
var _a3;
|
|
18320
18242
|
return (_a3 = this.getDelegateTracer(name, version5, options)) !== null && _a3 !== void 0 ? _a3 : new ProxyTracer(this, name, version5, options);
|
|
18321
|
-
}
|
|
18322
|
-
|
|
18243
|
+
}
|
|
18244
|
+
getDelegate() {
|
|
18323
18245
|
var _a3;
|
|
18324
18246
|
return (_a3 = this._delegate) !== null && _a3 !== void 0 ? _a3 : NOOP_TRACER_PROVIDER;
|
|
18325
|
-
}
|
|
18326
|
-
|
|
18247
|
+
}
|
|
18248
|
+
/**
|
|
18249
|
+
* Set the delegate tracer provider
|
|
18250
|
+
*/
|
|
18251
|
+
setDelegate(delegate) {
|
|
18327
18252
|
this._delegate = delegate;
|
|
18328
|
-
}
|
|
18329
|
-
|
|
18253
|
+
}
|
|
18254
|
+
getDelegateTracer(name, version5, options) {
|
|
18330
18255
|
var _a3;
|
|
18331
18256
|
return (_a3 = this._delegate) === null || _a3 === void 0 ? void 0 : _a3.getTracer(name, version5, options);
|
|
18332
|
-
}
|
|
18333
|
-
|
|
18334
|
-
})();
|
|
18257
|
+
}
|
|
18258
|
+
};
|
|
18335
18259
|
}
|
|
18336
18260
|
});
|
|
18337
18261
|
|
|
18338
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18262
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js
|
|
18339
18263
|
var SamplingDecision;
|
|
18340
18264
|
var init_SamplingResult = __esm({
|
|
18341
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18265
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js"() {
|
|
18342
18266
|
(function(SamplingDecision2) {
|
|
18343
18267
|
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
18344
18268
|
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
|
@@ -18347,10 +18271,10 @@ var init_SamplingResult = __esm({
|
|
|
18347
18271
|
}
|
|
18348
18272
|
});
|
|
18349
18273
|
|
|
18350
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18274
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
|
|
18351
18275
|
var SpanKind;
|
|
18352
18276
|
var init_span_kind = __esm({
|
|
18353
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18277
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"() {
|
|
18354
18278
|
(function(SpanKind2) {
|
|
18355
18279
|
SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
|
|
18356
18280
|
SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
|
|
@@ -18361,10 +18285,10 @@ var init_span_kind = __esm({
|
|
|
18361
18285
|
}
|
|
18362
18286
|
});
|
|
18363
18287
|
|
|
18364
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18288
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/status.js
|
|
18365
18289
|
var SpanStatusCode;
|
|
18366
18290
|
var init_status = __esm({
|
|
18367
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18291
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/status.js"() {
|
|
18368
18292
|
(function(SpanStatusCode2) {
|
|
18369
18293
|
SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
|
|
18370
18294
|
SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
|
|
@@ -18373,7 +18297,7 @@ var init_status = __esm({
|
|
|
18373
18297
|
}
|
|
18374
18298
|
});
|
|
18375
18299
|
|
|
18376
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18300
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js
|
|
18377
18301
|
function validateKey(key) {
|
|
18378
18302
|
return VALID_KEY_REGEX.test(key);
|
|
18379
18303
|
}
|
|
@@ -18382,11 +18306,11 @@ function validateValue(value) {
|
|
|
18382
18306
|
}
|
|
18383
18307
|
var VALID_KEY_CHAR_RANGE, VALID_KEY, VALID_VENDOR_KEY, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
|
|
18384
18308
|
var init_tracestate_validators = __esm({
|
|
18385
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18309
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js"() {
|
|
18386
18310
|
VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
18387
|
-
VALID_KEY =
|
|
18388
|
-
VALID_VENDOR_KEY =
|
|
18389
|
-
VALID_KEY_REGEX = new RegExp(
|
|
18311
|
+
VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
|
18312
|
+
VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
|
18313
|
+
VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
|
18390
18314
|
VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
18391
18315
|
INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
18392
18316
|
__name(validateKey, "validateKey");
|
|
@@ -18394,55 +18318,55 @@ var init_tracestate_validators = __esm({
|
|
|
18394
18318
|
}
|
|
18395
18319
|
});
|
|
18396
18320
|
|
|
18397
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18321
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js
|
|
18398
18322
|
var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceStateImpl;
|
|
18399
18323
|
var init_tracestate_impl = __esm({
|
|
18400
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18324
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js"() {
|
|
18401
18325
|
init_tracestate_validators();
|
|
18402
18326
|
MAX_TRACE_STATE_ITEMS = 32;
|
|
18403
18327
|
MAX_TRACE_STATE_LEN = 512;
|
|
18404
18328
|
LIST_MEMBERS_SEPARATOR = ",";
|
|
18405
18329
|
LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
|
18406
|
-
TraceStateImpl =
|
|
18407
|
-
|
|
18408
|
-
|
|
18330
|
+
TraceStateImpl = class _TraceStateImpl {
|
|
18331
|
+
static {
|
|
18332
|
+
__name(this, "TraceStateImpl");
|
|
18333
|
+
}
|
|
18334
|
+
constructor(rawTraceState) {
|
|
18409
18335
|
this._internalState = /* @__PURE__ */ new Map();
|
|
18410
18336
|
if (rawTraceState)
|
|
18411
18337
|
this._parse(rawTraceState);
|
|
18412
18338
|
}
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
var traceState = this._clone();
|
|
18339
|
+
set(key, value) {
|
|
18340
|
+
const traceState = this._clone();
|
|
18416
18341
|
if (traceState._internalState.has(key)) {
|
|
18417
18342
|
traceState._internalState.delete(key);
|
|
18418
18343
|
}
|
|
18419
18344
|
traceState._internalState.set(key, value);
|
|
18420
18345
|
return traceState;
|
|
18421
|
-
}
|
|
18422
|
-
|
|
18423
|
-
|
|
18346
|
+
}
|
|
18347
|
+
unset(key) {
|
|
18348
|
+
const traceState = this._clone();
|
|
18424
18349
|
traceState._internalState.delete(key);
|
|
18425
18350
|
return traceState;
|
|
18426
|
-
}
|
|
18427
|
-
|
|
18351
|
+
}
|
|
18352
|
+
get(key) {
|
|
18428
18353
|
return this._internalState.get(key);
|
|
18429
|
-
}
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
|
|
18354
|
+
}
|
|
18355
|
+
serialize() {
|
|
18356
|
+
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
18357
|
+
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
18434
18358
|
return agg;
|
|
18435
18359
|
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
18436
|
-
}
|
|
18437
|
-
|
|
18360
|
+
}
|
|
18361
|
+
_parse(rawTraceState) {
|
|
18438
18362
|
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
18439
18363
|
return;
|
|
18440
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).
|
|
18441
|
-
|
|
18442
|
-
|
|
18364
|
+
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
|
|
18365
|
+
const listMember = part.trim();
|
|
18366
|
+
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
18443
18367
|
if (i !== -1) {
|
|
18444
|
-
|
|
18445
|
-
|
|
18368
|
+
const key = listMember.slice(0, i);
|
|
18369
|
+
const value = listMember.slice(i + 1, part.length);
|
|
18446
18370
|
if (validateKey(key) && validateValue(value)) {
|
|
18447
18371
|
agg.set(key, value);
|
|
18448
18372
|
} else {
|
|
@@ -18453,136 +18377,147 @@ var init_tracestate_impl = __esm({
|
|
|
18453
18377
|
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
18454
18378
|
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
18455
18379
|
}
|
|
18456
|
-
}
|
|
18457
|
-
|
|
18380
|
+
}
|
|
18381
|
+
// @ts-expect-error TS6133 Accessed in tests only.
|
|
18382
|
+
_keys() {
|
|
18458
18383
|
return Array.from(this._internalState.keys()).reverse();
|
|
18459
|
-
}
|
|
18460
|
-
|
|
18461
|
-
|
|
18384
|
+
}
|
|
18385
|
+
_clone() {
|
|
18386
|
+
const traceState = new _TraceStateImpl();
|
|
18462
18387
|
traceState._internalState = new Map(this._internalState);
|
|
18463
18388
|
return traceState;
|
|
18464
|
-
}
|
|
18465
|
-
|
|
18466
|
-
})();
|
|
18389
|
+
}
|
|
18390
|
+
};
|
|
18467
18391
|
}
|
|
18468
18392
|
});
|
|
18469
18393
|
|
|
18470
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18394
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js
|
|
18471
18395
|
function createTraceState(rawTraceState) {
|
|
18472
18396
|
return new TraceStateImpl(rawTraceState);
|
|
18473
18397
|
}
|
|
18474
18398
|
var init_utils3 = __esm({
|
|
18475
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18399
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js"() {
|
|
18476
18400
|
init_tracestate_impl();
|
|
18477
18401
|
__name(createTraceState, "createTraceState");
|
|
18478
18402
|
}
|
|
18479
18403
|
});
|
|
18480
18404
|
|
|
18481
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18405
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context-api.js
|
|
18482
18406
|
var context;
|
|
18483
18407
|
var init_context_api = __esm({
|
|
18484
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18408
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context-api.js"() {
|
|
18485
18409
|
init_context2();
|
|
18486
18410
|
context = ContextAPI.getInstance();
|
|
18487
18411
|
}
|
|
18488
18412
|
});
|
|
18489
18413
|
|
|
18490
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18414
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag-api.js
|
|
18491
18415
|
var diag2;
|
|
18492
18416
|
var init_diag_api = __esm({
|
|
18493
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18417
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag-api.js"() {
|
|
18494
18418
|
init_diag();
|
|
18495
18419
|
diag2 = DiagAPI.instance();
|
|
18496
18420
|
}
|
|
18497
18421
|
});
|
|
18498
18422
|
|
|
18499
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18423
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js
|
|
18500
18424
|
var NoopMeterProvider, NOOP_METER_PROVIDER;
|
|
18501
18425
|
var init_NoopMeterProvider = __esm({
|
|
18502
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18426
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"() {
|
|
18503
18427
|
init_NoopMeter();
|
|
18504
|
-
NoopMeterProvider =
|
|
18505
|
-
|
|
18506
|
-
|
|
18428
|
+
NoopMeterProvider = class {
|
|
18429
|
+
static {
|
|
18430
|
+
__name(this, "NoopMeterProvider");
|
|
18507
18431
|
}
|
|
18508
|
-
|
|
18509
|
-
NoopMeterProvider2.prototype.getMeter = function(_name, _version, _options) {
|
|
18432
|
+
getMeter(_name, _version, _options) {
|
|
18510
18433
|
return NOOP_METER;
|
|
18511
|
-
}
|
|
18512
|
-
|
|
18513
|
-
})();
|
|
18434
|
+
}
|
|
18435
|
+
};
|
|
18514
18436
|
NOOP_METER_PROVIDER = new NoopMeterProvider();
|
|
18515
18437
|
}
|
|
18516
18438
|
});
|
|
18517
18439
|
|
|
18518
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18440
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/metrics.js
|
|
18519
18441
|
var API_NAME3, MetricsAPI;
|
|
18520
18442
|
var init_metrics = __esm({
|
|
18521
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18443
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/metrics.js"() {
|
|
18522
18444
|
init_NoopMeterProvider();
|
|
18523
18445
|
init_global_utils();
|
|
18524
18446
|
init_diag();
|
|
18525
18447
|
API_NAME3 = "metrics";
|
|
18526
|
-
MetricsAPI =
|
|
18527
|
-
|
|
18528
|
-
|
|
18448
|
+
MetricsAPI = class _MetricsAPI {
|
|
18449
|
+
static {
|
|
18450
|
+
__name(this, "MetricsAPI");
|
|
18529
18451
|
}
|
|
18530
|
-
|
|
18531
|
-
|
|
18452
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
18453
|
+
constructor() {
|
|
18454
|
+
}
|
|
18455
|
+
/** Get the singleton instance of the Metrics API */
|
|
18456
|
+
static getInstance() {
|
|
18532
18457
|
if (!this._instance) {
|
|
18533
|
-
this._instance = new
|
|
18458
|
+
this._instance = new _MetricsAPI();
|
|
18534
18459
|
}
|
|
18535
18460
|
return this._instance;
|
|
18536
|
-
}
|
|
18537
|
-
|
|
18461
|
+
}
|
|
18462
|
+
/**
|
|
18463
|
+
* Set the current global meter provider.
|
|
18464
|
+
* Returns true if the meter provider was successfully registered, else false.
|
|
18465
|
+
*/
|
|
18466
|
+
setGlobalMeterProvider(provider) {
|
|
18538
18467
|
return registerGlobal(API_NAME3, provider, DiagAPI.instance());
|
|
18539
|
-
}
|
|
18540
|
-
|
|
18468
|
+
}
|
|
18469
|
+
/**
|
|
18470
|
+
* Returns the global meter provider.
|
|
18471
|
+
*/
|
|
18472
|
+
getMeterProvider() {
|
|
18541
18473
|
return getGlobal(API_NAME3) || NOOP_METER_PROVIDER;
|
|
18542
|
-
}
|
|
18543
|
-
|
|
18474
|
+
}
|
|
18475
|
+
/**
|
|
18476
|
+
* Returns a meter from the global meter provider.
|
|
18477
|
+
*/
|
|
18478
|
+
getMeter(name, version5, options) {
|
|
18544
18479
|
return this.getMeterProvider().getMeter(name, version5, options);
|
|
18545
|
-
}
|
|
18546
|
-
|
|
18480
|
+
}
|
|
18481
|
+
/** Remove the global meter provider */
|
|
18482
|
+
disable() {
|
|
18547
18483
|
unregisterGlobal(API_NAME3, DiagAPI.instance());
|
|
18548
|
-
}
|
|
18549
|
-
|
|
18550
|
-
})();
|
|
18484
|
+
}
|
|
18485
|
+
};
|
|
18551
18486
|
}
|
|
18552
18487
|
});
|
|
18553
18488
|
|
|
18554
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18489
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics-api.js
|
|
18555
18490
|
var metrics;
|
|
18556
18491
|
var init_metrics_api = __esm({
|
|
18557
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18492
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/metrics-api.js"() {
|
|
18558
18493
|
init_metrics();
|
|
18559
18494
|
metrics = MetricsAPI.getInstance();
|
|
18560
18495
|
}
|
|
18561
18496
|
});
|
|
18562
18497
|
|
|
18563
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18498
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
|
|
18564
18499
|
var NoopTextMapPropagator;
|
|
18565
18500
|
var init_NoopTextMapPropagator = __esm({
|
|
18566
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18567
|
-
NoopTextMapPropagator =
|
|
18568
|
-
|
|
18569
|
-
|
|
18501
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"() {
|
|
18502
|
+
NoopTextMapPropagator = class {
|
|
18503
|
+
static {
|
|
18504
|
+
__name(this, "NoopTextMapPropagator");
|
|
18570
18505
|
}
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
}
|
|
18574
|
-
|
|
18506
|
+
/** Noop inject function does nothing */
|
|
18507
|
+
inject(_context, _carrier) {
|
|
18508
|
+
}
|
|
18509
|
+
/** Noop extract function does nothing and returns the input context */
|
|
18510
|
+
extract(context2, _carrier) {
|
|
18575
18511
|
return context2;
|
|
18576
|
-
}
|
|
18577
|
-
|
|
18512
|
+
}
|
|
18513
|
+
fields() {
|
|
18578
18514
|
return [];
|
|
18579
|
-
}
|
|
18580
|
-
|
|
18581
|
-
})();
|
|
18515
|
+
}
|
|
18516
|
+
};
|
|
18582
18517
|
}
|
|
18583
18518
|
});
|
|
18584
18519
|
|
|
18585
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18520
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
|
|
18586
18521
|
function getBaggage(context2) {
|
|
18587
18522
|
return context2.getValue(BAGGAGE_KEY) || void 0;
|
|
18588
18523
|
}
|
|
@@ -18597,7 +18532,7 @@ function deleteBaggage(context2) {
|
|
|
18597
18532
|
}
|
|
18598
18533
|
var BAGGAGE_KEY;
|
|
18599
18534
|
var init_context_helpers = __esm({
|
|
18600
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18535
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js"() {
|
|
18601
18536
|
init_context2();
|
|
18602
18537
|
init_context();
|
|
18603
18538
|
BAGGAGE_KEY = createContextKey("OpenTelemetry Baggage Key");
|
|
@@ -18608,10 +18543,10 @@ var init_context_helpers = __esm({
|
|
|
18608
18543
|
}
|
|
18609
18544
|
});
|
|
18610
18545
|
|
|
18611
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18546
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/propagation.js
|
|
18612
18547
|
var API_NAME4, NOOP_TEXT_MAP_PROPAGATOR, PropagationAPI;
|
|
18613
18548
|
var init_propagation = __esm({
|
|
18614
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18549
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/propagation.js"() {
|
|
18615
18550
|
init_global_utils();
|
|
18616
18551
|
init_NoopTextMapPropagator();
|
|
18617
18552
|
init_TextMapPropagator();
|
|
@@ -18620,73 +18555,95 @@ var init_propagation = __esm({
|
|
|
18620
18555
|
init_diag();
|
|
18621
18556
|
API_NAME4 = "propagation";
|
|
18622
18557
|
NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();
|
|
18623
|
-
PropagationAPI =
|
|
18624
|
-
|
|
18625
|
-
|
|
18558
|
+
PropagationAPI = class _PropagationAPI {
|
|
18559
|
+
static {
|
|
18560
|
+
__name(this, "PropagationAPI");
|
|
18561
|
+
}
|
|
18562
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
18563
|
+
constructor() {
|
|
18626
18564
|
this.createBaggage = createBaggage;
|
|
18627
18565
|
this.getBaggage = getBaggage;
|
|
18628
18566
|
this.getActiveBaggage = getActiveBaggage;
|
|
18629
18567
|
this.setBaggage = setBaggage;
|
|
18630
18568
|
this.deleteBaggage = deleteBaggage;
|
|
18631
18569
|
}
|
|
18632
|
-
|
|
18633
|
-
|
|
18570
|
+
/** Get the singleton instance of the Propagator API */
|
|
18571
|
+
static getInstance() {
|
|
18634
18572
|
if (!this._instance) {
|
|
18635
|
-
this._instance = new
|
|
18573
|
+
this._instance = new _PropagationAPI();
|
|
18636
18574
|
}
|
|
18637
18575
|
return this._instance;
|
|
18638
|
-
}
|
|
18639
|
-
|
|
18576
|
+
}
|
|
18577
|
+
/**
|
|
18578
|
+
* Set the current propagator.
|
|
18579
|
+
*
|
|
18580
|
+
* @returns true if the propagator was successfully registered, else false
|
|
18581
|
+
*/
|
|
18582
|
+
setGlobalPropagator(propagator) {
|
|
18640
18583
|
return registerGlobal(API_NAME4, propagator, DiagAPI.instance());
|
|
18641
|
-
}
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18584
|
+
}
|
|
18585
|
+
/**
|
|
18586
|
+
* Inject context into a carrier to be propagated inter-process
|
|
18587
|
+
*
|
|
18588
|
+
* @param context Context carrying tracing data to inject
|
|
18589
|
+
* @param carrier carrier to inject context into
|
|
18590
|
+
* @param setter Function used to set values on the carrier
|
|
18591
|
+
*/
|
|
18592
|
+
inject(context2, carrier, setter = defaultTextMapSetter) {
|
|
18646
18593
|
return this._getGlobalPropagator().inject(context2, carrier, setter);
|
|
18647
|
-
}
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18594
|
+
}
|
|
18595
|
+
/**
|
|
18596
|
+
* Extract context from a carrier
|
|
18597
|
+
*
|
|
18598
|
+
* @param context Context which the newly created context will inherit from
|
|
18599
|
+
* @param carrier Carrier to extract context from
|
|
18600
|
+
* @param getter Function used to extract keys from a carrier
|
|
18601
|
+
*/
|
|
18602
|
+
extract(context2, carrier, getter = defaultTextMapGetter) {
|
|
18652
18603
|
return this._getGlobalPropagator().extract(context2, carrier, getter);
|
|
18653
|
-
}
|
|
18654
|
-
|
|
18604
|
+
}
|
|
18605
|
+
/**
|
|
18606
|
+
* Return a list of all fields which may be used by the propagator.
|
|
18607
|
+
*/
|
|
18608
|
+
fields() {
|
|
18655
18609
|
return this._getGlobalPropagator().fields();
|
|
18656
|
-
}
|
|
18657
|
-
|
|
18610
|
+
}
|
|
18611
|
+
/** Remove the global propagator */
|
|
18612
|
+
disable() {
|
|
18658
18613
|
unregisterGlobal(API_NAME4, DiagAPI.instance());
|
|
18659
|
-
}
|
|
18660
|
-
|
|
18614
|
+
}
|
|
18615
|
+
_getGlobalPropagator() {
|
|
18661
18616
|
return getGlobal(API_NAME4) || NOOP_TEXT_MAP_PROPAGATOR;
|
|
18662
|
-
}
|
|
18663
|
-
|
|
18664
|
-
})();
|
|
18617
|
+
}
|
|
18618
|
+
};
|
|
18665
18619
|
}
|
|
18666
18620
|
});
|
|
18667
18621
|
|
|
18668
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18622
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation-api.js
|
|
18669
18623
|
var propagation;
|
|
18670
18624
|
var init_propagation_api = __esm({
|
|
18671
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18625
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/propagation-api.js"() {
|
|
18672
18626
|
init_propagation();
|
|
18673
18627
|
propagation = PropagationAPI.getInstance();
|
|
18674
18628
|
}
|
|
18675
18629
|
});
|
|
18676
18630
|
|
|
18677
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18631
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/trace.js
|
|
18678
18632
|
var API_NAME5, TraceAPI;
|
|
18679
18633
|
var init_trace = __esm({
|
|
18680
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18634
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/trace.js"() {
|
|
18681
18635
|
init_global_utils();
|
|
18682
18636
|
init_ProxyTracerProvider();
|
|
18683
18637
|
init_spancontext_utils();
|
|
18684
18638
|
init_context_utils();
|
|
18685
18639
|
init_diag();
|
|
18686
18640
|
API_NAME5 = "trace";
|
|
18687
|
-
TraceAPI =
|
|
18688
|
-
|
|
18689
|
-
|
|
18641
|
+
TraceAPI = class _TraceAPI {
|
|
18642
|
+
static {
|
|
18643
|
+
__name(this, "TraceAPI");
|
|
18644
|
+
}
|
|
18645
|
+
/** Empty private constructor prevents end users from constructing a new instance of the API */
|
|
18646
|
+
constructor() {
|
|
18690
18647
|
this._proxyTracerProvider = new ProxyTracerProvider();
|
|
18691
18648
|
this.wrapSpanContext = wrapSpanContext;
|
|
18692
18649
|
this.isSpanContextValid = isSpanContextValid;
|
|
@@ -18697,45 +18654,56 @@ var init_trace = __esm({
|
|
|
18697
18654
|
this.setSpan = setSpan;
|
|
18698
18655
|
this.setSpanContext = setSpanContext;
|
|
18699
18656
|
}
|
|
18700
|
-
|
|
18701
|
-
|
|
18657
|
+
/** Get the singleton instance of the Trace API */
|
|
18658
|
+
static getInstance() {
|
|
18702
18659
|
if (!this._instance) {
|
|
18703
|
-
this._instance = new
|
|
18660
|
+
this._instance = new _TraceAPI();
|
|
18704
18661
|
}
|
|
18705
18662
|
return this._instance;
|
|
18706
|
-
}
|
|
18707
|
-
|
|
18708
|
-
|
|
18663
|
+
}
|
|
18664
|
+
/**
|
|
18665
|
+
* Set the current global tracer.
|
|
18666
|
+
*
|
|
18667
|
+
* @returns true if the tracer provider was successfully registered, else false
|
|
18668
|
+
*/
|
|
18669
|
+
setGlobalTracerProvider(provider) {
|
|
18670
|
+
const success3 = registerGlobal(API_NAME5, this._proxyTracerProvider, DiagAPI.instance());
|
|
18709
18671
|
if (success3) {
|
|
18710
18672
|
this._proxyTracerProvider.setDelegate(provider);
|
|
18711
18673
|
}
|
|
18712
18674
|
return success3;
|
|
18713
|
-
}
|
|
18714
|
-
|
|
18675
|
+
}
|
|
18676
|
+
/**
|
|
18677
|
+
* Returns the global tracer provider.
|
|
18678
|
+
*/
|
|
18679
|
+
getTracerProvider() {
|
|
18715
18680
|
return getGlobal(API_NAME5) || this._proxyTracerProvider;
|
|
18716
|
-
}
|
|
18717
|
-
|
|
18681
|
+
}
|
|
18682
|
+
/**
|
|
18683
|
+
* Returns a tracer from the global tracer provider.
|
|
18684
|
+
*/
|
|
18685
|
+
getTracer(name, version5) {
|
|
18718
18686
|
return this.getTracerProvider().getTracer(name, version5);
|
|
18719
|
-
}
|
|
18720
|
-
|
|
18687
|
+
}
|
|
18688
|
+
/** Remove the global tracer provider */
|
|
18689
|
+
disable() {
|
|
18721
18690
|
unregisterGlobal(API_NAME5, DiagAPI.instance());
|
|
18722
18691
|
this._proxyTracerProvider = new ProxyTracerProvider();
|
|
18723
|
-
}
|
|
18724
|
-
|
|
18725
|
-
})();
|
|
18692
|
+
}
|
|
18693
|
+
};
|
|
18726
18694
|
}
|
|
18727
18695
|
});
|
|
18728
18696
|
|
|
18729
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18697
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace-api.js
|
|
18730
18698
|
var trace2;
|
|
18731
18699
|
var init_trace_api = __esm({
|
|
18732
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18700
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace-api.js"() {
|
|
18733
18701
|
init_trace();
|
|
18734
18702
|
trace2 = TraceAPI.getInstance();
|
|
18735
18703
|
}
|
|
18736
18704
|
});
|
|
18737
18705
|
|
|
18738
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18706
|
+
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/index.js
|
|
18739
18707
|
var esm_exports = {};
|
|
18740
18708
|
__export(esm_exports, {
|
|
18741
18709
|
DiagConsoleLogger: () => DiagConsoleLogger,
|
|
@@ -18769,7 +18737,7 @@ __export(esm_exports, {
|
|
|
18769
18737
|
});
|
|
18770
18738
|
var esm_default;
|
|
18771
18739
|
var init_esm = __esm({
|
|
18772
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
18740
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/index.js"() {
|
|
18773
18741
|
init_utils2();
|
|
18774
18742
|
init_context();
|
|
18775
18743
|
init_consoleLogger();
|
|
@@ -45292,6 +45260,29 @@ async function withTraceContext(traceCarrier, fn) {
|
|
|
45292
45260
|
}
|
|
45293
45261
|
return otel.context.with(extractedContext, async () => await fn());
|
|
45294
45262
|
}
|
|
45263
|
+
function logOtelDiagnosticOnce2(otel, tracer) {
|
|
45264
|
+
const debugEnabled = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
|
|
45265
|
+
if (otelDiagLogged2 || !debugEnabled)
|
|
45266
|
+
return;
|
|
45267
|
+
otelDiagLogged2 = true;
|
|
45268
|
+
try {
|
|
45269
|
+
const g = globalThis[/* @__PURE__ */ Symbol.for("opentelemetry.js.api.1")];
|
|
45270
|
+
const provider = otel.trace.getTracerProvider();
|
|
45271
|
+
const delegate = provider.getDelegate?.() ?? provider;
|
|
45272
|
+
const probe = tracer.startSpan("workflow.otel.probe.core");
|
|
45273
|
+
console.warn("[workflow:otel-diag] core", JSON.stringify({
|
|
45274
|
+
globalRegistrationVersion: g?.version ?? null,
|
|
45275
|
+
providerCtor: provider?.constructor?.name ?? null,
|
|
45276
|
+
delegateCtor: delegate?.constructor?.name ?? null,
|
|
45277
|
+
tracerCtor: tracer?.constructor?.name ?? null,
|
|
45278
|
+
probeCtor: probe?.constructor?.name ?? null,
|
|
45279
|
+
probeRecording: probe.isRecording()
|
|
45280
|
+
}));
|
|
45281
|
+
probe.end();
|
|
45282
|
+
} catch (error95) {
|
|
45283
|
+
console.warn("[workflow:otel-diag] core failed:", error95 instanceof Error ? error95.message : error95);
|
|
45284
|
+
}
|
|
45285
|
+
}
|
|
45295
45286
|
async function trace4(spanName, ...args) {
|
|
45296
45287
|
const [tracer, otel] = await Promise.all([Tracer2.value, OtelApi2.value]);
|
|
45297
45288
|
const { fn, opts } = typeof args[0] === "function" ? { fn: args[0], opts: {} } : { fn: args[1], opts: args[0] };
|
|
@@ -45388,7 +45379,7 @@ async function withWorkflowBaggage(context2, fn) {
|
|
|
45388
45379
|
const contextWithBaggage = otel.propagation.setBaggage(otel.context.active(), baggage);
|
|
45389
45380
|
return otel.context.with(contextWithBaggage, () => fn());
|
|
45390
45381
|
}
|
|
45391
|
-
var warnedUnrecognizedTraceModes, OtelApi2, Tracer2;
|
|
45382
|
+
var warnedUnrecognizedTraceModes, OtelApi2, Tracer2, otelDiagLogged2;
|
|
45392
45383
|
var init_telemetry2 = __esm({
|
|
45393
45384
|
"../core/dist/telemetry.js"() {
|
|
45394
45385
|
"use strict";
|
|
@@ -45416,8 +45407,12 @@ var init_telemetry2 = __esm({
|
|
|
45416
45407
|
const api = await OtelApi2.value;
|
|
45417
45408
|
if (!api)
|
|
45418
45409
|
return null;
|
|
45419
|
-
|
|
45410
|
+
const tracer = api.trace.getTracer("workflow");
|
|
45411
|
+
logOtelDiagnosticOnce2(api, tracer);
|
|
45412
|
+
return tracer;
|
|
45420
45413
|
});
|
|
45414
|
+
otelDiagLogged2 = false;
|
|
45415
|
+
__name(logOtelDiagnosticOnce2, "logOtelDiagnosticOnce");
|
|
45421
45416
|
__name(trace4, "trace");
|
|
45422
45417
|
__name(recordElapsedSpan2, "recordElapsedSpan");
|
|
45423
45418
|
__name(applyWorkflowSuspensionToSpan2, "applyWorkflowSuspensionToSpan");
|
|
@@ -45590,7 +45585,7 @@ var version4;
|
|
|
45590
45585
|
var init_version3 = __esm({
|
|
45591
45586
|
"../core/dist/version.js"() {
|
|
45592
45587
|
"use strict";
|
|
45593
|
-
version4 = "5.0.0-beta.
|
|
45588
|
+
version4 = "5.0.0-beta.34";
|
|
45594
45589
|
}
|
|
45595
45590
|
});
|
|
45596
45591
|
|
|
@@ -51735,7 +51730,7 @@ function getByteUnframingStream2() {
|
|
|
51735
51730
|
}
|
|
51736
51731
|
});
|
|
51737
51732
|
}
|
|
51738
|
-
function recordReadTimeToFirstChunk2(startEpochMs, runId, name, startIndex) {
|
|
51733
|
+
function recordReadTimeToFirstChunk2(startEpochMs, runId, name, startIndex, connectMs) {
|
|
51739
51734
|
void (async () => {
|
|
51740
51735
|
await recordElapsedSpan2("workflow.stream.read", startEpochMs, {
|
|
51741
51736
|
kind: await getSpanKind3("CLIENT"),
|
|
@@ -51744,11 +51739,28 @@ function recordReadTimeToFirstChunk2(startEpochMs, runId, name, startIndex) {
|
|
|
51744
51739
|
"workflow.stream.name": name,
|
|
51745
51740
|
"workflow.stream.operation": "read",
|
|
51746
51741
|
"workflow.stream.read.ttfc_ms": Date.now() - startEpochMs,
|
|
51742
|
+
...typeof connectMs === "number" ? { "workflow.stream.read.connect_ms": connectMs } : {},
|
|
51747
51743
|
...typeof startIndex === "number" ? { "workflow.stream.start_index": startIndex } : {}
|
|
51748
51744
|
}
|
|
51749
51745
|
});
|
|
51750
51746
|
})();
|
|
51751
51747
|
}
|
|
51748
|
+
function recordStreamReadComplete2(startEpochMs, runId, name, chunkCount, byteCount, reconnects) {
|
|
51749
|
+
void (async () => {
|
|
51750
|
+
await recordElapsedSpan2("workflow.stream.read.complete", startEpochMs, {
|
|
51751
|
+
kind: await getSpanKind3("CLIENT"),
|
|
51752
|
+
attributes: {
|
|
51753
|
+
"workflow.run.id": runId,
|
|
51754
|
+
"workflow.stream.name": name,
|
|
51755
|
+
"workflow.stream.operation": "read_complete",
|
|
51756
|
+
"workflow.stream.read.total_ms": Date.now() - startEpochMs,
|
|
51757
|
+
"workflow.stream.read.chunks": chunkCount,
|
|
51758
|
+
"workflow.stream.read.bytes": byteCount,
|
|
51759
|
+
...typeof reconnects === "number" ? { "workflow.stream.read.reconnects": reconnects } : {}
|
|
51760
|
+
}
|
|
51761
|
+
});
|
|
51762
|
+
})();
|
|
51763
|
+
}
|
|
51752
51764
|
function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
51753
51765
|
const reconnectSupported = startIndex === void 0 || startIndex >= 0;
|
|
51754
51766
|
let currentStartIndex = startIndex ?? 0;
|
|
@@ -51757,10 +51769,18 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
51757
51769
|
let totalReconnectCount = 0;
|
|
51758
51770
|
let reader;
|
|
51759
51771
|
let buffer3 = new Uint8Array(0);
|
|
51772
|
+
let readStart;
|
|
51773
|
+
let connectMs;
|
|
51774
|
+
let firstChunkReported = false;
|
|
51775
|
+
let chunksDelivered = 0;
|
|
51776
|
+
let bytesDelivered = 0;
|
|
51760
51777
|
async function connect() {
|
|
51761
51778
|
const world = await getWorldLazy2();
|
|
51762
51779
|
const effectiveStartIndex = reconnectSupported ? currentStartIndex + consumedFrames : startIndex;
|
|
51780
|
+
const connectStart = Date.now();
|
|
51763
51781
|
const stream = await world.streams.get(runId, name, effectiveStartIndex);
|
|
51782
|
+
if (connectMs === void 0)
|
|
51783
|
+
connectMs = Date.now() - connectStart;
|
|
51764
51784
|
reader = stream.getReader();
|
|
51765
51785
|
}
|
|
51766
51786
|
__name(connect, "connect");
|
|
@@ -51794,6 +51814,8 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
51794
51814
|
__name(reconnect, "reconnect");
|
|
51795
51815
|
return new ReadableStream({
|
|
51796
51816
|
pull: /* @__PURE__ */ __name(async (controller) => {
|
|
51817
|
+
if (readStart === void 0)
|
|
51818
|
+
readStart = Date.now();
|
|
51797
51819
|
for (; ; ) {
|
|
51798
51820
|
if (!reader) {
|
|
51799
51821
|
try {
|
|
@@ -51821,6 +51843,9 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
51821
51843
|
}
|
|
51822
51844
|
if (result.done || !result.value) {
|
|
51823
51845
|
reader = void 0;
|
|
51846
|
+
if (readStart !== void 0) {
|
|
51847
|
+
recordStreamReadComplete2(readStart, runId, name, chunksDelivered, bytesDelivered, totalReconnectCount);
|
|
51848
|
+
}
|
|
51824
51849
|
controller.close();
|
|
51825
51850
|
return;
|
|
51826
51851
|
}
|
|
@@ -51840,6 +51865,12 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
51840
51865
|
controller.enqueue(buffer3.slice(0, total));
|
|
51841
51866
|
buffer3 = buffer3.slice(total);
|
|
51842
51867
|
consumedFrames++;
|
|
51868
|
+
chunksDelivered++;
|
|
51869
|
+
bytesDelivered += total;
|
|
51870
|
+
if (!firstChunkReported && readStart !== void 0) {
|
|
51871
|
+
firstChunkReported = true;
|
|
51872
|
+
recordReadTimeToFirstChunk2(readStart, runId, name, startIndex, connectMs);
|
|
51873
|
+
}
|
|
51843
51874
|
emitted = true;
|
|
51844
51875
|
}
|
|
51845
51876
|
if (emitted) {
|
|
@@ -51858,7 +51889,7 @@ function createReconnectingFramedStream2(runId, name, startIndex) {
|
|
|
51858
51889
|
}, "cancel")
|
|
51859
51890
|
});
|
|
51860
51891
|
}
|
|
51861
|
-
function recordStreamWriteFlush2(startEpochMs, dispatchEpochMs, runId, name, chunkCount, byteCount) {
|
|
51892
|
+
function recordStreamWriteFlush2(startEpochMs, dispatchEpochMs, runId, name, chunkCount, byteCount, rpcMs) {
|
|
51862
51893
|
void (async () => {
|
|
51863
51894
|
await recordElapsedSpan2("workflow.stream.flush", startEpochMs, {
|
|
51864
51895
|
kind: await getSpanKind3("CLIENT"),
|
|
@@ -51868,7 +51899,24 @@ function recordStreamWriteFlush2(startEpochMs, dispatchEpochMs, runId, name, chu
|
|
|
51868
51899
|
"workflow.stream.operation": "flush",
|
|
51869
51900
|
"workflow.stream.flush.buffer_dwell_ms": dispatchEpochMs - startEpochMs,
|
|
51870
51901
|
"workflow.stream.flush.chunks": chunkCount,
|
|
51871
|
-
"workflow.stream.flush.bytes": byteCount
|
|
51902
|
+
"workflow.stream.flush.bytes": byteCount,
|
|
51903
|
+
// Client-observed World write RPC duration (network hop included).
|
|
51904
|
+
// Same key as world-vercel's per-request span attribute so queries
|
|
51905
|
+
// work regardless of which layer emitted it.
|
|
51906
|
+
"workflow.stream.write.chunk_rtt": rpcMs
|
|
51907
|
+
}
|
|
51908
|
+
});
|
|
51909
|
+
})();
|
|
51910
|
+
}
|
|
51911
|
+
function recordStreamClose2(startEpochMs, runId, name) {
|
|
51912
|
+
void (async () => {
|
|
51913
|
+
await recordElapsedSpan2("workflow.stream.close", startEpochMs, {
|
|
51914
|
+
kind: await getSpanKind3("CLIENT"),
|
|
51915
|
+
attributes: {
|
|
51916
|
+
"workflow.run.id": runId,
|
|
51917
|
+
"workflow.stream.name": name,
|
|
51918
|
+
"workflow.stream.operation": "close",
|
|
51919
|
+
"workflow.stream.close.rpc_ms": Date.now() - startEpochMs
|
|
51872
51920
|
}
|
|
51873
51921
|
});
|
|
51874
51922
|
})();
|
|
@@ -52955,6 +53003,7 @@ var init_serialization4 = __esm({
|
|
|
52955
53003
|
__name(getByteFramingStream2, "getByteFramingStream");
|
|
52956
53004
|
__name(getByteUnframingStream2, "getByteUnframingStream");
|
|
52957
53005
|
__name(recordReadTimeToFirstChunk2, "recordReadTimeToFirstChunk");
|
|
53006
|
+
__name(recordStreamReadComplete2, "recordStreamReadComplete");
|
|
52958
53007
|
WorkflowServerReadableStream2 = class extends ReadableStream {
|
|
52959
53008
|
static {
|
|
52960
53009
|
__name(this, "WorkflowServerReadableStream");
|
|
@@ -52966,6 +53015,9 @@ var init_serialization4 = __esm({
|
|
|
52966
53015
|
}
|
|
52967
53016
|
let readStart;
|
|
52968
53017
|
let firstChunkReported = false;
|
|
53018
|
+
let connectMs;
|
|
53019
|
+
let chunksDelivered = 0;
|
|
53020
|
+
let bytesDelivered = 0;
|
|
52969
53021
|
super({
|
|
52970
53022
|
// @ts-expect-error Not sure why TypeScript is complaining about this
|
|
52971
53023
|
type: "bytes",
|
|
@@ -52975,7 +53027,9 @@ var init_serialization4 = __esm({
|
|
|
52975
53027
|
if (readStart === void 0)
|
|
52976
53028
|
readStart = Date.now();
|
|
52977
53029
|
const world = await getWorldLazy2();
|
|
53030
|
+
const connectStart = Date.now();
|
|
52978
53031
|
const stream = await world.streams.get(runId, name, startIndex);
|
|
53032
|
+
connectMs = Date.now() - connectStart;
|
|
52979
53033
|
reader = this.#reader = stream.getReader();
|
|
52980
53034
|
}
|
|
52981
53035
|
if (!reader) {
|
|
@@ -52985,12 +53039,17 @@ var init_serialization4 = __esm({
|
|
|
52985
53039
|
const result = await reader.read();
|
|
52986
53040
|
if (result.done) {
|
|
52987
53041
|
this.#reader = void 0;
|
|
53042
|
+
if (readStart !== void 0) {
|
|
53043
|
+
recordStreamReadComplete2(readStart, runId, name, chunksDelivered, bytesDelivered);
|
|
53044
|
+
}
|
|
52988
53045
|
controller.close();
|
|
52989
53046
|
} else {
|
|
52990
53047
|
if (!firstChunkReported && result.value.byteLength > 0 && readStart !== void 0) {
|
|
52991
53048
|
firstChunkReported = true;
|
|
52992
|
-
recordReadTimeToFirstChunk2(readStart, runId, name, startIndex);
|
|
53049
|
+
recordReadTimeToFirstChunk2(readStart, runId, name, startIndex, connectMs);
|
|
52993
53050
|
}
|
|
53051
|
+
chunksDelivered += 1;
|
|
53052
|
+
bytesDelivered += result.value.byteLength;
|
|
52994
53053
|
controller.enqueue(result.value);
|
|
52995
53054
|
}
|
|
52996
53055
|
}, "pull"),
|
|
@@ -53017,6 +53076,7 @@ var init_serialization4 = __esm({
|
|
|
53017
53076
|
integer: true
|
|
53018
53077
|
}), "getStreamFlushIntervalMs");
|
|
53019
53078
|
__name(recordStreamWriteFlush2, "recordStreamWriteFlush");
|
|
53079
|
+
__name(recordStreamClose2, "recordStreamClose");
|
|
53020
53080
|
WorkflowServerWritableStream2 = class extends WritableStream {
|
|
53021
53081
|
static {
|
|
53022
53082
|
__name(this, "WorkflowServerWritableStream");
|
|
@@ -53069,6 +53129,7 @@ var init_serialization4 = __esm({
|
|
|
53069
53129
|
if (resolvedFlushIntervalMs === void 0) {
|
|
53070
53130
|
resolvedFlushIntervalMs = world.streamFlushIntervalMs ?? getStreamFlushIntervalMs2();
|
|
53071
53131
|
}
|
|
53132
|
+
const rpcStartAt = Date.now();
|
|
53072
53133
|
try {
|
|
53073
53134
|
if (typeof world.streams.writeMulti === "function" && chunksToFlush.length > 1) {
|
|
53074
53135
|
await world.streams.writeMulti(runId, name, chunksToFlush);
|
|
@@ -53084,7 +53145,7 @@ var init_serialization4 = __esm({
|
|
|
53084
53145
|
throw error95;
|
|
53085
53146
|
}
|
|
53086
53147
|
if (batchStart !== void 0) {
|
|
53087
|
-
recordStreamWriteFlush2(batchStart, dispatchAt, runId, name, chunksToFlush.length, chunksToFlush.reduce((sum, c) => sum + c.byteLength, 0));
|
|
53148
|
+
recordStreamWriteFlush2(batchStart, dispatchAt, runId, name, chunksToFlush.length, chunksToFlush.reduce((sum, c) => sum + c.byteLength, 0), Date.now() - rpcStartAt);
|
|
53088
53149
|
}
|
|
53089
53150
|
buffer3 = [];
|
|
53090
53151
|
}, "flush");
|
|
@@ -53127,7 +53188,9 @@ var init_serialization4 = __esm({
|
|
|
53127
53188
|
await flush();
|
|
53128
53189
|
await ensureRunReady();
|
|
53129
53190
|
const world = await worldPromise;
|
|
53191
|
+
const closeStart = Date.now();
|
|
53130
53192
|
await world.streams.close(runId, name);
|
|
53193
|
+
recordStreamClose2(closeStart, runId, name);
|
|
53131
53194
|
},
|
|
53132
53195
|
abort(reason) {
|
|
53133
53196
|
if (flushTimer) {
|
|
@@ -74740,76 +74803,18 @@ var init_semantic_conventions = __esm2({
|
|
|
74740
74803
|
ErrorCategory = SemanticConvention("error.category");
|
|
74741
74804
|
}
|
|
74742
74805
|
});
|
|
74743
|
-
var require_globalThis = __commonJS2({
|
|
74744
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js"(exports) {
|
|
74745
|
-
"use strict";
|
|
74746
|
-
Object.defineProperty(exports, "__esModule", {
|
|
74747
|
-
value: true
|
|
74748
|
-
});
|
|
74749
|
-
exports._globalThis = void 0;
|
|
74750
|
-
exports._globalThis = typeof globalThis === "object" ? globalThis : global;
|
|
74751
|
-
}
|
|
74752
|
-
});
|
|
74753
|
-
var require_node = __commonJS2({
|
|
74754
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/node/index.js"(exports) {
|
|
74755
|
-
"use strict";
|
|
74756
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
74757
|
-
if (k2 === void 0) k2 = k;
|
|
74758
|
-
Object.defineProperty(o, k2, {
|
|
74759
|
-
enumerable: true,
|
|
74760
|
-
get: /* @__PURE__ */ __name2(function() {
|
|
74761
|
-
return m[k];
|
|
74762
|
-
}, "get")
|
|
74763
|
-
});
|
|
74764
|
-
} : function(o, m, k, k2) {
|
|
74765
|
-
if (k2 === void 0) k2 = k;
|
|
74766
|
-
o[k2] = m[k];
|
|
74767
|
-
});
|
|
74768
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports1) {
|
|
74769
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports1, p)) __createBinding(exports1, m, p);
|
|
74770
|
-
};
|
|
74771
|
-
Object.defineProperty(exports, "__esModule", {
|
|
74772
|
-
value: true
|
|
74773
|
-
});
|
|
74774
|
-
__exportStar(require_globalThis(), exports);
|
|
74775
|
-
}
|
|
74776
|
-
});
|
|
74777
|
-
var require_platform = __commonJS2({
|
|
74778
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/platform/index.js"(exports) {
|
|
74779
|
-
"use strict";
|
|
74780
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
74781
|
-
if (k2 === void 0) k2 = k;
|
|
74782
|
-
Object.defineProperty(o, k2, {
|
|
74783
|
-
enumerable: true,
|
|
74784
|
-
get: /* @__PURE__ */ __name2(function() {
|
|
74785
|
-
return m[k];
|
|
74786
|
-
}, "get")
|
|
74787
|
-
});
|
|
74788
|
-
} : function(o, m, k, k2) {
|
|
74789
|
-
if (k2 === void 0) k2 = k;
|
|
74790
|
-
o[k2] = m[k];
|
|
74791
|
-
});
|
|
74792
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports1) {
|
|
74793
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports1, p)) __createBinding(exports1, m, p);
|
|
74794
|
-
};
|
|
74795
|
-
Object.defineProperty(exports, "__esModule", {
|
|
74796
|
-
value: true
|
|
74797
|
-
});
|
|
74798
|
-
__exportStar(require_node(), exports);
|
|
74799
|
-
}
|
|
74800
|
-
});
|
|
74801
74806
|
var require_version = __commonJS2({
|
|
74802
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
74807
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/version.js"(exports) {
|
|
74803
74808
|
"use strict";
|
|
74804
74809
|
Object.defineProperty(exports, "__esModule", {
|
|
74805
74810
|
value: true
|
|
74806
74811
|
});
|
|
74807
74812
|
exports.VERSION = void 0;
|
|
74808
|
-
exports.VERSION = "1.9.
|
|
74813
|
+
exports.VERSION = "1.9.1";
|
|
74809
74814
|
}
|
|
74810
74815
|
});
|
|
74811
74816
|
var require_semver = __commonJS2({
|
|
74812
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
74817
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/internal/semver.js"(exports) {
|
|
74813
74818
|
"use strict";
|
|
74814
74819
|
Object.defineProperty(exports, "__esModule", {
|
|
74815
74820
|
value: true
|
|
@@ -74891,18 +74896,17 @@ var require_semver = __commonJS2({
|
|
|
74891
74896
|
}
|
|
74892
74897
|
});
|
|
74893
74898
|
var require_global_utils = __commonJS2({
|
|
74894
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
74899
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/internal/global-utils.js"(exports) {
|
|
74895
74900
|
"use strict";
|
|
74896
74901
|
Object.defineProperty(exports, "__esModule", {
|
|
74897
74902
|
value: true
|
|
74898
74903
|
});
|
|
74899
74904
|
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = void 0;
|
|
74900
|
-
var platform_1 = require_platform();
|
|
74901
74905
|
var version_1 = require_version();
|
|
74902
74906
|
var semver_1 = require_semver();
|
|
74903
74907
|
var major2 = version_1.VERSION.split(".")[0];
|
|
74904
74908
|
var GLOBAL_OPENTELEMETRY_API_KEY2 = /* @__PURE__ */ Symbol.for(`opentelemetry.js.api.${major2}`);
|
|
74905
|
-
var _global2 =
|
|
74909
|
+
var _global2 = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
74906
74910
|
function registerGlobal2(type, instance, diag3, allowOverride = false) {
|
|
74907
74911
|
var _a22;
|
|
74908
74912
|
const api = _global2[GLOBAL_OPENTELEMETRY_API_KEY2] = (_a22 = _global2[GLOBAL_OPENTELEMETRY_API_KEY2]) !== null && _a22 !== void 0 ? _a22 : {
|
|
@@ -74949,7 +74953,7 @@ var require_global_utils = __commonJS2({
|
|
|
74949
74953
|
}
|
|
74950
74954
|
});
|
|
74951
74955
|
var require_ComponentLogger = __commonJS2({
|
|
74952
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
74956
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js"(exports) {
|
|
74953
74957
|
"use strict";
|
|
74954
74958
|
Object.defineProperty(exports, "__esModule", {
|
|
74955
74959
|
value: true
|
|
@@ -74988,15 +74992,14 @@ var require_ComponentLogger = __commonJS2({
|
|
|
74988
74992
|
if (!logger) {
|
|
74989
74993
|
return;
|
|
74990
74994
|
}
|
|
74991
|
-
|
|
74992
|
-
return logger[funcName](...args);
|
|
74995
|
+
return logger[funcName](namespace, ...args);
|
|
74993
74996
|
}
|
|
74994
74997
|
__name(logProxy2, "logProxy");
|
|
74995
74998
|
__name2(logProxy2, "logProxy");
|
|
74996
74999
|
}
|
|
74997
75000
|
});
|
|
74998
75001
|
var require_types = __commonJS2({
|
|
74999
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75002
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/types.js"(exports) {
|
|
75000
75003
|
"use strict";
|
|
75001
75004
|
Object.defineProperty(exports, "__esModule", {
|
|
75002
75005
|
value: true
|
|
@@ -75015,7 +75018,7 @@ var require_types = __commonJS2({
|
|
|
75015
75018
|
}
|
|
75016
75019
|
});
|
|
75017
75020
|
var require_logLevelLogger = __commonJS2({
|
|
75018
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75021
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js"(exports) {
|
|
75019
75022
|
"use strict";
|
|
75020
75023
|
Object.defineProperty(exports, "__esModule", {
|
|
75021
75024
|
value: true
|
|
@@ -75053,7 +75056,7 @@ var require_logLevelLogger = __commonJS2({
|
|
|
75053
75056
|
}
|
|
75054
75057
|
});
|
|
75055
75058
|
var require_diag = __commonJS2({
|
|
75056
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75059
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/diag.js"(exports) {
|
|
75057
75060
|
"use strict";
|
|
75058
75061
|
Object.defineProperty(exports, "__esModule", {
|
|
75059
75062
|
value: true
|
|
@@ -75071,6 +75074,13 @@ var require_diag = __commonJS2({
|
|
|
75071
75074
|
static {
|
|
75072
75075
|
__name2(this, "DiagAPI");
|
|
75073
75076
|
}
|
|
75077
|
+
/** Get the singleton instance of the DiagAPI API */
|
|
75078
|
+
static instance() {
|
|
75079
|
+
if (!this._instance) {
|
|
75080
|
+
this._instance = new _DiagAPI();
|
|
75081
|
+
}
|
|
75082
|
+
return this._instance;
|
|
75083
|
+
}
|
|
75074
75084
|
/**
|
|
75075
75085
|
* Private internal constructor
|
|
75076
75086
|
* @private
|
|
@@ -75122,19 +75132,12 @@ var require_diag = __commonJS2({
|
|
|
75122
75132
|
self2.warn = _logProxy("warn");
|
|
75123
75133
|
self2.error = _logProxy("error");
|
|
75124
75134
|
}
|
|
75125
|
-
/** Get the singleton instance of the DiagAPI API */
|
|
75126
|
-
static instance() {
|
|
75127
|
-
if (!this._instance) {
|
|
75128
|
-
this._instance = new _DiagAPI();
|
|
75129
|
-
}
|
|
75130
|
-
return this._instance;
|
|
75131
|
-
}
|
|
75132
75135
|
};
|
|
75133
75136
|
exports.DiagAPI = DiagAPI2;
|
|
75134
75137
|
}
|
|
75135
75138
|
});
|
|
75136
75139
|
var require_baggage_impl = __commonJS2({
|
|
75137
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75140
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js"(exports) {
|
|
75138
75141
|
"use strict";
|
|
75139
75142
|
Object.defineProperty(exports, "__esModule", {
|
|
75140
75143
|
value: true
|
|
@@ -75158,10 +75161,7 @@ var require_baggage_impl = __commonJS2({
|
|
|
75158
75161
|
return Object.assign({}, entry);
|
|
75159
75162
|
}
|
|
75160
75163
|
getAllEntries() {
|
|
75161
|
-
return Array.from(this._entries.entries())
|
|
75162
|
-
k,
|
|
75163
|
-
v
|
|
75164
|
-
]);
|
|
75164
|
+
return Array.from(this._entries.entries());
|
|
75165
75165
|
}
|
|
75166
75166
|
setEntry(key, entry) {
|
|
75167
75167
|
const newBaggage = new _BaggageImpl(this._entries);
|
|
@@ -75188,7 +75188,7 @@ var require_baggage_impl = __commonJS2({
|
|
|
75188
75188
|
}
|
|
75189
75189
|
});
|
|
75190
75190
|
var require_symbol = __commonJS2({
|
|
75191
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75191
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js"(exports) {
|
|
75192
75192
|
"use strict";
|
|
75193
75193
|
Object.defineProperty(exports, "__esModule", {
|
|
75194
75194
|
value: true
|
|
@@ -75198,7 +75198,7 @@ var require_symbol = __commonJS2({
|
|
|
75198
75198
|
}
|
|
75199
75199
|
});
|
|
75200
75200
|
var require_utils = __commonJS2({
|
|
75201
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75201
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/utils.js"(exports) {
|
|
75202
75202
|
"use strict";
|
|
75203
75203
|
Object.defineProperty(exports, "__esModule", {
|
|
75204
75204
|
value: true
|
|
@@ -75232,7 +75232,7 @@ var require_utils = __commonJS2({
|
|
|
75232
75232
|
}
|
|
75233
75233
|
});
|
|
75234
75234
|
var require_context = __commonJS2({
|
|
75235
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75235
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context/context.js"(exports) {
|
|
75236
75236
|
"use strict";
|
|
75237
75237
|
Object.defineProperty(exports, "__esModule", {
|
|
75238
75238
|
value: true
|
|
@@ -75276,12 +75276,12 @@ var require_context = __commonJS2({
|
|
|
75276
75276
|
}
|
|
75277
75277
|
});
|
|
75278
75278
|
var require_consoleLogger = __commonJS2({
|
|
75279
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75279
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js"(exports) {
|
|
75280
75280
|
"use strict";
|
|
75281
75281
|
Object.defineProperty(exports, "__esModule", {
|
|
75282
75282
|
value: true
|
|
75283
75283
|
});
|
|
75284
|
-
exports.DiagConsoleLogger = void 0;
|
|
75284
|
+
exports.DiagConsoleLogger = exports._originalConsoleMethods = void 0;
|
|
75285
75285
|
var consoleMap2 = [
|
|
75286
75286
|
{
|
|
75287
75287
|
n: "error",
|
|
@@ -75304,6 +75304,22 @@ var require_consoleLogger = __commonJS2({
|
|
|
75304
75304
|
c: "trace"
|
|
75305
75305
|
}
|
|
75306
75306
|
];
|
|
75307
|
+
exports._originalConsoleMethods = {};
|
|
75308
|
+
if (typeof console !== "undefined") {
|
|
75309
|
+
const keys = [
|
|
75310
|
+
"error",
|
|
75311
|
+
"warn",
|
|
75312
|
+
"info",
|
|
75313
|
+
"debug",
|
|
75314
|
+
"trace",
|
|
75315
|
+
"log"
|
|
75316
|
+
];
|
|
75317
|
+
for (const key of keys) {
|
|
75318
|
+
if (typeof console[key] === "function") {
|
|
75319
|
+
exports._originalConsoleMethods[key] = console[key];
|
|
75320
|
+
}
|
|
75321
|
+
}
|
|
75322
|
+
}
|
|
75307
75323
|
var DiagConsoleLogger2 = class {
|
|
75308
75324
|
static {
|
|
75309
75325
|
__name(this, "DiagConsoleLogger");
|
|
@@ -75314,14 +75330,18 @@ var require_consoleLogger = __commonJS2({
|
|
|
75314
75330
|
constructor() {
|
|
75315
75331
|
function _consoleFunc(funcName) {
|
|
75316
75332
|
return function(...args) {
|
|
75317
|
-
|
|
75318
|
-
|
|
75333
|
+
let theFunc = exports._originalConsoleMethods[funcName];
|
|
75334
|
+
if (typeof theFunc !== "function") {
|
|
75335
|
+
theFunc = exports._originalConsoleMethods["log"];
|
|
75336
|
+
}
|
|
75337
|
+
if (typeof theFunc !== "function" && console) {
|
|
75338
|
+
theFunc = console[funcName];
|
|
75319
75339
|
if (typeof theFunc !== "function") {
|
|
75320
75340
|
theFunc = console.log;
|
|
75321
75341
|
}
|
|
75322
|
-
|
|
75323
|
-
|
|
75324
|
-
|
|
75342
|
+
}
|
|
75343
|
+
if (typeof theFunc === "function") {
|
|
75344
|
+
return theFunc.apply(console, args);
|
|
75325
75345
|
}
|
|
75326
75346
|
};
|
|
75327
75347
|
}
|
|
@@ -75336,7 +75356,7 @@ var require_consoleLogger = __commonJS2({
|
|
|
75336
75356
|
}
|
|
75337
75357
|
});
|
|
75338
75358
|
var require_NoopMeter = __commonJS2({
|
|
75339
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75359
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js"(exports) {
|
|
75340
75360
|
"use strict";
|
|
75341
75361
|
Object.defineProperty(exports, "__esModule", {
|
|
75342
75362
|
value: true
|
|
@@ -75515,7 +75535,7 @@ var require_NoopMeter = __commonJS2({
|
|
|
75515
75535
|
}
|
|
75516
75536
|
});
|
|
75517
75537
|
var require_Metric = __commonJS2({
|
|
75518
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75538
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/Metric.js"(exports) {
|
|
75519
75539
|
"use strict";
|
|
75520
75540
|
Object.defineProperty(exports, "__esModule", {
|
|
75521
75541
|
value: true
|
|
@@ -75529,7 +75549,7 @@ var require_Metric = __commonJS2({
|
|
|
75529
75549
|
}
|
|
75530
75550
|
});
|
|
75531
75551
|
var require_TextMapPropagator = __commonJS2({
|
|
75532
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75552
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js"(exports) {
|
|
75533
75553
|
"use strict";
|
|
75534
75554
|
Object.defineProperty(exports, "__esModule", {
|
|
75535
75555
|
value: true
|
|
@@ -75560,7 +75580,7 @@ var require_TextMapPropagator = __commonJS2({
|
|
|
75560
75580
|
}
|
|
75561
75581
|
});
|
|
75562
75582
|
var require_NoopContextManager = __commonJS2({
|
|
75563
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75583
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js"(exports) {
|
|
75564
75584
|
"use strict";
|
|
75565
75585
|
Object.defineProperty(exports, "__esModule", {
|
|
75566
75586
|
value: true
|
|
@@ -75594,7 +75614,7 @@ var require_NoopContextManager = __commonJS2({
|
|
|
75594
75614
|
}
|
|
75595
75615
|
});
|
|
75596
75616
|
var require_context2 = __commonJS2({
|
|
75597
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75617
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/context.js"(exports) {
|
|
75598
75618
|
"use strict";
|
|
75599
75619
|
Object.defineProperty(exports, "__esModule", {
|
|
75600
75620
|
value: true
|
|
@@ -75669,7 +75689,7 @@ var require_context2 = __commonJS2({
|
|
|
75669
75689
|
}
|
|
75670
75690
|
});
|
|
75671
75691
|
var require_trace_flags = __commonJS2({
|
|
75672
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75692
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js"(exports) {
|
|
75673
75693
|
"use strict";
|
|
75674
75694
|
Object.defineProperty(exports, "__esModule", {
|
|
75675
75695
|
value: true
|
|
@@ -75683,7 +75703,7 @@ var require_trace_flags = __commonJS2({
|
|
|
75683
75703
|
}
|
|
75684
75704
|
});
|
|
75685
75705
|
var require_invalid_span_constants = __commonJS2({
|
|
75686
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75706
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js"(exports) {
|
|
75687
75707
|
"use strict";
|
|
75688
75708
|
Object.defineProperty(exports, "__esModule", {
|
|
75689
75709
|
value: true
|
|
@@ -75700,7 +75720,7 @@ var require_invalid_span_constants = __commonJS2({
|
|
|
75700
75720
|
}
|
|
75701
75721
|
});
|
|
75702
75722
|
var require_NonRecordingSpan = __commonJS2({
|
|
75703
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75723
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js"(exports) {
|
|
75704
75724
|
"use strict";
|
|
75705
75725
|
Object.defineProperty(exports, "__esModule", {
|
|
75706
75726
|
value: true
|
|
@@ -75714,8 +75734,8 @@ var require_NonRecordingSpan = __commonJS2({
|
|
|
75714
75734
|
static {
|
|
75715
75735
|
__name2(this, "NonRecordingSpan");
|
|
75716
75736
|
}
|
|
75717
|
-
constructor(
|
|
75718
|
-
this._spanContext =
|
|
75737
|
+
constructor(spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {
|
|
75738
|
+
this._spanContext = spanContext;
|
|
75719
75739
|
}
|
|
75720
75740
|
// Returns a SpanContext.
|
|
75721
75741
|
spanContext() {
|
|
@@ -75762,7 +75782,7 @@ var require_NonRecordingSpan = __commonJS2({
|
|
|
75762
75782
|
}
|
|
75763
75783
|
});
|
|
75764
75784
|
var require_context_utils = __commonJS2({
|
|
75765
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75785
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/context-utils.js"(exports) {
|
|
75766
75786
|
"use strict";
|
|
75767
75787
|
Object.defineProperty(exports, "__esModule", {
|
|
75768
75788
|
value: true
|
|
@@ -75812,7 +75832,7 @@ var require_context_utils = __commonJS2({
|
|
|
75812
75832
|
}
|
|
75813
75833
|
});
|
|
75814
75834
|
var require_spancontext_utils = __commonJS2({
|
|
75815
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75835
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js"(exports) {
|
|
75816
75836
|
"use strict";
|
|
75817
75837
|
Object.defineProperty(exports, "__esModule", {
|
|
75818
75838
|
value: true
|
|
@@ -75820,16 +75840,129 @@ var require_spancontext_utils = __commonJS2({
|
|
|
75820
75840
|
exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0;
|
|
75821
75841
|
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
75822
75842
|
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
75823
|
-
var
|
|
75824
|
-
|
|
75843
|
+
var isHex2 = new Uint8Array([
|
|
75844
|
+
0,
|
|
75845
|
+
0,
|
|
75846
|
+
0,
|
|
75847
|
+
0,
|
|
75848
|
+
0,
|
|
75849
|
+
0,
|
|
75850
|
+
0,
|
|
75851
|
+
0,
|
|
75852
|
+
0,
|
|
75853
|
+
0,
|
|
75854
|
+
0,
|
|
75855
|
+
0,
|
|
75856
|
+
0,
|
|
75857
|
+
0,
|
|
75858
|
+
0,
|
|
75859
|
+
0,
|
|
75860
|
+
0,
|
|
75861
|
+
0,
|
|
75862
|
+
0,
|
|
75863
|
+
0,
|
|
75864
|
+
0,
|
|
75865
|
+
0,
|
|
75866
|
+
0,
|
|
75867
|
+
0,
|
|
75868
|
+
0,
|
|
75869
|
+
0,
|
|
75870
|
+
0,
|
|
75871
|
+
0,
|
|
75872
|
+
0,
|
|
75873
|
+
0,
|
|
75874
|
+
0,
|
|
75875
|
+
0,
|
|
75876
|
+
0,
|
|
75877
|
+
0,
|
|
75878
|
+
0,
|
|
75879
|
+
0,
|
|
75880
|
+
0,
|
|
75881
|
+
0,
|
|
75882
|
+
0,
|
|
75883
|
+
0,
|
|
75884
|
+
0,
|
|
75885
|
+
0,
|
|
75886
|
+
0,
|
|
75887
|
+
0,
|
|
75888
|
+
0,
|
|
75889
|
+
0,
|
|
75890
|
+
0,
|
|
75891
|
+
0,
|
|
75892
|
+
1,
|
|
75893
|
+
1,
|
|
75894
|
+
1,
|
|
75895
|
+
1,
|
|
75896
|
+
1,
|
|
75897
|
+
1,
|
|
75898
|
+
1,
|
|
75899
|
+
1,
|
|
75900
|
+
1,
|
|
75901
|
+
1,
|
|
75902
|
+
0,
|
|
75903
|
+
0,
|
|
75904
|
+
0,
|
|
75905
|
+
0,
|
|
75906
|
+
0,
|
|
75907
|
+
0,
|
|
75908
|
+
0,
|
|
75909
|
+
1,
|
|
75910
|
+
1,
|
|
75911
|
+
1,
|
|
75912
|
+
1,
|
|
75913
|
+
1,
|
|
75914
|
+
1,
|
|
75915
|
+
0,
|
|
75916
|
+
0,
|
|
75917
|
+
0,
|
|
75918
|
+
0,
|
|
75919
|
+
0,
|
|
75920
|
+
0,
|
|
75921
|
+
0,
|
|
75922
|
+
0,
|
|
75923
|
+
0,
|
|
75924
|
+
0,
|
|
75925
|
+
0,
|
|
75926
|
+
0,
|
|
75927
|
+
0,
|
|
75928
|
+
0,
|
|
75929
|
+
0,
|
|
75930
|
+
0,
|
|
75931
|
+
0,
|
|
75932
|
+
0,
|
|
75933
|
+
0,
|
|
75934
|
+
0,
|
|
75935
|
+
0,
|
|
75936
|
+
0,
|
|
75937
|
+
0,
|
|
75938
|
+
0,
|
|
75939
|
+
0,
|
|
75940
|
+
0,
|
|
75941
|
+
1,
|
|
75942
|
+
1,
|
|
75943
|
+
1,
|
|
75944
|
+
1,
|
|
75945
|
+
1,
|
|
75946
|
+
1
|
|
75947
|
+
]);
|
|
75948
|
+
function isValidHex2(id, length) {
|
|
75949
|
+
if (typeof id !== "string" || id.length !== length) return false;
|
|
75950
|
+
let r = 0;
|
|
75951
|
+
for (let i = 0; i < id.length; i += 4) {
|
|
75952
|
+
r += (isHex2[id.charCodeAt(i)] | 0) + (isHex2[id.charCodeAt(i + 1)] | 0) + (isHex2[id.charCodeAt(i + 2)] | 0) + (isHex2[id.charCodeAt(i + 3)] | 0);
|
|
75953
|
+
}
|
|
75954
|
+
return r === length;
|
|
75955
|
+
}
|
|
75956
|
+
__name(isValidHex2, "isValidHex");
|
|
75957
|
+
__name2(isValidHex2, "isValidHex");
|
|
75825
75958
|
function isValidTraceId2(traceId) {
|
|
75826
|
-
return
|
|
75959
|
+
return isValidHex2(traceId, 32) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
|
|
75827
75960
|
}
|
|
75828
75961
|
__name(isValidTraceId2, "isValidTraceId");
|
|
75829
75962
|
__name2(isValidTraceId2, "isValidTraceId");
|
|
75830
75963
|
exports.isValidTraceId = isValidTraceId2;
|
|
75831
75964
|
function isValidSpanId2(spanId) {
|
|
75832
|
-
return
|
|
75965
|
+
return isValidHex2(spanId, 16) && spanId !== invalid_span_constants_1.INVALID_SPANID;
|
|
75833
75966
|
}
|
|
75834
75967
|
__name(isValidSpanId2, "isValidSpanId");
|
|
75835
75968
|
__name2(isValidSpanId2, "isValidSpanId");
|
|
@@ -75849,7 +75982,7 @@ var require_spancontext_utils = __commonJS2({
|
|
|
75849
75982
|
}
|
|
75850
75983
|
});
|
|
75851
75984
|
var require_NoopTracer = __commonJS2({
|
|
75852
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
75985
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js"(exports) {
|
|
75853
75986
|
"use strict";
|
|
75854
75987
|
Object.defineProperty(exports, "__esModule", {
|
|
75855
75988
|
value: true
|
|
@@ -75904,14 +76037,14 @@ var require_NoopTracer = __commonJS2({
|
|
|
75904
76037
|
};
|
|
75905
76038
|
exports.NoopTracer = NoopTracer2;
|
|
75906
76039
|
function isSpanContext2(spanContext) {
|
|
75907
|
-
return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number";
|
|
76040
|
+
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";
|
|
75908
76041
|
}
|
|
75909
76042
|
__name(isSpanContext2, "isSpanContext");
|
|
75910
76043
|
__name2(isSpanContext2, "isSpanContext");
|
|
75911
76044
|
}
|
|
75912
76045
|
});
|
|
75913
76046
|
var require_ProxyTracer = __commonJS2({
|
|
75914
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76047
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js"(exports) {
|
|
75915
76048
|
"use strict";
|
|
75916
76049
|
Object.defineProperty(exports, "__esModule", {
|
|
75917
76050
|
value: true
|
|
@@ -75926,8 +76059,8 @@ var require_ProxyTracer = __commonJS2({
|
|
|
75926
76059
|
static {
|
|
75927
76060
|
__name2(this, "ProxyTracer");
|
|
75928
76061
|
}
|
|
75929
|
-
constructor(
|
|
75930
|
-
this._provider =
|
|
76062
|
+
constructor(provider, name, version32, options) {
|
|
76063
|
+
this._provider = provider;
|
|
75931
76064
|
this.name = name;
|
|
75932
76065
|
this.version = version32;
|
|
75933
76066
|
this.options = options;
|
|
@@ -75959,7 +76092,7 @@ var require_ProxyTracer = __commonJS2({
|
|
|
75959
76092
|
}
|
|
75960
76093
|
});
|
|
75961
76094
|
var require_NoopTracerProvider = __commonJS2({
|
|
75962
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76095
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js"(exports) {
|
|
75963
76096
|
"use strict";
|
|
75964
76097
|
Object.defineProperty(exports, "__esModule", {
|
|
75965
76098
|
value: true
|
|
@@ -75981,7 +76114,7 @@ var require_NoopTracerProvider = __commonJS2({
|
|
|
75981
76114
|
}
|
|
75982
76115
|
});
|
|
75983
76116
|
var require_ProxyTracerProvider = __commonJS2({
|
|
75984
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76117
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js"(exports) {
|
|
75985
76118
|
"use strict";
|
|
75986
76119
|
Object.defineProperty(exports, "__esModule", {
|
|
75987
76120
|
value: true
|
|
@@ -76023,7 +76156,7 @@ var require_ProxyTracerProvider = __commonJS2({
|
|
|
76023
76156
|
}
|
|
76024
76157
|
});
|
|
76025
76158
|
var require_SamplingResult = __commonJS2({
|
|
76026
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76159
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js"(exports) {
|
|
76027
76160
|
"use strict";
|
|
76028
76161
|
Object.defineProperty(exports, "__esModule", {
|
|
76029
76162
|
value: true
|
|
@@ -76038,7 +76171,7 @@ var require_SamplingResult = __commonJS2({
|
|
|
76038
76171
|
}
|
|
76039
76172
|
});
|
|
76040
76173
|
var require_span_kind = __commonJS2({
|
|
76041
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76174
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/span_kind.js"(exports) {
|
|
76042
76175
|
"use strict";
|
|
76043
76176
|
Object.defineProperty(exports, "__esModule", {
|
|
76044
76177
|
value: true
|
|
@@ -76055,7 +76188,7 @@ var require_span_kind = __commonJS2({
|
|
|
76055
76188
|
}
|
|
76056
76189
|
});
|
|
76057
76190
|
var require_status = __commonJS2({
|
|
76058
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76191
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/status.js"(exports) {
|
|
76059
76192
|
"use strict";
|
|
76060
76193
|
Object.defineProperty(exports, "__esModule", {
|
|
76061
76194
|
value: true
|
|
@@ -76070,7 +76203,7 @@ var require_status = __commonJS2({
|
|
|
76070
76203
|
}
|
|
76071
76204
|
});
|
|
76072
76205
|
var require_tracestate_validators = __commonJS2({
|
|
76073
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76206
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js"(exports) {
|
|
76074
76207
|
"use strict";
|
|
76075
76208
|
Object.defineProperty(exports, "__esModule", {
|
|
76076
76209
|
value: true
|
|
@@ -76097,7 +76230,7 @@ var require_tracestate_validators = __commonJS2({
|
|
|
76097
76230
|
}
|
|
76098
76231
|
});
|
|
76099
76232
|
var require_tracestate_impl = __commonJS2({
|
|
76100
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76233
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js"(exports) {
|
|
76101
76234
|
"use strict";
|
|
76102
76235
|
Object.defineProperty(exports, "__esModule", {
|
|
76103
76236
|
value: true
|
|
@@ -76136,14 +76269,14 @@ var require_tracestate_impl = __commonJS2({
|
|
|
76136
76269
|
return this._internalState.get(key);
|
|
76137
76270
|
}
|
|
76138
76271
|
serialize() {
|
|
76139
|
-
return this.
|
|
76272
|
+
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
76140
76273
|
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER2 + this.get(key));
|
|
76141
76274
|
return agg;
|
|
76142
76275
|
}, []).join(LIST_MEMBERS_SEPARATOR2);
|
|
76143
76276
|
}
|
|
76144
76277
|
_parse(rawTraceState) {
|
|
76145
76278
|
if (rawTraceState.length > MAX_TRACE_STATE_LEN2) return;
|
|
76146
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR2).
|
|
76279
|
+
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR2).reduceRight((agg, part) => {
|
|
76147
76280
|
const listMember = part.trim();
|
|
76148
76281
|
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER2);
|
|
76149
76282
|
if (i !== -1) {
|
|
@@ -76160,6 +76293,7 @@ var require_tracestate_impl = __commonJS2({
|
|
|
76160
76293
|
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS2));
|
|
76161
76294
|
}
|
|
76162
76295
|
}
|
|
76296
|
+
// @ts-expect-error TS6133 Accessed in tests only.
|
|
76163
76297
|
_keys() {
|
|
76164
76298
|
return Array.from(this._internalState.keys()).reverse();
|
|
76165
76299
|
}
|
|
@@ -76173,7 +76307,7 @@ var require_tracestate_impl = __commonJS2({
|
|
|
76173
76307
|
}
|
|
76174
76308
|
});
|
|
76175
76309
|
var require_utils2 = __commonJS2({
|
|
76176
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76310
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js"(exports) {
|
|
76177
76311
|
"use strict";
|
|
76178
76312
|
Object.defineProperty(exports, "__esModule", {
|
|
76179
76313
|
value: true
|
|
@@ -76189,7 +76323,7 @@ var require_utils2 = __commonJS2({
|
|
|
76189
76323
|
}
|
|
76190
76324
|
});
|
|
76191
76325
|
var require_context_api = __commonJS2({
|
|
76192
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76326
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/context-api.js"(exports) {
|
|
76193
76327
|
"use strict";
|
|
76194
76328
|
Object.defineProperty(exports, "__esModule", {
|
|
76195
76329
|
value: true
|
|
@@ -76200,7 +76334,7 @@ var require_context_api = __commonJS2({
|
|
|
76200
76334
|
}
|
|
76201
76335
|
});
|
|
76202
76336
|
var require_diag_api = __commonJS2({
|
|
76203
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76337
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/diag-api.js"(exports) {
|
|
76204
76338
|
"use strict";
|
|
76205
76339
|
Object.defineProperty(exports, "__esModule", {
|
|
76206
76340
|
value: true
|
|
@@ -76211,7 +76345,7 @@ var require_diag_api = __commonJS2({
|
|
|
76211
76345
|
}
|
|
76212
76346
|
});
|
|
76213
76347
|
var require_NoopMeterProvider = __commonJS2({
|
|
76214
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76348
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js"(exports) {
|
|
76215
76349
|
"use strict";
|
|
76216
76350
|
Object.defineProperty(exports, "__esModule", {
|
|
76217
76351
|
value: true
|
|
@@ -76234,7 +76368,7 @@ var require_NoopMeterProvider = __commonJS2({
|
|
|
76234
76368
|
}
|
|
76235
76369
|
});
|
|
76236
76370
|
var require_metrics = __commonJS2({
|
|
76237
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76371
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/metrics.js"(exports) {
|
|
76238
76372
|
"use strict";
|
|
76239
76373
|
Object.defineProperty(exports, "__esModule", {
|
|
76240
76374
|
value: true
|
|
@@ -76289,7 +76423,7 @@ var require_metrics = __commonJS2({
|
|
|
76289
76423
|
}
|
|
76290
76424
|
});
|
|
76291
76425
|
var require_metrics_api = __commonJS2({
|
|
76292
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76426
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/metrics-api.js"(exports) {
|
|
76293
76427
|
"use strict";
|
|
76294
76428
|
Object.defineProperty(exports, "__esModule", {
|
|
76295
76429
|
value: true
|
|
@@ -76300,7 +76434,7 @@ var require_metrics_api = __commonJS2({
|
|
|
76300
76434
|
}
|
|
76301
76435
|
});
|
|
76302
76436
|
var require_NoopTextMapPropagator = __commonJS2({
|
|
76303
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76437
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js"(exports) {
|
|
76304
76438
|
"use strict";
|
|
76305
76439
|
Object.defineProperty(exports, "__esModule", {
|
|
76306
76440
|
value: true
|
|
@@ -76328,7 +76462,7 @@ var require_NoopTextMapPropagator = __commonJS2({
|
|
|
76328
76462
|
}
|
|
76329
76463
|
});
|
|
76330
76464
|
var require_context_helpers = __commonJS2({
|
|
76331
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76465
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js"(exports) {
|
|
76332
76466
|
"use strict";
|
|
76333
76467
|
Object.defineProperty(exports, "__esModule", {
|
|
76334
76468
|
value: true
|
|
@@ -76364,7 +76498,7 @@ var require_context_helpers = __commonJS2({
|
|
|
76364
76498
|
}
|
|
76365
76499
|
});
|
|
76366
76500
|
var require_propagation = __commonJS2({
|
|
76367
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76501
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/propagation.js"(exports) {
|
|
76368
76502
|
"use strict";
|
|
76369
76503
|
Object.defineProperty(exports, "__esModule", {
|
|
76370
76504
|
value: true
|
|
@@ -76446,7 +76580,7 @@ var require_propagation = __commonJS2({
|
|
|
76446
76580
|
}
|
|
76447
76581
|
});
|
|
76448
76582
|
var require_propagation_api = __commonJS2({
|
|
76449
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76583
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/propagation-api.js"(exports) {
|
|
76450
76584
|
"use strict";
|
|
76451
76585
|
Object.defineProperty(exports, "__esModule", {
|
|
76452
76586
|
value: true
|
|
@@ -76457,7 +76591,7 @@ var require_propagation_api = __commonJS2({
|
|
|
76457
76591
|
}
|
|
76458
76592
|
});
|
|
76459
76593
|
var require_trace = __commonJS2({
|
|
76460
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76594
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/api/trace.js"(exports) {
|
|
76461
76595
|
"use strict";
|
|
76462
76596
|
Object.defineProperty(exports, "__esModule", {
|
|
76463
76597
|
value: true
|
|
@@ -76529,7 +76663,7 @@ var require_trace = __commonJS2({
|
|
|
76529
76663
|
}
|
|
76530
76664
|
});
|
|
76531
76665
|
var require_trace_api = __commonJS2({
|
|
76532
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76666
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/trace-api.js"(exports) {
|
|
76533
76667
|
"use strict";
|
|
76534
76668
|
Object.defineProperty(exports, "__esModule", {
|
|
76535
76669
|
value: true
|
|
@@ -76540,7 +76674,7 @@ var require_trace_api = __commonJS2({
|
|
|
76540
76674
|
}
|
|
76541
76675
|
});
|
|
76542
76676
|
var require_src = __commonJS2({
|
|
76543
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.
|
|
76677
|
+
"../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/src/index.js"(exports) {
|
|
76544
76678
|
"use strict";
|
|
76545
76679
|
Object.defineProperty(exports, "__esModule", {
|
|
76546
76680
|
value: true
|
|
@@ -76752,6 +76886,29 @@ async function deserializeTraceCarrier(traceCarrier) {
|
|
|
76752
76886
|
return otel.propagation.extract(otel.context.active(), traceCarrier);
|
|
76753
76887
|
}
|
|
76754
76888
|
__name(deserializeTraceCarrier, "deserializeTraceCarrier");
|
|
76889
|
+
function logOtelDiagnosticOnce(otel, tracer) {
|
|
76890
|
+
const debugEnabled = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
|
|
76891
|
+
if (otelDiagLogged || !debugEnabled) return;
|
|
76892
|
+
otelDiagLogged = true;
|
|
76893
|
+
try {
|
|
76894
|
+
const g = globalThis[/* @__PURE__ */ Symbol.for("opentelemetry.js.api.1")];
|
|
76895
|
+
const provider = otel.trace.getTracerProvider();
|
|
76896
|
+
const delegate = provider.getDelegate?.() ?? provider;
|
|
76897
|
+
const probe = tracer.startSpan("workflow.otel.probe.core");
|
|
76898
|
+
console.warn("[workflow:otel-diag] core", JSON.stringify({
|
|
76899
|
+
globalRegistrationVersion: g?.version ?? null,
|
|
76900
|
+
providerCtor: provider?.constructor?.name ?? null,
|
|
76901
|
+
delegateCtor: delegate?.constructor?.name ?? null,
|
|
76902
|
+
tracerCtor: tracer?.constructor?.name ?? null,
|
|
76903
|
+
probeCtor: probe?.constructor?.name ?? null,
|
|
76904
|
+
probeRecording: probe.isRecording()
|
|
76905
|
+
}));
|
|
76906
|
+
probe.end();
|
|
76907
|
+
} catch (error482) {
|
|
76908
|
+
console.warn("[workflow:otel-diag] core failed:", error482 instanceof Error ? error482.message : error482);
|
|
76909
|
+
}
|
|
76910
|
+
}
|
|
76911
|
+
__name(logOtelDiagnosticOnce, "logOtelDiagnosticOnce");
|
|
76755
76912
|
async function trace(spanName, ...args) {
|
|
76756
76913
|
const [tracer, otel] = await Promise.all([
|
|
76757
76914
|
Tracer.value,
|
|
@@ -76850,6 +77007,7 @@ async function linkToTraceCarrier(carrier) {
|
|
|
76850
77007
|
__name(linkToTraceCarrier, "linkToTraceCarrier");
|
|
76851
77008
|
var OtelApi;
|
|
76852
77009
|
var Tracer;
|
|
77010
|
+
var otelDiagLogged;
|
|
76853
77011
|
var init_telemetry = __esm2({
|
|
76854
77012
|
"../core/dist/telemetry.js"() {
|
|
76855
77013
|
"use strict";
|
|
@@ -76870,8 +77028,12 @@ var init_telemetry = __esm2({
|
|
|
76870
77028
|
Tracer = once(async () => {
|
|
76871
77029
|
const api = await OtelApi.value;
|
|
76872
77030
|
if (!api) return null;
|
|
76873
|
-
|
|
77031
|
+
const tracer = api.trace.getTracer("workflow");
|
|
77032
|
+
logOtelDiagnosticOnce(api, tracer);
|
|
77033
|
+
return tracer;
|
|
76874
77034
|
});
|
|
77035
|
+
otelDiagLogged = false;
|
|
77036
|
+
__name2(logOtelDiagnosticOnce, "logOtelDiagnosticOnce");
|
|
76875
77037
|
__name2(trace, "trace");
|
|
76876
77038
|
__name2(recordElapsedSpan, "recordElapsedSpan");
|
|
76877
77039
|
__name2(applyWorkflowSuspensionToSpan, "applyWorkflowSuspensionToSpan");
|
|
@@ -79185,7 +79347,7 @@ var version2;
|
|
|
79185
79347
|
var init_version = __esm2({
|
|
79186
79348
|
"../core/dist/version.js"() {
|
|
79187
79349
|
"use strict";
|
|
79188
|
-
version2 = "5.0.0-beta.
|
|
79350
|
+
version2 = "5.0.0-beta.34";
|
|
79189
79351
|
}
|
|
79190
79352
|
});
|
|
79191
79353
|
function getWorkflowQueueName(workflowName, namespace) {
|
|
@@ -80925,7 +81087,7 @@ function getByteUnframingStream() {
|
|
|
80925
81087
|
});
|
|
80926
81088
|
}
|
|
80927
81089
|
__name(getByteUnframingStream, "getByteUnframingStream");
|
|
80928
|
-
function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex) {
|
|
81090
|
+
function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex, connectMs) {
|
|
80929
81091
|
void (async () => {
|
|
80930
81092
|
await recordElapsedSpan("workflow.stream.read", startEpochMs, {
|
|
80931
81093
|
kind: await getSpanKind("CLIENT"),
|
|
@@ -80934,6 +81096,9 @@ function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex) {
|
|
|
80934
81096
|
"workflow.stream.name": name,
|
|
80935
81097
|
"workflow.stream.operation": "read",
|
|
80936
81098
|
"workflow.stream.read.ttfc_ms": Date.now() - startEpochMs,
|
|
81099
|
+
...typeof connectMs === "number" ? {
|
|
81100
|
+
"workflow.stream.read.connect_ms": connectMs
|
|
81101
|
+
} : {},
|
|
80937
81102
|
...typeof startIndex === "number" ? {
|
|
80938
81103
|
"workflow.stream.start_index": startIndex
|
|
80939
81104
|
} : {}
|
|
@@ -80942,6 +81107,25 @@ function recordReadTimeToFirstChunk(startEpochMs, runId, name, startIndex) {
|
|
|
80942
81107
|
})();
|
|
80943
81108
|
}
|
|
80944
81109
|
__name(recordReadTimeToFirstChunk, "recordReadTimeToFirstChunk");
|
|
81110
|
+
function recordStreamReadComplete(startEpochMs, runId, name, chunkCount, byteCount, reconnects) {
|
|
81111
|
+
void (async () => {
|
|
81112
|
+
await recordElapsedSpan("workflow.stream.read.complete", startEpochMs, {
|
|
81113
|
+
kind: await getSpanKind("CLIENT"),
|
|
81114
|
+
attributes: {
|
|
81115
|
+
"workflow.run.id": runId,
|
|
81116
|
+
"workflow.stream.name": name,
|
|
81117
|
+
"workflow.stream.operation": "read_complete",
|
|
81118
|
+
"workflow.stream.read.total_ms": Date.now() - startEpochMs,
|
|
81119
|
+
"workflow.stream.read.chunks": chunkCount,
|
|
81120
|
+
"workflow.stream.read.bytes": byteCount,
|
|
81121
|
+
...typeof reconnects === "number" ? {
|
|
81122
|
+
"workflow.stream.read.reconnects": reconnects
|
|
81123
|
+
} : {}
|
|
81124
|
+
}
|
|
81125
|
+
});
|
|
81126
|
+
})();
|
|
81127
|
+
}
|
|
81128
|
+
__name(recordStreamReadComplete, "recordStreamReadComplete");
|
|
80945
81129
|
function createReconnectingFramedStream(runId, name, startIndex) {
|
|
80946
81130
|
const reconnectSupported = startIndex === void 0 || startIndex >= 0;
|
|
80947
81131
|
let currentStartIndex = startIndex ?? 0;
|
|
@@ -80950,10 +81134,17 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
80950
81134
|
let totalReconnectCount = 0;
|
|
80951
81135
|
let reader;
|
|
80952
81136
|
let buffer22 = new Uint8Array(0);
|
|
81137
|
+
let readStart;
|
|
81138
|
+
let connectMs;
|
|
81139
|
+
let firstChunkReported = false;
|
|
81140
|
+
let chunksDelivered = 0;
|
|
81141
|
+
let bytesDelivered = 0;
|
|
80953
81142
|
async function connect() {
|
|
80954
81143
|
const world = await getWorldLazy();
|
|
80955
81144
|
const effectiveStartIndex = reconnectSupported ? currentStartIndex + consumedFrames : startIndex;
|
|
81145
|
+
const connectStart = Date.now();
|
|
80956
81146
|
const stream = await world.streams.get(runId, name, effectiveStartIndex);
|
|
81147
|
+
if (connectMs === void 0) connectMs = Date.now() - connectStart;
|
|
80957
81148
|
reader = stream.getReader();
|
|
80958
81149
|
}
|
|
80959
81150
|
__name(connect, "connect");
|
|
@@ -80989,6 +81180,7 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
80989
81180
|
__name2(reconnect, "reconnect");
|
|
80990
81181
|
return new ReadableStream({
|
|
80991
81182
|
pull: /* @__PURE__ */ __name2(async (controller) => {
|
|
81183
|
+
if (readStart === void 0) readStart = Date.now();
|
|
80992
81184
|
for (; ; ) {
|
|
80993
81185
|
if (!reader) {
|
|
80994
81186
|
try {
|
|
@@ -81016,6 +81208,9 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
81016
81208
|
}
|
|
81017
81209
|
if (result.done || !result.value) {
|
|
81018
81210
|
reader = void 0;
|
|
81211
|
+
if (readStart !== void 0) {
|
|
81212
|
+
recordStreamReadComplete(readStart, runId, name, chunksDelivered, bytesDelivered, totalReconnectCount);
|
|
81213
|
+
}
|
|
81019
81214
|
controller.close();
|
|
81020
81215
|
return;
|
|
81021
81216
|
}
|
|
@@ -81034,6 +81229,12 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
81034
81229
|
controller.enqueue(buffer22.slice(0, total));
|
|
81035
81230
|
buffer22 = buffer22.slice(total);
|
|
81036
81231
|
consumedFrames++;
|
|
81232
|
+
chunksDelivered++;
|
|
81233
|
+
bytesDelivered += total;
|
|
81234
|
+
if (!firstChunkReported && readStart !== void 0) {
|
|
81235
|
+
firstChunkReported = true;
|
|
81236
|
+
recordReadTimeToFirstChunk(readStart, runId, name, startIndex, connectMs);
|
|
81237
|
+
}
|
|
81037
81238
|
emitted = true;
|
|
81038
81239
|
}
|
|
81039
81240
|
if (emitted) {
|
|
@@ -81053,7 +81254,7 @@ function createReconnectingFramedStream(runId, name, startIndex) {
|
|
|
81053
81254
|
});
|
|
81054
81255
|
}
|
|
81055
81256
|
__name(createReconnectingFramedStream, "createReconnectingFramedStream");
|
|
81056
|
-
function recordStreamWriteFlush(startEpochMs, dispatchEpochMs, runId, name, chunkCount, byteCount) {
|
|
81257
|
+
function recordStreamWriteFlush(startEpochMs, dispatchEpochMs, runId, name, chunkCount, byteCount, rpcMs) {
|
|
81057
81258
|
void (async () => {
|
|
81058
81259
|
await recordElapsedSpan("workflow.stream.flush", startEpochMs, {
|
|
81059
81260
|
kind: await getSpanKind("CLIENT"),
|
|
@@ -81063,12 +81264,30 @@ function recordStreamWriteFlush(startEpochMs, dispatchEpochMs, runId, name, chun
|
|
|
81063
81264
|
"workflow.stream.operation": "flush",
|
|
81064
81265
|
"workflow.stream.flush.buffer_dwell_ms": dispatchEpochMs - startEpochMs,
|
|
81065
81266
|
"workflow.stream.flush.chunks": chunkCount,
|
|
81066
|
-
"workflow.stream.flush.bytes": byteCount
|
|
81267
|
+
"workflow.stream.flush.bytes": byteCount,
|
|
81268
|
+
// Client-observed World write RPC duration (network hop included).
|
|
81269
|
+
// Same key as world-vercel's per-request span attribute so queries
|
|
81270
|
+
// work regardless of which layer emitted it.
|
|
81271
|
+
"workflow.stream.write.chunk_rtt": rpcMs
|
|
81067
81272
|
}
|
|
81068
81273
|
});
|
|
81069
81274
|
})();
|
|
81070
81275
|
}
|
|
81071
81276
|
__name(recordStreamWriteFlush, "recordStreamWriteFlush");
|
|
81277
|
+
function recordStreamClose(startEpochMs, runId, name) {
|
|
81278
|
+
void (async () => {
|
|
81279
|
+
await recordElapsedSpan("workflow.stream.close", startEpochMs, {
|
|
81280
|
+
kind: await getSpanKind("CLIENT"),
|
|
81281
|
+
attributes: {
|
|
81282
|
+
"workflow.run.id": runId,
|
|
81283
|
+
"workflow.stream.name": name,
|
|
81284
|
+
"workflow.stream.operation": "close",
|
|
81285
|
+
"workflow.stream.close.rpc_ms": Date.now() - startEpochMs
|
|
81286
|
+
}
|
|
81287
|
+
});
|
|
81288
|
+
})();
|
|
81289
|
+
}
|
|
81290
|
+
__name(recordStreamClose, "recordStreamClose");
|
|
81072
81291
|
function getAllBaseReducers(global2 = globalThis) {
|
|
81073
81292
|
return {
|
|
81074
81293
|
...getClassReducers(),
|
|
@@ -81969,6 +82188,7 @@ var init_serialization2 = __esm2({
|
|
|
81969
82188
|
__name2(getByteFramingStream, "getByteFramingStream");
|
|
81970
82189
|
__name2(getByteUnframingStream, "getByteUnframingStream");
|
|
81971
82190
|
__name2(recordReadTimeToFirstChunk, "recordReadTimeToFirstChunk");
|
|
82191
|
+
__name2(recordStreamReadComplete, "recordStreamReadComplete");
|
|
81972
82192
|
WorkflowServerReadableStream = class extends ReadableStream {
|
|
81973
82193
|
static {
|
|
81974
82194
|
__name(this, "WorkflowServerReadableStream");
|
|
@@ -81983,6 +82203,9 @@ var init_serialization2 = __esm2({
|
|
|
81983
82203
|
}
|
|
81984
82204
|
let readStart;
|
|
81985
82205
|
let firstChunkReported = false;
|
|
82206
|
+
let connectMs;
|
|
82207
|
+
let chunksDelivered = 0;
|
|
82208
|
+
let bytesDelivered = 0;
|
|
81986
82209
|
super({
|
|
81987
82210
|
// @ts-expect-error Not sure why TypeScript is complaining about this
|
|
81988
82211
|
type: "bytes",
|
|
@@ -81991,7 +82214,9 @@ var init_serialization2 = __esm2({
|
|
|
81991
82214
|
if (!reader) {
|
|
81992
82215
|
if (readStart === void 0) readStart = Date.now();
|
|
81993
82216
|
const world = await getWorldLazy();
|
|
82217
|
+
const connectStart = Date.now();
|
|
81994
82218
|
const stream = await world.streams.get(runId, name, startIndex);
|
|
82219
|
+
connectMs = Date.now() - connectStart;
|
|
81995
82220
|
reader = this.#reader = stream.getReader();
|
|
81996
82221
|
}
|
|
81997
82222
|
if (!reader) {
|
|
@@ -82001,12 +82226,17 @@ var init_serialization2 = __esm2({
|
|
|
82001
82226
|
const result = await reader.read();
|
|
82002
82227
|
if (result.done) {
|
|
82003
82228
|
this.#reader = void 0;
|
|
82229
|
+
if (readStart !== void 0) {
|
|
82230
|
+
recordStreamReadComplete(readStart, runId, name, chunksDelivered, bytesDelivered);
|
|
82231
|
+
}
|
|
82004
82232
|
controller.close();
|
|
82005
82233
|
} else {
|
|
82006
82234
|
if (!firstChunkReported && result.value.byteLength > 0 && readStart !== void 0) {
|
|
82007
82235
|
firstChunkReported = true;
|
|
82008
|
-
recordReadTimeToFirstChunk(readStart, runId, name, startIndex);
|
|
82236
|
+
recordReadTimeToFirstChunk(readStart, runId, name, startIndex, connectMs);
|
|
82009
82237
|
}
|
|
82238
|
+
chunksDelivered += 1;
|
|
82239
|
+
bytesDelivered += result.value.byteLength;
|
|
82010
82240
|
controller.enqueue(result.value);
|
|
82011
82241
|
}
|
|
82012
82242
|
}, "pull"),
|
|
@@ -82036,6 +82266,7 @@ var init_serialization2 = __esm2({
|
|
|
82036
82266
|
integer: true
|
|
82037
82267
|
}), "getStreamFlushIntervalMs");
|
|
82038
82268
|
__name2(recordStreamWriteFlush, "recordStreamWriteFlush");
|
|
82269
|
+
__name2(recordStreamClose, "recordStreamClose");
|
|
82039
82270
|
WorkflowServerWritableStream = class extends WritableStream {
|
|
82040
82271
|
static {
|
|
82041
82272
|
__name(this, "WorkflowServerWritableStream");
|
|
@@ -82090,6 +82321,7 @@ var init_serialization2 = __esm2({
|
|
|
82090
82321
|
if (resolvedFlushIntervalMs === void 0) {
|
|
82091
82322
|
resolvedFlushIntervalMs = world.streamFlushIntervalMs ?? getStreamFlushIntervalMs();
|
|
82092
82323
|
}
|
|
82324
|
+
const rpcStartAt = Date.now();
|
|
82093
82325
|
try {
|
|
82094
82326
|
if (typeof world.streams.writeMulti === "function" && chunksToFlush.length > 1) {
|
|
82095
82327
|
await world.streams.writeMulti(runId, name, chunksToFlush);
|
|
@@ -82105,7 +82337,7 @@ var init_serialization2 = __esm2({
|
|
|
82105
82337
|
throw error482;
|
|
82106
82338
|
}
|
|
82107
82339
|
if (batchStart !== void 0) {
|
|
82108
|
-
recordStreamWriteFlush(batchStart, dispatchAt, runId, name, chunksToFlush.length, chunksToFlush.reduce((sum, c) => sum + c.byteLength, 0));
|
|
82340
|
+
recordStreamWriteFlush(batchStart, dispatchAt, runId, name, chunksToFlush.length, chunksToFlush.reduce((sum, c) => sum + c.byteLength, 0), Date.now() - rpcStartAt);
|
|
82109
82341
|
}
|
|
82110
82342
|
buffer22 = [];
|
|
82111
82343
|
}, "flush");
|
|
@@ -82147,7 +82379,9 @@ var init_serialization2 = __esm2({
|
|
|
82147
82379
|
await flush();
|
|
82148
82380
|
await ensureRunReady();
|
|
82149
82381
|
const world = await worldPromise;
|
|
82382
|
+
const closeStart = Date.now();
|
|
82150
82383
|
await world.streams.close(runId, name);
|
|
82384
|
+
recordStreamClose(closeStart, runId, name);
|
|
82151
82385
|
},
|
|
82152
82386
|
abort(reason) {
|
|
82153
82387
|
if (flushTimer) {
|
|
@@ -82585,7 +82819,7 @@ __name2(start, "start");
|
|
|
82585
82819
|
value: "start",
|
|
82586
82820
|
configurable: true
|
|
82587
82821
|
});
|
|
82588
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
82822
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.34//start");
|
|
82589
82823
|
async function wakeUpRun(world, runId, options) {
|
|
82590
82824
|
try {
|
|
82591
82825
|
const run22 = await world.runs.get(runId, {
|
|
@@ -82921,7 +83155,7 @@ var Run = class _Run {
|
|
|
82921
83155
|
value: "wakeUp",
|
|
82922
83156
|
configurable: true
|
|
82923
83157
|
});
|
|
82924
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83158
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#wakeUp");
|
|
82925
83159
|
(function(__wf_fn, __wf_id) {
|
|
82926
83160
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82927
83161
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82930,7 +83164,7 @@ var Run = class _Run {
|
|
|
82930
83164
|
value: "cancel",
|
|
82931
83165
|
configurable: true
|
|
82932
83166
|
});
|
|
82933
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83167
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#cancel");
|
|
82934
83168
|
(function(__wf_fn, __wf_id) {
|
|
82935
83169
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82936
83170
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82939,7 +83173,7 @@ var Run = class _Run {
|
|
|
82939
83173
|
value: "getReadable",
|
|
82940
83174
|
configurable: true
|
|
82941
83175
|
});
|
|
82942
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83176
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#getReadable");
|
|
82943
83177
|
(function(__wf_fn, __wf_id) {
|
|
82944
83178
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82945
83179
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82948,7 +83182,7 @@ var Run = class _Run {
|
|
|
82948
83182
|
value: "exists",
|
|
82949
83183
|
configurable: true
|
|
82950
83184
|
});
|
|
82951
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83185
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#exists");
|
|
82952
83186
|
(function(__wf_fn, __wf_id) {
|
|
82953
83187
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82954
83188
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82957,7 +83191,7 @@ var Run = class _Run {
|
|
|
82957
83191
|
value: "status",
|
|
82958
83192
|
configurable: true
|
|
82959
83193
|
});
|
|
82960
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83194
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#status");
|
|
82961
83195
|
(function(__wf_fn, __wf_id) {
|
|
82962
83196
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82963
83197
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82966,7 +83200,7 @@ var Run = class _Run {
|
|
|
82966
83200
|
value: "returnValue",
|
|
82967
83201
|
configurable: true
|
|
82968
83202
|
});
|
|
82969
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83203
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#returnValue");
|
|
82970
83204
|
(function(__wf_fn, __wf_id) {
|
|
82971
83205
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82972
83206
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82975,7 +83209,7 @@ var Run = class _Run {
|
|
|
82975
83209
|
value: "workflowName",
|
|
82976
83210
|
configurable: true
|
|
82977
83211
|
});
|
|
82978
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83212
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#workflowName");
|
|
82979
83213
|
(function(__wf_fn, __wf_id) {
|
|
82980
83214
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82981
83215
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82984,7 +83218,7 @@ var Run = class _Run {
|
|
|
82984
83218
|
value: "createdAt",
|
|
82985
83219
|
configurable: true
|
|
82986
83220
|
});
|
|
82987
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83221
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#createdAt");
|
|
82988
83222
|
(function(__wf_fn, __wf_id) {
|
|
82989
83223
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82990
83224
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -82993,7 +83227,7 @@ var Run = class _Run {
|
|
|
82993
83227
|
value: "startedAt",
|
|
82994
83228
|
configurable: true
|
|
82995
83229
|
});
|
|
82996
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83230
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#startedAt");
|
|
82997
83231
|
(function(__wf_fn, __wf_id) {
|
|
82998
83232
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
82999
83233
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -83002,7 +83236,7 @@ var Run = class _Run {
|
|
|
83002
83236
|
value: "completedAt",
|
|
83003
83237
|
configurable: true
|
|
83004
83238
|
});
|
|
83005
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83239
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#completedAt");
|
|
83006
83240
|
(function(__wf_cls, __wf_id) {
|
|
83007
83241
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
83008
83242
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -83012,7 +83246,7 @@ var Run = class _Run {
|
|
|
83012
83246
|
enumerable: false,
|
|
83013
83247
|
configurable: false
|
|
83014
83248
|
});
|
|
83015
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
83249
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.34//Run");
|
|
83016
83250
|
async function fetch2(...args) {
|
|
83017
83251
|
return globalThis.fetch(...args);
|
|
83018
83252
|
}
|
|
@@ -93427,10 +93661,10 @@ var Run = class _Run {
|
|
|
93427
93661
|
return this.getReadable();
|
|
93428
93662
|
}
|
|
93429
93663
|
};
|
|
93430
|
-
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93431
|
-
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93432
|
-
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93433
|
-
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93664
|
+
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#wakeUp");
|
|
93665
|
+
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#cancel");
|
|
93666
|
+
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#getReadable");
|
|
93667
|
+
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#exists");
|
|
93434
93668
|
Object.defineProperty(Run.prototype, "exists", {
|
|
93435
93669
|
get() {
|
|
93436
93670
|
return __step_Run$exists.call(this);
|
|
@@ -93438,7 +93672,7 @@ Object.defineProperty(Run.prototype, "exists", {
|
|
|
93438
93672
|
configurable: true,
|
|
93439
93673
|
enumerable: false
|
|
93440
93674
|
});
|
|
93441
|
-
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93675
|
+
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#status");
|
|
93442
93676
|
Object.defineProperty(Run.prototype, "status", {
|
|
93443
93677
|
get() {
|
|
93444
93678
|
return __step_Run$status.call(this);
|
|
@@ -93446,7 +93680,7 @@ Object.defineProperty(Run.prototype, "status", {
|
|
|
93446
93680
|
configurable: true,
|
|
93447
93681
|
enumerable: false
|
|
93448
93682
|
});
|
|
93449
|
-
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93683
|
+
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#returnValue");
|
|
93450
93684
|
Object.defineProperty(Run.prototype, "returnValue", {
|
|
93451
93685
|
get() {
|
|
93452
93686
|
return __step_Run$returnValue.call(this);
|
|
@@ -93454,7 +93688,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
|
|
|
93454
93688
|
configurable: true,
|
|
93455
93689
|
enumerable: false
|
|
93456
93690
|
});
|
|
93457
|
-
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93691
|
+
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#workflowName");
|
|
93458
93692
|
Object.defineProperty(Run.prototype, "workflowName", {
|
|
93459
93693
|
get() {
|
|
93460
93694
|
return __step_Run$workflowName.call(this);
|
|
@@ -93462,7 +93696,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
|
|
|
93462
93696
|
configurable: true,
|
|
93463
93697
|
enumerable: false
|
|
93464
93698
|
});
|
|
93465
|
-
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93699
|
+
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#createdAt");
|
|
93466
93700
|
Object.defineProperty(Run.prototype, "createdAt", {
|
|
93467
93701
|
get() {
|
|
93468
93702
|
return __step_Run$createdAt.call(this);
|
|
@@ -93470,7 +93704,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
|
|
|
93470
93704
|
configurable: true,
|
|
93471
93705
|
enumerable: false
|
|
93472
93706
|
});
|
|
93473
|
-
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93707
|
+
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#startedAt");
|
|
93474
93708
|
Object.defineProperty(Run.prototype, "startedAt", {
|
|
93475
93709
|
get() {
|
|
93476
93710
|
return __step_Run$startedAt.call(this);
|
|
@@ -93478,7 +93712,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
|
|
|
93478
93712
|
configurable: true,
|
|
93479
93713
|
enumerable: false
|
|
93480
93714
|
});
|
|
93481
|
-
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93715
|
+
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.34//Run#completedAt");
|
|
93482
93716
|
Object.defineProperty(Run.prototype, "completedAt", {
|
|
93483
93717
|
get() {
|
|
93484
93718
|
return __step_Run$completedAt.call(this);
|
|
@@ -93495,7 +93729,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
|
|
|
93495
93729
|
enumerable: false,
|
|
93496
93730
|
configurable: false
|
|
93497
93731
|
});
|
|
93498
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
93732
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.34//Run");
|
|
93499
93733
|
|
|
93500
93734
|
// ../core/dist/workflow/create-hook.js
|
|
93501
93735
|
aliasSerializationClass(RUN_CLASS_ID, Run);
|