@sentio/runtime 4.2.1 → 4.2.2-rc.1

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.
Files changed (32) hide show
  1. package/dist/esm-CSGQo6hb.js +1773 -0
  2. package/dist/{esm-Ajeyb2yg.js.map → esm-CSGQo6hb.js.map} +1 -1
  3. package/dist/execAsync-DiFDE921.js +14 -0
  4. package/dist/{execAsync-Cu4Uyhzv.js.map → execAsync-DiFDE921.js.map} +1 -1
  5. package/dist/getMachineId-bsd-57c_YWfQ.js +30 -0
  6. package/dist/{getMachineId-bsd-DMCgGTrk.js.map → getMachineId-bsd-57c_YWfQ.js.map} +1 -1
  7. package/dist/getMachineId-darwin-dyf00K_U.js +27 -0
  8. package/dist/{getMachineId-darwin-Dy0upv7d.js.map → getMachineId-darwin-dyf00K_U.js.map} +1 -1
  9. package/dist/getMachineId-linux-p9niCx07.js +23 -0
  10. package/dist/{getMachineId-linux-1gt-JynE.js.map → getMachineId-linux-p9niCx07.js.map} +1 -1
  11. package/dist/getMachineId-unsupported-hKbFGxhH.js +18 -0
  12. package/dist/{getMachineId-unsupported-aqcKyF65.js.map → getMachineId-unsupported-hKbFGxhH.js.map} +1 -1
  13. package/dist/getMachineId-win-Bn6Q0xbV.js +29 -0
  14. package/dist/{getMachineId-win-BOJrF7mQ.js.map → getMachineId-win-Bn6Q0xbV.js.map} +1 -1
  15. package/dist/index.js +67 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/plugin-CteRSWq4.js +6925 -0
  18. package/dist/{plugin-BZBEYadJ.js.map → plugin-CteRSWq4.js.map} +1 -1
  19. package/dist/processor-runner.js +57665 -134
  20. package/dist/processor-runner.js.map +1 -1
  21. package/dist/service-v3-fWCR8MDp.js +12230 -0
  22. package/dist/{service-v3-3iFcydRx.js.map → service-v3-fWCR8MDp.js.map} +1 -1
  23. package/package.json +1 -1
  24. package/dist/esm-Ajeyb2yg.js +0 -2
  25. package/dist/execAsync-Cu4Uyhzv.js +0 -2
  26. package/dist/getMachineId-bsd-DMCgGTrk.js +0 -2
  27. package/dist/getMachineId-darwin-Dy0upv7d.js +0 -3
  28. package/dist/getMachineId-linux-1gt-JynE.js +0 -2
  29. package/dist/getMachineId-unsupported-aqcKyF65.js +0 -2
  30. package/dist/getMachineId-win-BOJrF7mQ.js +0 -2
  31. package/dist/plugin-BZBEYadJ.js +0 -3
  32. package/dist/service-v3-3iFcydRx.js +0 -11
@@ -0,0 +1,1773 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region \0rolldown/runtime.js
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __esmMin = (fn, res, err) => () => {
11
+ if (err) throw err[0];
12
+ try {
13
+ return fn && (res = fn(fn = 0)), res;
14
+ } catch (e) {
15
+ throw err = [e], e;
16
+ }
17
+ };
18
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
19
+ var __exportAll = (all, no_symbols) => {
20
+ let target = {};
21
+ for (var name in all) {
22
+ __defProp(target, name, {
23
+ get: all[name],
24
+ enumerable: true
25
+ });
26
+ }
27
+ if (!no_symbols) {
28
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
29
+ }
30
+ return target;
31
+ };
32
+ var __copyProps = (to, from, except, desc) => {
33
+ if (from && typeof from === "object" || typeof from === "function") {
34
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
35
+ key = keys[i];
36
+ if (!__hasOwnProp.call(to, key) && key !== except) {
37
+ __defProp(to, key, {
38
+ get: ((k) => from[k]).bind(null, key),
39
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
40
+ });
41
+ }
42
+ }
43
+ }
44
+ return to;
45
+ };
46
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
47
+ value: mod,
48
+ enumerable: true
49
+ }) : target, mod));
50
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
51
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
52
+
53
+ //#endregion
54
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js
55
+ var _globalThis;
56
+ var init_globalThis = __esmMin((() => {
57
+ _globalThis = typeof globalThis === "object" ? globalThis : global;
58
+ }));
59
+
60
+ //#endregion
61
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js
62
+ var init_node = __esmMin((() => {
63
+ init_globalThis();
64
+ }));
65
+
66
+ //#endregion
67
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js
68
+ var init_platform = __esmMin((() => {
69
+ init_node();
70
+ }));
71
+
72
+ //#endregion
73
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/version.js
74
+ var VERSION;
75
+ var init_version = __esmMin((() => {
76
+ VERSION = "1.9.0";
77
+ }));
78
+
79
+ //#endregion
80
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/internal/semver.js
81
+ /**
82
+ * Create a function to test an API version to see if it is compatible with the provided ownVersion.
83
+ *
84
+ * The returned function has the following semantics:
85
+ * - Exact match is always compatible
86
+ * - Major versions must match exactly
87
+ * - 1.x package cannot use global 2.x package
88
+ * - 2.x package cannot use global 1.x package
89
+ * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API
90
+ * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects
91
+ * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3
92
+ * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor
93
+ * - Patch and build tag differences are not considered at this time
94
+ *
95
+ * @param ownVersion version which should be checked against
96
+ */
97
+ function _makeCompatibilityCheck(ownVersion) {
98
+ var acceptedVersions = /* @__PURE__ */ new Set([ownVersion]);
99
+ var rejectedVersions = /* @__PURE__ */ new Set();
100
+ var myVersionMatch = ownVersion.match(re);
101
+ if (!myVersionMatch) return function() {
102
+ return false;
103
+ };
104
+ var ownVersionParsed = {
105
+ major: +myVersionMatch[1],
106
+ minor: +myVersionMatch[2],
107
+ patch: +myVersionMatch[3],
108
+ prerelease: myVersionMatch[4]
109
+ };
110
+ if (ownVersionParsed.prerelease != null) return function isExactmatch(globalVersion) {
111
+ return globalVersion === ownVersion;
112
+ };
113
+ function _reject(v) {
114
+ rejectedVersions.add(v);
115
+ return false;
116
+ }
117
+ function _accept(v) {
118
+ acceptedVersions.add(v);
119
+ return true;
120
+ }
121
+ return function isCompatible(globalVersion) {
122
+ if (acceptedVersions.has(globalVersion)) return true;
123
+ if (rejectedVersions.has(globalVersion)) return false;
124
+ var globalVersionMatch = globalVersion.match(re);
125
+ if (!globalVersionMatch) return _reject(globalVersion);
126
+ var globalVersionParsed = {
127
+ major: +globalVersionMatch[1],
128
+ minor: +globalVersionMatch[2],
129
+ patch: +globalVersionMatch[3],
130
+ prerelease: globalVersionMatch[4]
131
+ };
132
+ if (globalVersionParsed.prerelease != null) return _reject(globalVersion);
133
+ if (ownVersionParsed.major !== globalVersionParsed.major) return _reject(globalVersion);
134
+ if (ownVersionParsed.major === 0) {
135
+ if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) return _accept(globalVersion);
136
+ return _reject(globalVersion);
137
+ }
138
+ if (ownVersionParsed.minor <= globalVersionParsed.minor) return _accept(globalVersion);
139
+ return _reject(globalVersion);
140
+ };
141
+ }
142
+ var re, isCompatible;
143
+ var init_semver = __esmMin((() => {
144
+ init_version();
145
+ re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
146
+ isCompatible = _makeCompatibilityCheck(VERSION);
147
+ }));
148
+
149
+ //#endregion
150
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
151
+ function registerGlobal(type, instance, diag, allowOverride) {
152
+ var _a;
153
+ if (allowOverride === void 0) allowOverride = false;
154
+ var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : { version: VERSION };
155
+ if (!allowOverride && api[type]) {
156
+ var err = /* @__PURE__ */ new Error("@opentelemetry/api: Attempted duplicate registration of API: " + type);
157
+ diag.error(err.stack || err.message);
158
+ return false;
159
+ }
160
+ if (api.version !== "1.9.0") {
161
+ var err = /* @__PURE__ */ new Error("@opentelemetry/api: Registration of version v" + api.version + " for " + type + " does not match previously registered API v" + VERSION);
162
+ diag.error(err.stack || err.message);
163
+ return false;
164
+ }
165
+ api[type] = instance;
166
+ diag.debug("@opentelemetry/api: Registered a global for " + type + " v" + VERSION + ".");
167
+ return true;
168
+ }
169
+ function getGlobal(type) {
170
+ var _a, _b;
171
+ var globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;
172
+ if (!globalVersion || !isCompatible(globalVersion)) return;
173
+ return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
174
+ }
175
+ function unregisterGlobal(type, diag) {
176
+ diag.debug("@opentelemetry/api: Unregistering a global for " + type + " v" + VERSION + ".");
177
+ var api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
178
+ if (api) delete api[type];
179
+ }
180
+ var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
181
+ var init_global_utils = __esmMin((() => {
182
+ init_platform();
183
+ init_version();
184
+ init_semver();
185
+ major = VERSION.split(".")[0];
186
+ GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for("opentelemetry.js.api." + major);
187
+ _global = _globalThis;
188
+ }));
189
+
190
+ //#endregion
191
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
192
+ function logProxy(funcName, namespace, args) {
193
+ var logger = getGlobal("diag");
194
+ if (!logger) return;
195
+ args.unshift(namespace);
196
+ return logger[funcName].apply(logger, __spreadArray$3([], __read$4(args), false));
197
+ }
198
+ var __read$4, __spreadArray$3, DiagComponentLogger;
199
+ var init_ComponentLogger = __esmMin((() => {
200
+ init_global_utils();
201
+ __read$4 = void 0 && (void 0).__read || function(o, n) {
202
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
203
+ if (!m) return o;
204
+ var i = m.call(o), r, ar = [], e;
205
+ try {
206
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
207
+ } catch (error) {
208
+ e = { error };
209
+ } finally {
210
+ try {
211
+ if (r && !r.done && (m = i["return"])) m.call(i);
212
+ } finally {
213
+ if (e) throw e.error;
214
+ }
215
+ }
216
+ return ar;
217
+ };
218
+ __spreadArray$3 = void 0 && (void 0).__spreadArray || function(to, from, pack) {
219
+ if (pack || arguments.length === 2) {
220
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
221
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
222
+ ar[i] = from[i];
223
+ }
224
+ }
225
+ return to.concat(ar || Array.prototype.slice.call(from));
226
+ };
227
+ DiagComponentLogger = function() {
228
+ function DiagComponentLogger(props) {
229
+ this._namespace = props.namespace || "DiagComponentLogger";
230
+ }
231
+ DiagComponentLogger.prototype.debug = function() {
232
+ var args = [];
233
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
234
+ return logProxy("debug", this._namespace, args);
235
+ };
236
+ DiagComponentLogger.prototype.error = function() {
237
+ var args = [];
238
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
239
+ return logProxy("error", this._namespace, args);
240
+ };
241
+ DiagComponentLogger.prototype.info = function() {
242
+ var args = [];
243
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
244
+ return logProxy("info", this._namespace, args);
245
+ };
246
+ DiagComponentLogger.prototype.warn = function() {
247
+ var args = [];
248
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
249
+ return logProxy("warn", this._namespace, args);
250
+ };
251
+ DiagComponentLogger.prototype.verbose = function() {
252
+ var args = [];
253
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
254
+ return logProxy("verbose", this._namespace, args);
255
+ };
256
+ return DiagComponentLogger;
257
+ }();
258
+ }));
259
+
260
+ //#endregion
261
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/types.js
262
+ var DiagLogLevel;
263
+ var init_types = __esmMin((() => {
264
+ ;
265
+ (function(DiagLogLevel) {
266
+ /** Diagnostic Logging level setting to disable all logging (except and forced logs) */
267
+ DiagLogLevel[DiagLogLevel["NONE"] = 0] = "NONE";
268
+ /** Identifies an error scenario */
269
+ DiagLogLevel[DiagLogLevel["ERROR"] = 30] = "ERROR";
270
+ /** Identifies a warning scenario */
271
+ DiagLogLevel[DiagLogLevel["WARN"] = 50] = "WARN";
272
+ /** General informational log message */
273
+ DiagLogLevel[DiagLogLevel["INFO"] = 60] = "INFO";
274
+ /** General debug log message */
275
+ DiagLogLevel[DiagLogLevel["DEBUG"] = 70] = "DEBUG";
276
+ /**
277
+ * Detailed trace level logging should only be used for development, should only be set
278
+ * in a development environment.
279
+ */
280
+ DiagLogLevel[DiagLogLevel["VERBOSE"] = 80] = "VERBOSE";
281
+ /** Used to set the logging level to include all logging */
282
+ DiagLogLevel[DiagLogLevel["ALL"] = 9999] = "ALL";
283
+ })(DiagLogLevel || (DiagLogLevel = {}));
284
+ }));
285
+
286
+ //#endregion
287
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
288
+ function createLogLevelDiagLogger(maxLevel, logger) {
289
+ if (maxLevel < DiagLogLevel.NONE) maxLevel = DiagLogLevel.NONE;
290
+ else if (maxLevel > DiagLogLevel.ALL) maxLevel = DiagLogLevel.ALL;
291
+ logger = logger || {};
292
+ function _filterFunc(funcName, theLevel) {
293
+ var theFunc = logger[funcName];
294
+ if (typeof theFunc === "function" && maxLevel >= theLevel) return theFunc.bind(logger);
295
+ return function() {};
296
+ }
297
+ return {
298
+ error: _filterFunc("error", DiagLogLevel.ERROR),
299
+ warn: _filterFunc("warn", DiagLogLevel.WARN),
300
+ info: _filterFunc("info", DiagLogLevel.INFO),
301
+ debug: _filterFunc("debug", DiagLogLevel.DEBUG),
302
+ verbose: _filterFunc("verbose", DiagLogLevel.VERBOSE)
303
+ };
304
+ }
305
+ var init_logLevelLogger = __esmMin((() => {
306
+ init_types();
307
+ }));
308
+
309
+ //#endregion
310
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/diag.js
311
+ var __read$3, __spreadArray$2, API_NAME$4, DiagAPI;
312
+ var init_diag = __esmMin((() => {
313
+ init_ComponentLogger();
314
+ init_logLevelLogger();
315
+ init_types();
316
+ init_global_utils();
317
+ __read$3 = void 0 && (void 0).__read || function(o, n) {
318
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
319
+ if (!m) return o;
320
+ var i = m.call(o), r, ar = [], e;
321
+ try {
322
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
323
+ } catch (error) {
324
+ e = { error };
325
+ } finally {
326
+ try {
327
+ if (r && !r.done && (m = i["return"])) m.call(i);
328
+ } finally {
329
+ if (e) throw e.error;
330
+ }
331
+ }
332
+ return ar;
333
+ };
334
+ __spreadArray$2 = void 0 && (void 0).__spreadArray || function(to, from, pack) {
335
+ if (pack || arguments.length === 2) {
336
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
337
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
338
+ ar[i] = from[i];
339
+ }
340
+ }
341
+ return to.concat(ar || Array.prototype.slice.call(from));
342
+ };
343
+ API_NAME$4 = "diag";
344
+ DiagAPI = function() {
345
+ /**
346
+ * Private internal constructor
347
+ * @private
348
+ */
349
+ function DiagAPI() {
350
+ function _logProxy(funcName) {
351
+ return function() {
352
+ var args = [];
353
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
354
+ var logger = getGlobal("diag");
355
+ if (!logger) return;
356
+ return logger[funcName].apply(logger, __spreadArray$2([], __read$3(args), false));
357
+ };
358
+ }
359
+ var self = this;
360
+ var setLogger = function(logger, optionsOrLogLevel) {
361
+ var _a, _b, _c;
362
+ if (optionsOrLogLevel === void 0) optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
363
+ if (logger === self) {
364
+ var err = /* @__PURE__ */ new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
365
+ self.error((_a = err.stack) !== null && _a !== void 0 ? _a : err.message);
366
+ return false;
367
+ }
368
+ if (typeof optionsOrLogLevel === "number") optionsOrLogLevel = { logLevel: optionsOrLogLevel };
369
+ var oldLogger = getGlobal("diag");
370
+ var newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger);
371
+ if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
372
+ var stack = (_c = (/* @__PURE__ */ new Error()).stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
373
+ oldLogger.warn("Current logger will be overwritten from " + stack);
374
+ newLogger.warn("Current logger will overwrite one already registered from " + stack);
375
+ }
376
+ return registerGlobal("diag", newLogger, self, true);
377
+ };
378
+ self.setLogger = setLogger;
379
+ self.disable = function() {
380
+ unregisterGlobal(API_NAME$4, self);
381
+ };
382
+ self.createComponentLogger = function(options) {
383
+ return new DiagComponentLogger(options);
384
+ };
385
+ self.verbose = _logProxy("verbose");
386
+ self.debug = _logProxy("debug");
387
+ self.info = _logProxy("info");
388
+ self.warn = _logProxy("warn");
389
+ self.error = _logProxy("error");
390
+ }
391
+ /** Get the singleton instance of the DiagAPI API */
392
+ DiagAPI.instance = function() {
393
+ if (!this._instance) this._instance = new DiagAPI();
394
+ return this._instance;
395
+ };
396
+ return DiagAPI;
397
+ }();
398
+ }));
399
+
400
+ //#endregion
401
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js
402
+ var __read$2, __values, BaggageImpl;
403
+ var init_baggage_impl = __esmMin((() => {
404
+ __read$2 = void 0 && (void 0).__read || function(o, n) {
405
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
406
+ if (!m) return o;
407
+ var i = m.call(o), r, ar = [], e;
408
+ try {
409
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
410
+ } catch (error) {
411
+ e = { error };
412
+ } finally {
413
+ try {
414
+ if (r && !r.done && (m = i["return"])) m.call(i);
415
+ } finally {
416
+ if (e) throw e.error;
417
+ }
418
+ }
419
+ return ar;
420
+ };
421
+ __values = void 0 && (void 0).__values || function(o) {
422
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
423
+ if (m) return m.call(o);
424
+ if (o && typeof o.length === "number") return { next: function() {
425
+ if (o && i >= o.length) o = void 0;
426
+ return {
427
+ value: o && o[i++],
428
+ done: !o
429
+ };
430
+ } };
431
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
432
+ };
433
+ BaggageImpl = function() {
434
+ function BaggageImpl(entries) {
435
+ this._entries = entries ? new Map(entries) : /* @__PURE__ */ new Map();
436
+ }
437
+ BaggageImpl.prototype.getEntry = function(key) {
438
+ var entry = this._entries.get(key);
439
+ if (!entry) return;
440
+ return Object.assign({}, entry);
441
+ };
442
+ BaggageImpl.prototype.getAllEntries = function() {
443
+ return Array.from(this._entries.entries()).map(function(_a) {
444
+ var _b = __read$2(_a, 2);
445
+ return [_b[0], _b[1]];
446
+ });
447
+ };
448
+ BaggageImpl.prototype.setEntry = function(key, entry) {
449
+ var newBaggage = new BaggageImpl(this._entries);
450
+ newBaggage._entries.set(key, entry);
451
+ return newBaggage;
452
+ };
453
+ BaggageImpl.prototype.removeEntry = function(key) {
454
+ var newBaggage = new BaggageImpl(this._entries);
455
+ newBaggage._entries.delete(key);
456
+ return newBaggage;
457
+ };
458
+ BaggageImpl.prototype.removeEntries = function() {
459
+ var e_1, _a;
460
+ var keys = [];
461
+ for (var _i = 0; _i < arguments.length; _i++) keys[_i] = arguments[_i];
462
+ var newBaggage = new BaggageImpl(this._entries);
463
+ try {
464
+ for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
465
+ var key = keys_1_1.value;
466
+ newBaggage._entries.delete(key);
467
+ }
468
+ } catch (e_1_1) {
469
+ e_1 = { error: e_1_1 };
470
+ } finally {
471
+ try {
472
+ if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1);
473
+ } finally {
474
+ if (e_1) throw e_1.error;
475
+ }
476
+ }
477
+ return newBaggage;
478
+ };
479
+ BaggageImpl.prototype.clear = function() {
480
+ return new BaggageImpl();
481
+ };
482
+ return BaggageImpl;
483
+ }();
484
+ }));
485
+
486
+ //#endregion
487
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js
488
+ var baggageEntryMetadataSymbol;
489
+ var init_symbol = __esmMin((() => {
490
+ baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
491
+ }));
492
+
493
+ //#endregion
494
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/utils.js
495
+ /**
496
+ * Create a new Baggage with optional entries
497
+ *
498
+ * @param entries An array of baggage entries the new baggage should contain
499
+ */
500
+ function createBaggage(entries) {
501
+ if (entries === void 0) entries = {};
502
+ return new BaggageImpl(new Map(Object.entries(entries)));
503
+ }
504
+ /**
505
+ * Create a serializable BaggageEntryMetadata object from a string.
506
+ *
507
+ * @param str string metadata. Format is currently not defined by the spec and has no special meaning.
508
+ *
509
+ */
510
+ function baggageEntryMetadataFromString(str) {
511
+ if (typeof str !== "string") {
512
+ diag$1.error("Cannot create baggage metadata from unknown type: " + typeof str);
513
+ str = "";
514
+ }
515
+ return {
516
+ __TYPE__: baggageEntryMetadataSymbol,
517
+ toString: function() {
518
+ return str;
519
+ }
520
+ };
521
+ }
522
+ var diag$1;
523
+ var init_utils$1 = __esmMin((() => {
524
+ init_diag();
525
+ init_baggage_impl();
526
+ init_symbol();
527
+ diag$1 = DiagAPI.instance();
528
+ }));
529
+
530
+ //#endregion
531
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/context.js
532
+ /** Get a key to uniquely identify a context value */
533
+ function createContextKey(description) {
534
+ return Symbol.for(description);
535
+ }
536
+ var BaseContext, ROOT_CONTEXT;
537
+ var init_context$1 = __esmMin((() => {
538
+ BaseContext = function() {
539
+ /**
540
+ * Construct a new context which inherits values from an optional parent context.
541
+ *
542
+ * @param parentContext a context from which to inherit values
543
+ */
544
+ function BaseContext(parentContext) {
545
+ var self = this;
546
+ self._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
547
+ self.getValue = function(key) {
548
+ return self._currentContext.get(key);
549
+ };
550
+ self.setValue = function(key, value) {
551
+ var context = new BaseContext(self._currentContext);
552
+ context._currentContext.set(key, value);
553
+ return context;
554
+ };
555
+ self.deleteValue = function(key) {
556
+ var context = new BaseContext(self._currentContext);
557
+ context._currentContext.delete(key);
558
+ return context;
559
+ };
560
+ }
561
+ return BaseContext;
562
+ }();
563
+ ROOT_CONTEXT = new BaseContext();
564
+ }));
565
+
566
+ //#endregion
567
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js
568
+ var consoleMap, DiagConsoleLogger;
569
+ var init_consoleLogger = __esmMin((() => {
570
+ consoleMap = [
571
+ {
572
+ n: "error",
573
+ c: "error"
574
+ },
575
+ {
576
+ n: "warn",
577
+ c: "warn"
578
+ },
579
+ {
580
+ n: "info",
581
+ c: "info"
582
+ },
583
+ {
584
+ n: "debug",
585
+ c: "debug"
586
+ },
587
+ {
588
+ n: "verbose",
589
+ c: "trace"
590
+ }
591
+ ];
592
+ DiagConsoleLogger = function() {
593
+ function DiagConsoleLogger() {
594
+ function _consoleFunc(funcName) {
595
+ return function() {
596
+ var args = [];
597
+ for (var _i = 0; _i < arguments.length; _i++) args[_i] = arguments[_i];
598
+ if (console) {
599
+ var theFunc = console[funcName];
600
+ if (typeof theFunc !== "function") theFunc = console.log;
601
+ if (typeof theFunc === "function") return theFunc.apply(console, args);
602
+ }
603
+ };
604
+ }
605
+ for (var i = 0; i < consoleMap.length; i++) this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
606
+ }
607
+ return DiagConsoleLogger;
608
+ }();
609
+ }));
610
+
611
+ //#endregion
612
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js
613
+ /**
614
+ * Create a no-op Meter
615
+ */
616
+ function createNoopMeter() {
617
+ return NOOP_METER;
618
+ }
619
+ var __extends, 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;
620
+ var init_NoopMeter = __esmMin((() => {
621
+ __extends = void 0 && (void 0).__extends || (function() {
622
+ var extendStatics = function(d, b) {
623
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
624
+ d.__proto__ = b;
625
+ } || function(d, b) {
626
+ for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
627
+ };
628
+ return extendStatics(d, b);
629
+ };
630
+ return function(d, b) {
631
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
632
+ extendStatics(d, b);
633
+ function __() {
634
+ this.constructor = d;
635
+ }
636
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
637
+ };
638
+ })();
639
+ NoopMeter = function() {
640
+ function NoopMeter() {}
641
+ /**
642
+ * @see {@link Meter.createGauge}
643
+ */
644
+ NoopMeter.prototype.createGauge = function(_name, _options) {
645
+ return NOOP_GAUGE_METRIC;
646
+ };
647
+ /**
648
+ * @see {@link Meter.createHistogram}
649
+ */
650
+ NoopMeter.prototype.createHistogram = function(_name, _options) {
651
+ return NOOP_HISTOGRAM_METRIC;
652
+ };
653
+ /**
654
+ * @see {@link Meter.createCounter}
655
+ */
656
+ NoopMeter.prototype.createCounter = function(_name, _options) {
657
+ return NOOP_COUNTER_METRIC;
658
+ };
659
+ /**
660
+ * @see {@link Meter.createUpDownCounter}
661
+ */
662
+ NoopMeter.prototype.createUpDownCounter = function(_name, _options) {
663
+ return NOOP_UP_DOWN_COUNTER_METRIC;
664
+ };
665
+ /**
666
+ * @see {@link Meter.createObservableGauge}
667
+ */
668
+ NoopMeter.prototype.createObservableGauge = function(_name, _options) {
669
+ return NOOP_OBSERVABLE_GAUGE_METRIC;
670
+ };
671
+ /**
672
+ * @see {@link Meter.createObservableCounter}
673
+ */
674
+ NoopMeter.prototype.createObservableCounter = function(_name, _options) {
675
+ return NOOP_OBSERVABLE_COUNTER_METRIC;
676
+ };
677
+ /**
678
+ * @see {@link Meter.createObservableUpDownCounter}
679
+ */
680
+ NoopMeter.prototype.createObservableUpDownCounter = function(_name, _options) {
681
+ return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
682
+ };
683
+ /**
684
+ * @see {@link Meter.addBatchObservableCallback}
685
+ */
686
+ NoopMeter.prototype.addBatchObservableCallback = function(_callback, _observables) {};
687
+ /**
688
+ * @see {@link Meter.removeBatchObservableCallback}
689
+ */
690
+ NoopMeter.prototype.removeBatchObservableCallback = function(_callback) {};
691
+ return NoopMeter;
692
+ }();
693
+ NoopMetric = function() {
694
+ function NoopMetric() {}
695
+ return NoopMetric;
696
+ }();
697
+ NoopCounterMetric = function(_super) {
698
+ __extends(NoopCounterMetric, _super);
699
+ function NoopCounterMetric() {
700
+ return _super !== null && _super.apply(this, arguments) || this;
701
+ }
702
+ NoopCounterMetric.prototype.add = function(_value, _attributes) {};
703
+ return NoopCounterMetric;
704
+ }(NoopMetric);
705
+ NoopUpDownCounterMetric = function(_super) {
706
+ __extends(NoopUpDownCounterMetric, _super);
707
+ function NoopUpDownCounterMetric() {
708
+ return _super !== null && _super.apply(this, arguments) || this;
709
+ }
710
+ NoopUpDownCounterMetric.prototype.add = function(_value, _attributes) {};
711
+ return NoopUpDownCounterMetric;
712
+ }(NoopMetric);
713
+ NoopGaugeMetric = function(_super) {
714
+ __extends(NoopGaugeMetric, _super);
715
+ function NoopGaugeMetric() {
716
+ return _super !== null && _super.apply(this, arguments) || this;
717
+ }
718
+ NoopGaugeMetric.prototype.record = function(_value, _attributes) {};
719
+ return NoopGaugeMetric;
720
+ }(NoopMetric);
721
+ NoopHistogramMetric = function(_super) {
722
+ __extends(NoopHistogramMetric, _super);
723
+ function NoopHistogramMetric() {
724
+ return _super !== null && _super.apply(this, arguments) || this;
725
+ }
726
+ NoopHistogramMetric.prototype.record = function(_value, _attributes) {};
727
+ return NoopHistogramMetric;
728
+ }(NoopMetric);
729
+ NoopObservableMetric = function() {
730
+ function NoopObservableMetric() {}
731
+ NoopObservableMetric.prototype.addCallback = function(_callback) {};
732
+ NoopObservableMetric.prototype.removeCallback = function(_callback) {};
733
+ return NoopObservableMetric;
734
+ }();
735
+ NoopObservableCounterMetric = function(_super) {
736
+ __extends(NoopObservableCounterMetric, _super);
737
+ function NoopObservableCounterMetric() {
738
+ return _super !== null && _super.apply(this, arguments) || this;
739
+ }
740
+ return NoopObservableCounterMetric;
741
+ }(NoopObservableMetric);
742
+ NoopObservableGaugeMetric = function(_super) {
743
+ __extends(NoopObservableGaugeMetric, _super);
744
+ function NoopObservableGaugeMetric() {
745
+ return _super !== null && _super.apply(this, arguments) || this;
746
+ }
747
+ return NoopObservableGaugeMetric;
748
+ }(NoopObservableMetric);
749
+ NoopObservableUpDownCounterMetric = function(_super) {
750
+ __extends(NoopObservableUpDownCounterMetric, _super);
751
+ function NoopObservableUpDownCounterMetric() {
752
+ return _super !== null && _super.apply(this, arguments) || this;
753
+ }
754
+ return NoopObservableUpDownCounterMetric;
755
+ }(NoopObservableMetric);
756
+ NOOP_METER = new NoopMeter();
757
+ NOOP_COUNTER_METRIC = new NoopCounterMetric();
758
+ NOOP_GAUGE_METRIC = new NoopGaugeMetric();
759
+ NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
760
+ NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
761
+ NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
762
+ NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
763
+ NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
764
+ }));
765
+
766
+ //#endregion
767
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js
768
+ var ValueType;
769
+ var init_Metric = __esmMin((() => {
770
+ ;
771
+ (function(ValueType) {
772
+ ValueType[ValueType["INT"] = 0] = "INT";
773
+ ValueType[ValueType["DOUBLE"] = 1] = "DOUBLE";
774
+ })(ValueType || (ValueType = {}));
775
+ }));
776
+
777
+ //#endregion
778
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
779
+ var defaultTextMapGetter, defaultTextMapSetter;
780
+ var init_TextMapPropagator = __esmMin((() => {
781
+ defaultTextMapGetter = {
782
+ get: function(carrier, key) {
783
+ if (carrier == null) return;
784
+ return carrier[key];
785
+ },
786
+ keys: function(carrier) {
787
+ if (carrier == null) return [];
788
+ return Object.keys(carrier);
789
+ }
790
+ };
791
+ defaultTextMapSetter = { set: function(carrier, key, value) {
792
+ if (carrier == null) return;
793
+ carrier[key] = value;
794
+ } };
795
+ }));
796
+
797
+ //#endregion
798
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
799
+ var __read$1, __spreadArray$1, NoopContextManager;
800
+ var init_NoopContextManager = __esmMin((() => {
801
+ init_context$1();
802
+ __read$1 = void 0 && (void 0).__read || function(o, n) {
803
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
804
+ if (!m) return o;
805
+ var i = m.call(o), r, ar = [], e;
806
+ try {
807
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
808
+ } catch (error) {
809
+ e = { error };
810
+ } finally {
811
+ try {
812
+ if (r && !r.done && (m = i["return"])) m.call(i);
813
+ } finally {
814
+ if (e) throw e.error;
815
+ }
816
+ }
817
+ return ar;
818
+ };
819
+ __spreadArray$1 = void 0 && (void 0).__spreadArray || function(to, from, pack) {
820
+ if (pack || arguments.length === 2) {
821
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
822
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
823
+ ar[i] = from[i];
824
+ }
825
+ }
826
+ return to.concat(ar || Array.prototype.slice.call(from));
827
+ };
828
+ NoopContextManager = function() {
829
+ function NoopContextManager() {}
830
+ NoopContextManager.prototype.active = function() {
831
+ return ROOT_CONTEXT;
832
+ };
833
+ NoopContextManager.prototype.with = function(_context, fn, thisArg) {
834
+ var args = [];
835
+ for (var _i = 3; _i < arguments.length; _i++) args[_i - 3] = arguments[_i];
836
+ return fn.call.apply(fn, __spreadArray$1([thisArg], __read$1(args), false));
837
+ };
838
+ NoopContextManager.prototype.bind = function(_context, target) {
839
+ return target;
840
+ };
841
+ NoopContextManager.prototype.enable = function() {
842
+ return this;
843
+ };
844
+ NoopContextManager.prototype.disable = function() {
845
+ return this;
846
+ };
847
+ return NoopContextManager;
848
+ }();
849
+ }));
850
+
851
+ //#endregion
852
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/context.js
853
+ var __read, __spreadArray, API_NAME$3, NOOP_CONTEXT_MANAGER, ContextAPI;
854
+ var init_context = __esmMin((() => {
855
+ init_NoopContextManager();
856
+ init_global_utils();
857
+ init_diag();
858
+ __read = void 0 && (void 0).__read || function(o, n) {
859
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
860
+ if (!m) return o;
861
+ var i = m.call(o), r, ar = [], e;
862
+ try {
863
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
864
+ } catch (error) {
865
+ e = { error };
866
+ } finally {
867
+ try {
868
+ if (r && !r.done && (m = i["return"])) m.call(i);
869
+ } finally {
870
+ if (e) throw e.error;
871
+ }
872
+ }
873
+ return ar;
874
+ };
875
+ __spreadArray = void 0 && (void 0).__spreadArray || function(to, from, pack) {
876
+ if (pack || arguments.length === 2) {
877
+ for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
878
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
879
+ ar[i] = from[i];
880
+ }
881
+ }
882
+ return to.concat(ar || Array.prototype.slice.call(from));
883
+ };
884
+ API_NAME$3 = "context";
885
+ NOOP_CONTEXT_MANAGER = new NoopContextManager();
886
+ ContextAPI = function() {
887
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
888
+ function ContextAPI() {}
889
+ /** Get the singleton instance of the Context API */
890
+ ContextAPI.getInstance = function() {
891
+ if (!this._instance) this._instance = new ContextAPI();
892
+ return this._instance;
893
+ };
894
+ /**
895
+ * Set the current context manager.
896
+ *
897
+ * @returns true if the context manager was successfully registered, else false
898
+ */
899
+ ContextAPI.prototype.setGlobalContextManager = function(contextManager) {
900
+ return registerGlobal(API_NAME$3, contextManager, DiagAPI.instance());
901
+ };
902
+ /**
903
+ * Get the currently active context
904
+ */
905
+ ContextAPI.prototype.active = function() {
906
+ return this._getContextManager().active();
907
+ };
908
+ /**
909
+ * Execute a function with an active context
910
+ *
911
+ * @param context context to be active during function execution
912
+ * @param fn function to execute in a context
913
+ * @param thisArg optional receiver to be used for calling fn
914
+ * @param args optional arguments forwarded to fn
915
+ */
916
+ ContextAPI.prototype.with = function(context, fn, thisArg) {
917
+ var _a;
918
+ var args = [];
919
+ for (var _i = 3; _i < arguments.length; _i++) args[_i - 3] = arguments[_i];
920
+ return (_a = this._getContextManager()).with.apply(_a, __spreadArray([
921
+ context,
922
+ fn,
923
+ thisArg
924
+ ], __read(args), false));
925
+ };
926
+ /**
927
+ * Bind a context to a target function or event emitter
928
+ *
929
+ * @param context context to bind to the event emitter or function. Defaults to the currently active context
930
+ * @param target function or event emitter to bind
931
+ */
932
+ ContextAPI.prototype.bind = function(context, target) {
933
+ return this._getContextManager().bind(context, target);
934
+ };
935
+ ContextAPI.prototype._getContextManager = function() {
936
+ return getGlobal(API_NAME$3) || NOOP_CONTEXT_MANAGER;
937
+ };
938
+ /** Disable and remove the global context manager */
939
+ ContextAPI.prototype.disable = function() {
940
+ this._getContextManager().disable();
941
+ unregisterGlobal(API_NAME$3, DiagAPI.instance());
942
+ };
943
+ return ContextAPI;
944
+ }();
945
+ }));
946
+
947
+ //#endregion
948
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
949
+ var TraceFlags;
950
+ var init_trace_flags = __esmMin((() => {
951
+ ;
952
+ (function(TraceFlags) {
953
+ /** Represents no flag set. */
954
+ TraceFlags[TraceFlags["NONE"] = 0] = "NONE";
955
+ /** Bit to represent whether trace is sampled in trace flags. */
956
+ TraceFlags[TraceFlags["SAMPLED"] = 1] = "SAMPLED";
957
+ })(TraceFlags || (TraceFlags = {}));
958
+ }));
959
+
960
+ //#endregion
961
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
962
+ var INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT;
963
+ var init_invalid_span_constants = __esmMin((() => {
964
+ init_trace_flags();
965
+ INVALID_SPANID = "0000000000000000";
966
+ INVALID_TRACEID = "00000000000000000000000000000000";
967
+ INVALID_SPAN_CONTEXT = {
968
+ traceId: INVALID_TRACEID,
969
+ spanId: INVALID_SPANID,
970
+ traceFlags: TraceFlags.NONE
971
+ };
972
+ }));
973
+
974
+ //#endregion
975
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
976
+ var NonRecordingSpan;
977
+ var init_NonRecordingSpan = __esmMin((() => {
978
+ init_invalid_span_constants();
979
+ NonRecordingSpan = function() {
980
+ function NonRecordingSpan(_spanContext) {
981
+ if (_spanContext === void 0) _spanContext = INVALID_SPAN_CONTEXT;
982
+ this._spanContext = _spanContext;
983
+ }
984
+ NonRecordingSpan.prototype.spanContext = function() {
985
+ return this._spanContext;
986
+ };
987
+ NonRecordingSpan.prototype.setAttribute = function(_key, _value) {
988
+ return this;
989
+ };
990
+ NonRecordingSpan.prototype.setAttributes = function(_attributes) {
991
+ return this;
992
+ };
993
+ NonRecordingSpan.prototype.addEvent = function(_name, _attributes) {
994
+ return this;
995
+ };
996
+ NonRecordingSpan.prototype.addLink = function(_link) {
997
+ return this;
998
+ };
999
+ NonRecordingSpan.prototype.addLinks = function(_links) {
1000
+ return this;
1001
+ };
1002
+ NonRecordingSpan.prototype.setStatus = function(_status) {
1003
+ return this;
1004
+ };
1005
+ NonRecordingSpan.prototype.updateName = function(_name) {
1006
+ return this;
1007
+ };
1008
+ NonRecordingSpan.prototype.end = function(_endTime) {};
1009
+ NonRecordingSpan.prototype.isRecording = function() {
1010
+ return false;
1011
+ };
1012
+ NonRecordingSpan.prototype.recordException = function(_exception, _time) {};
1013
+ return NonRecordingSpan;
1014
+ }();
1015
+ }));
1016
+
1017
+ //#endregion
1018
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
1019
+ /**
1020
+ * Return the span if one exists
1021
+ *
1022
+ * @param context context to get span from
1023
+ */
1024
+ function getSpan(context) {
1025
+ return context.getValue(SPAN_KEY) || void 0;
1026
+ }
1027
+ /**
1028
+ * Gets the span from the current context, if one exists.
1029
+ */
1030
+ function getActiveSpan() {
1031
+ return getSpan(ContextAPI.getInstance().active());
1032
+ }
1033
+ /**
1034
+ * Set the span on a context
1035
+ *
1036
+ * @param context context to use as parent
1037
+ * @param span span to set active
1038
+ */
1039
+ function setSpan(context, span) {
1040
+ return context.setValue(SPAN_KEY, span);
1041
+ }
1042
+ /**
1043
+ * Remove current span stored in the context
1044
+ *
1045
+ * @param context context to delete span from
1046
+ */
1047
+ function deleteSpan(context) {
1048
+ return context.deleteValue(SPAN_KEY);
1049
+ }
1050
+ /**
1051
+ * Wrap span context in a NoopSpan and set as span in a new
1052
+ * context
1053
+ *
1054
+ * @param context context to set active span on
1055
+ * @param spanContext span context to be wrapped
1056
+ */
1057
+ function setSpanContext(context, spanContext) {
1058
+ return setSpan(context, new NonRecordingSpan(spanContext));
1059
+ }
1060
+ /**
1061
+ * Get the span context of the span if it exists.
1062
+ *
1063
+ * @param context context to get values from
1064
+ */
1065
+ function getSpanContext(context) {
1066
+ var _a;
1067
+ return (_a = getSpan(context)) === null || _a === void 0 ? void 0 : _a.spanContext();
1068
+ }
1069
+ var SPAN_KEY;
1070
+ var init_context_utils = __esmMin((() => {
1071
+ init_context$1();
1072
+ init_NonRecordingSpan();
1073
+ init_context();
1074
+ SPAN_KEY = createContextKey("OpenTelemetry Context Key SPAN");
1075
+ }));
1076
+
1077
+ //#endregion
1078
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
1079
+ function isValidTraceId(traceId) {
1080
+ return VALID_TRACEID_REGEX.test(traceId) && traceId !== "00000000000000000000000000000000";
1081
+ }
1082
+ function isValidSpanId(spanId) {
1083
+ return VALID_SPANID_REGEX.test(spanId) && spanId !== "0000000000000000";
1084
+ }
1085
+ /**
1086
+ * Returns true if this {@link SpanContext} is valid.
1087
+ * @return true if this {@link SpanContext} is valid.
1088
+ */
1089
+ function isSpanContextValid(spanContext) {
1090
+ return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
1091
+ }
1092
+ /**
1093
+ * Wrap the given {@link SpanContext} in a new non-recording {@link Span}
1094
+ *
1095
+ * @param spanContext span context to be wrapped
1096
+ * @returns a new non-recording {@link Span} with the provided context
1097
+ */
1098
+ function wrapSpanContext(spanContext) {
1099
+ return new NonRecordingSpan(spanContext);
1100
+ }
1101
+ var VALID_TRACEID_REGEX, VALID_SPANID_REGEX;
1102
+ var init_spancontext_utils = __esmMin((() => {
1103
+ init_invalid_span_constants();
1104
+ init_NonRecordingSpan();
1105
+ VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
1106
+ VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
1107
+ }));
1108
+
1109
+ //#endregion
1110
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
1111
+ function isSpanContext(spanContext) {
1112
+ return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number";
1113
+ }
1114
+ var contextApi, NoopTracer;
1115
+ var init_NoopTracer = __esmMin((() => {
1116
+ init_context();
1117
+ init_context_utils();
1118
+ init_NonRecordingSpan();
1119
+ init_spancontext_utils();
1120
+ contextApi = ContextAPI.getInstance();
1121
+ NoopTracer = function() {
1122
+ function NoopTracer() {}
1123
+ NoopTracer.prototype.startSpan = function(name, options, context) {
1124
+ if (context === void 0) context = contextApi.active();
1125
+ if (Boolean(options === null || options === void 0 ? void 0 : options.root)) return new NonRecordingSpan();
1126
+ var parentFromContext = context && getSpanContext(context);
1127
+ if (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) return new NonRecordingSpan(parentFromContext);
1128
+ else return new NonRecordingSpan();
1129
+ };
1130
+ NoopTracer.prototype.startActiveSpan = function(name, arg2, arg3, arg4) {
1131
+ var opts;
1132
+ var ctx;
1133
+ var fn;
1134
+ if (arguments.length < 2) return;
1135
+ else if (arguments.length === 2) fn = arg2;
1136
+ else if (arguments.length === 3) {
1137
+ opts = arg2;
1138
+ fn = arg3;
1139
+ } else {
1140
+ opts = arg2;
1141
+ ctx = arg3;
1142
+ fn = arg4;
1143
+ }
1144
+ var parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();
1145
+ var span = this.startSpan(name, opts, parentContext);
1146
+ var contextWithSpanSet = setSpan(parentContext, span);
1147
+ return contextApi.with(contextWithSpanSet, fn, void 0, span);
1148
+ };
1149
+ return NoopTracer;
1150
+ }();
1151
+ }));
1152
+
1153
+ //#endregion
1154
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
1155
+ var NOOP_TRACER, ProxyTracer;
1156
+ var init_ProxyTracer = __esmMin((() => {
1157
+ init_NoopTracer();
1158
+ NOOP_TRACER = new NoopTracer();
1159
+ ProxyTracer = function() {
1160
+ function ProxyTracer(_provider, name, version, options) {
1161
+ this._provider = _provider;
1162
+ this.name = name;
1163
+ this.version = version;
1164
+ this.options = options;
1165
+ }
1166
+ ProxyTracer.prototype.startSpan = function(name, options, context) {
1167
+ return this._getTracer().startSpan(name, options, context);
1168
+ };
1169
+ ProxyTracer.prototype.startActiveSpan = function(_name, _options, _context, _fn) {
1170
+ var tracer = this._getTracer();
1171
+ return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
1172
+ };
1173
+ /**
1174
+ * Try to get a tracer from the proxy tracer provider.
1175
+ * If the proxy tracer provider has no delegate, return a noop tracer.
1176
+ */
1177
+ ProxyTracer.prototype._getTracer = function() {
1178
+ if (this._delegate) return this._delegate;
1179
+ var tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
1180
+ if (!tracer) return NOOP_TRACER;
1181
+ this._delegate = tracer;
1182
+ return this._delegate;
1183
+ };
1184
+ return ProxyTracer;
1185
+ }();
1186
+ }));
1187
+
1188
+ //#endregion
1189
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
1190
+ var NoopTracerProvider;
1191
+ var init_NoopTracerProvider = __esmMin((() => {
1192
+ init_NoopTracer();
1193
+ NoopTracerProvider = function() {
1194
+ function NoopTracerProvider() {}
1195
+ NoopTracerProvider.prototype.getTracer = function(_name, _version, _options) {
1196
+ return new NoopTracer();
1197
+ };
1198
+ return NoopTracerProvider;
1199
+ }();
1200
+ }));
1201
+
1202
+ //#endregion
1203
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
1204
+ var NOOP_TRACER_PROVIDER, ProxyTracerProvider;
1205
+ var init_ProxyTracerProvider = __esmMin((() => {
1206
+ init_ProxyTracer();
1207
+ init_NoopTracerProvider();
1208
+ NOOP_TRACER_PROVIDER = new NoopTracerProvider();
1209
+ ProxyTracerProvider = function() {
1210
+ function ProxyTracerProvider() {}
1211
+ /**
1212
+ * Get a {@link ProxyTracer}
1213
+ */
1214
+ ProxyTracerProvider.prototype.getTracer = function(name, version, options) {
1215
+ var _a;
1216
+ return (_a = this.getDelegateTracer(name, version, options)) !== null && _a !== void 0 ? _a : new ProxyTracer(this, name, version, options);
1217
+ };
1218
+ ProxyTracerProvider.prototype.getDelegate = function() {
1219
+ var _a;
1220
+ return (_a = this._delegate) !== null && _a !== void 0 ? _a : NOOP_TRACER_PROVIDER;
1221
+ };
1222
+ /**
1223
+ * Set the delegate tracer provider
1224
+ */
1225
+ ProxyTracerProvider.prototype.setDelegate = function(delegate) {
1226
+ this._delegate = delegate;
1227
+ };
1228
+ ProxyTracerProvider.prototype.getDelegateTracer = function(name, version, options) {
1229
+ var _a;
1230
+ return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version, options);
1231
+ };
1232
+ return ProxyTracerProvider;
1233
+ }();
1234
+ }));
1235
+
1236
+ //#endregion
1237
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js
1238
+ var SamplingDecision;
1239
+ var init_SamplingResult = __esmMin((() => {
1240
+ ;
1241
+ (function(SamplingDecision) {
1242
+ /**
1243
+ * `Span.isRecording() === false`, span will not be recorded and all events
1244
+ * and attributes will be dropped.
1245
+ */
1246
+ SamplingDecision[SamplingDecision["NOT_RECORD"] = 0] = "NOT_RECORD";
1247
+ /**
1248
+ * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags}
1249
+ * MUST NOT be set.
1250
+ */
1251
+ SamplingDecision[SamplingDecision["RECORD"] = 1] = "RECORD";
1252
+ /**
1253
+ * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags}
1254
+ * MUST be set.
1255
+ */
1256
+ SamplingDecision[SamplingDecision["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
1257
+ })(SamplingDecision || (SamplingDecision = {}));
1258
+ }));
1259
+
1260
+ //#endregion
1261
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
1262
+ var SpanKind;
1263
+ var init_span_kind = __esmMin((() => {
1264
+ ;
1265
+ (function(SpanKind) {
1266
+ /** Default value. Indicates that the span is used internally. */
1267
+ SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
1268
+ /**
1269
+ * Indicates that the span covers server-side handling of an RPC or other
1270
+ * remote request.
1271
+ */
1272
+ SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
1273
+ /**
1274
+ * Indicates that the span covers the client-side wrapper around an RPC or
1275
+ * other remote request.
1276
+ */
1277
+ SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
1278
+ /**
1279
+ * Indicates that the span describes producer sending a message to a
1280
+ * broker. Unlike client and server, there is no direct critical path latency
1281
+ * relationship between producer and consumer spans.
1282
+ */
1283
+ SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
1284
+ /**
1285
+ * Indicates that the span describes consumer receiving a message from a
1286
+ * broker. Unlike client and server, there is no direct critical path latency
1287
+ * relationship between producer and consumer spans.
1288
+ */
1289
+ SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
1290
+ })(SpanKind || (SpanKind = {}));
1291
+ }));
1292
+
1293
+ //#endregion
1294
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/status.js
1295
+ var SpanStatusCode;
1296
+ var init_status = __esmMin((() => {
1297
+ ;
1298
+ (function(SpanStatusCode) {
1299
+ /**
1300
+ * The default status.
1301
+ */
1302
+ SpanStatusCode[SpanStatusCode["UNSET"] = 0] = "UNSET";
1303
+ /**
1304
+ * The operation has been validated by an Application developer or
1305
+ * Operator to have completed successfully.
1306
+ */
1307
+ SpanStatusCode[SpanStatusCode["OK"] = 1] = "OK";
1308
+ /**
1309
+ * The operation contains an error.
1310
+ */
1311
+ SpanStatusCode[SpanStatusCode["ERROR"] = 2] = "ERROR";
1312
+ })(SpanStatusCode || (SpanStatusCode = {}));
1313
+ }));
1314
+
1315
+ //#endregion
1316
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js
1317
+ /**
1318
+ * Key is opaque string up to 256 characters printable. It MUST begin with a
1319
+ * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,
1320
+ * underscores _, dashes -, asterisks *, and forward slashes /.
1321
+ * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the
1322
+ * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.
1323
+ * see https://www.w3.org/TR/trace-context/#key
1324
+ */
1325
+ function validateKey(key) {
1326
+ return VALID_KEY_REGEX.test(key);
1327
+ }
1328
+ /**
1329
+ * Value is opaque string up to 256 characters printable ASCII RFC0020
1330
+ * characters (i.e., the range 0x20 to 0x7E) except comma , and =.
1331
+ */
1332
+ function validateValue(value) {
1333
+ return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
1334
+ }
1335
+ var VALID_KEY_CHAR_RANGE, VALID_KEY, VALID_VENDOR_KEY, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
1336
+ var init_tracestate_validators = __esmMin((() => {
1337
+ VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
1338
+ VALID_KEY = "[a-z]" + VALID_KEY_CHAR_RANGE + "{0,255}";
1339
+ VALID_VENDOR_KEY = "[a-z0-9]" + VALID_KEY_CHAR_RANGE + "{0,240}@[a-z]" + VALID_KEY_CHAR_RANGE + "{0,13}";
1340
+ VALID_KEY_REGEX = new RegExp("^(?:" + VALID_KEY + "|" + VALID_VENDOR_KEY + ")$");
1341
+ VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
1342
+ INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
1343
+ }));
1344
+
1345
+ //#endregion
1346
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js
1347
+ var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceStateImpl;
1348
+ var init_tracestate_impl = __esmMin((() => {
1349
+ init_tracestate_validators();
1350
+ MAX_TRACE_STATE_ITEMS = 32;
1351
+ MAX_TRACE_STATE_LEN = 512;
1352
+ LIST_MEMBERS_SEPARATOR = ",";
1353
+ LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
1354
+ TraceStateImpl = function() {
1355
+ function TraceStateImpl(rawTraceState) {
1356
+ this._internalState = /* @__PURE__ */ new Map();
1357
+ if (rawTraceState) this._parse(rawTraceState);
1358
+ }
1359
+ TraceStateImpl.prototype.set = function(key, value) {
1360
+ var traceState = this._clone();
1361
+ if (traceState._internalState.has(key)) traceState._internalState.delete(key);
1362
+ traceState._internalState.set(key, value);
1363
+ return traceState;
1364
+ };
1365
+ TraceStateImpl.prototype.unset = function(key) {
1366
+ var traceState = this._clone();
1367
+ traceState._internalState.delete(key);
1368
+ return traceState;
1369
+ };
1370
+ TraceStateImpl.prototype.get = function(key) {
1371
+ return this._internalState.get(key);
1372
+ };
1373
+ TraceStateImpl.prototype.serialize = function() {
1374
+ var _this = this;
1375
+ return this._keys().reduce(function(agg, key) {
1376
+ agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
1377
+ return agg;
1378
+ }, []).join(LIST_MEMBERS_SEPARATOR);
1379
+ };
1380
+ TraceStateImpl.prototype._parse = function(rawTraceState) {
1381
+ if (rawTraceState.length > MAX_TRACE_STATE_LEN) return;
1382
+ this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reverse().reduce(function(agg, part) {
1383
+ var listMember = part.trim();
1384
+ var i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
1385
+ if (i !== -1) {
1386
+ var key = listMember.slice(0, i);
1387
+ var value = listMember.slice(i + 1, part.length);
1388
+ if (validateKey(key) && validateValue(value)) agg.set(key, value);
1389
+ }
1390
+ return agg;
1391
+ }, /* @__PURE__ */ new Map());
1392
+ if (this._internalState.size > MAX_TRACE_STATE_ITEMS) this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
1393
+ };
1394
+ TraceStateImpl.prototype._keys = function() {
1395
+ return Array.from(this._internalState.keys()).reverse();
1396
+ };
1397
+ TraceStateImpl.prototype._clone = function() {
1398
+ var traceState = new TraceStateImpl();
1399
+ traceState._internalState = new Map(this._internalState);
1400
+ return traceState;
1401
+ };
1402
+ return TraceStateImpl;
1403
+ }();
1404
+ }));
1405
+
1406
+ //#endregion
1407
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js
1408
+ function createTraceState(rawTraceState) {
1409
+ return new TraceStateImpl(rawTraceState);
1410
+ }
1411
+ var init_utils = __esmMin((() => {
1412
+ init_tracestate_impl();
1413
+ }));
1414
+
1415
+ //#endregion
1416
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context-api.js
1417
+ var context;
1418
+ var init_context_api = __esmMin((() => {
1419
+ init_context();
1420
+ context = ContextAPI.getInstance();
1421
+ }));
1422
+
1423
+ //#endregion
1424
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag-api.js
1425
+ var diag;
1426
+ var init_diag_api = __esmMin((() => {
1427
+ init_diag();
1428
+ diag = DiagAPI.instance();
1429
+ }));
1430
+
1431
+ //#endregion
1432
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js
1433
+ var NoopMeterProvider, NOOP_METER_PROVIDER;
1434
+ var init_NoopMeterProvider = __esmMin((() => {
1435
+ init_NoopMeter();
1436
+ NoopMeterProvider = function() {
1437
+ function NoopMeterProvider() {}
1438
+ NoopMeterProvider.prototype.getMeter = function(_name, _version, _options) {
1439
+ return NOOP_METER;
1440
+ };
1441
+ return NoopMeterProvider;
1442
+ }();
1443
+ NOOP_METER_PROVIDER = new NoopMeterProvider();
1444
+ }));
1445
+
1446
+ //#endregion
1447
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/metrics.js
1448
+ var API_NAME$2, MetricsAPI;
1449
+ var init_metrics = __esmMin((() => {
1450
+ init_NoopMeterProvider();
1451
+ init_global_utils();
1452
+ init_diag();
1453
+ API_NAME$2 = "metrics";
1454
+ MetricsAPI = function() {
1455
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
1456
+ function MetricsAPI() {}
1457
+ /** Get the singleton instance of the Metrics API */
1458
+ MetricsAPI.getInstance = function() {
1459
+ if (!this._instance) this._instance = new MetricsAPI();
1460
+ return this._instance;
1461
+ };
1462
+ /**
1463
+ * Set the current global meter provider.
1464
+ * Returns true if the meter provider was successfully registered, else false.
1465
+ */
1466
+ MetricsAPI.prototype.setGlobalMeterProvider = function(provider) {
1467
+ return registerGlobal(API_NAME$2, provider, DiagAPI.instance());
1468
+ };
1469
+ /**
1470
+ * Returns the global meter provider.
1471
+ */
1472
+ MetricsAPI.prototype.getMeterProvider = function() {
1473
+ return getGlobal(API_NAME$2) || NOOP_METER_PROVIDER;
1474
+ };
1475
+ /**
1476
+ * Returns a meter from the global meter provider.
1477
+ */
1478
+ MetricsAPI.prototype.getMeter = function(name, version, options) {
1479
+ return this.getMeterProvider().getMeter(name, version, options);
1480
+ };
1481
+ /** Remove the global meter provider */
1482
+ MetricsAPI.prototype.disable = function() {
1483
+ unregisterGlobal(API_NAME$2, DiagAPI.instance());
1484
+ };
1485
+ return MetricsAPI;
1486
+ }();
1487
+ }));
1488
+
1489
+ //#endregion
1490
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics-api.js
1491
+ var metrics;
1492
+ var init_metrics_api = __esmMin((() => {
1493
+ init_metrics();
1494
+ metrics = MetricsAPI.getInstance();
1495
+ }));
1496
+
1497
+ //#endregion
1498
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
1499
+ var NoopTextMapPropagator;
1500
+ var init_NoopTextMapPropagator = __esmMin((() => {
1501
+ NoopTextMapPropagator = function() {
1502
+ function NoopTextMapPropagator() {}
1503
+ /** Noop inject function does nothing */
1504
+ NoopTextMapPropagator.prototype.inject = function(_context, _carrier) {};
1505
+ /** Noop extract function does nothing and returns the input context */
1506
+ NoopTextMapPropagator.prototype.extract = function(context, _carrier) {
1507
+ return context;
1508
+ };
1509
+ NoopTextMapPropagator.prototype.fields = function() {
1510
+ return [];
1511
+ };
1512
+ return NoopTextMapPropagator;
1513
+ }();
1514
+ }));
1515
+
1516
+ //#endregion
1517
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
1518
+ /**
1519
+ * Retrieve the current baggage from the given context
1520
+ *
1521
+ * @param {Context} Context that manage all context values
1522
+ * @returns {Baggage} Extracted baggage from the context
1523
+ */
1524
+ function getBaggage(context) {
1525
+ return context.getValue(BAGGAGE_KEY) || void 0;
1526
+ }
1527
+ /**
1528
+ * Retrieve the current baggage from the active/current context
1529
+ *
1530
+ * @returns {Baggage} Extracted baggage from the context
1531
+ */
1532
+ function getActiveBaggage() {
1533
+ return getBaggage(ContextAPI.getInstance().active());
1534
+ }
1535
+ /**
1536
+ * Store a baggage in the given context
1537
+ *
1538
+ * @param {Context} Context that manage all context values
1539
+ * @param {Baggage} baggage that will be set in the actual context
1540
+ */
1541
+ function setBaggage(context, baggage) {
1542
+ return context.setValue(BAGGAGE_KEY, baggage);
1543
+ }
1544
+ /**
1545
+ * Delete the baggage stored in the given context
1546
+ *
1547
+ * @param {Context} Context that manage all context values
1548
+ */
1549
+ function deleteBaggage(context) {
1550
+ return context.deleteValue(BAGGAGE_KEY);
1551
+ }
1552
+ var BAGGAGE_KEY;
1553
+ var init_context_helpers = __esmMin((() => {
1554
+ init_context();
1555
+ init_context$1();
1556
+ BAGGAGE_KEY = createContextKey("OpenTelemetry Baggage Key");
1557
+ }));
1558
+
1559
+ //#endregion
1560
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/propagation.js
1561
+ var API_NAME$1, NOOP_TEXT_MAP_PROPAGATOR, PropagationAPI;
1562
+ var init_propagation = __esmMin((() => {
1563
+ init_global_utils();
1564
+ init_NoopTextMapPropagator();
1565
+ init_TextMapPropagator();
1566
+ init_context_helpers();
1567
+ init_utils$1();
1568
+ init_diag();
1569
+ API_NAME$1 = "propagation";
1570
+ NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();
1571
+ PropagationAPI = function() {
1572
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
1573
+ function PropagationAPI() {
1574
+ this.createBaggage = createBaggage;
1575
+ this.getBaggage = getBaggage;
1576
+ this.getActiveBaggage = getActiveBaggage;
1577
+ this.setBaggage = setBaggage;
1578
+ this.deleteBaggage = deleteBaggage;
1579
+ }
1580
+ /** Get the singleton instance of the Propagator API */
1581
+ PropagationAPI.getInstance = function() {
1582
+ if (!this._instance) this._instance = new PropagationAPI();
1583
+ return this._instance;
1584
+ };
1585
+ /**
1586
+ * Set the current propagator.
1587
+ *
1588
+ * @returns true if the propagator was successfully registered, else false
1589
+ */
1590
+ PropagationAPI.prototype.setGlobalPropagator = function(propagator) {
1591
+ return registerGlobal(API_NAME$1, propagator, DiagAPI.instance());
1592
+ };
1593
+ /**
1594
+ * Inject context into a carrier to be propagated inter-process
1595
+ *
1596
+ * @param context Context carrying tracing data to inject
1597
+ * @param carrier carrier to inject context into
1598
+ * @param setter Function used to set values on the carrier
1599
+ */
1600
+ PropagationAPI.prototype.inject = function(context, carrier, setter) {
1601
+ if (setter === void 0) setter = defaultTextMapSetter;
1602
+ return this._getGlobalPropagator().inject(context, carrier, setter);
1603
+ };
1604
+ /**
1605
+ * Extract context from a carrier
1606
+ *
1607
+ * @param context Context which the newly created context will inherit from
1608
+ * @param carrier Carrier to extract context from
1609
+ * @param getter Function used to extract keys from a carrier
1610
+ */
1611
+ PropagationAPI.prototype.extract = function(context, carrier, getter) {
1612
+ if (getter === void 0) getter = defaultTextMapGetter;
1613
+ return this._getGlobalPropagator().extract(context, carrier, getter);
1614
+ };
1615
+ /**
1616
+ * Return a list of all fields which may be used by the propagator.
1617
+ */
1618
+ PropagationAPI.prototype.fields = function() {
1619
+ return this._getGlobalPropagator().fields();
1620
+ };
1621
+ /** Remove the global propagator */
1622
+ PropagationAPI.prototype.disable = function() {
1623
+ unregisterGlobal(API_NAME$1, DiagAPI.instance());
1624
+ };
1625
+ PropagationAPI.prototype._getGlobalPropagator = function() {
1626
+ return getGlobal(API_NAME$1) || NOOP_TEXT_MAP_PROPAGATOR;
1627
+ };
1628
+ return PropagationAPI;
1629
+ }();
1630
+ }));
1631
+
1632
+ //#endregion
1633
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation-api.js
1634
+ var propagation;
1635
+ var init_propagation_api = __esmMin((() => {
1636
+ init_propagation();
1637
+ propagation = PropagationAPI.getInstance();
1638
+ }));
1639
+
1640
+ //#endregion
1641
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/trace.js
1642
+ var API_NAME, TraceAPI;
1643
+ var init_trace = __esmMin((() => {
1644
+ init_global_utils();
1645
+ init_ProxyTracerProvider();
1646
+ init_spancontext_utils();
1647
+ init_context_utils();
1648
+ init_diag();
1649
+ API_NAME = "trace";
1650
+ TraceAPI = function() {
1651
+ /** Empty private constructor prevents end users from constructing a new instance of the API */
1652
+ function TraceAPI() {
1653
+ this._proxyTracerProvider = new ProxyTracerProvider();
1654
+ this.wrapSpanContext = wrapSpanContext;
1655
+ this.isSpanContextValid = isSpanContextValid;
1656
+ this.deleteSpan = deleteSpan;
1657
+ this.getSpan = getSpan;
1658
+ this.getActiveSpan = getActiveSpan;
1659
+ this.getSpanContext = getSpanContext;
1660
+ this.setSpan = setSpan;
1661
+ this.setSpanContext = setSpanContext;
1662
+ }
1663
+ /** Get the singleton instance of the Trace API */
1664
+ TraceAPI.getInstance = function() {
1665
+ if (!this._instance) this._instance = new TraceAPI();
1666
+ return this._instance;
1667
+ };
1668
+ /**
1669
+ * Set the current global tracer.
1670
+ *
1671
+ * @returns true if the tracer provider was successfully registered, else false
1672
+ */
1673
+ TraceAPI.prototype.setGlobalTracerProvider = function(provider) {
1674
+ var success = registerGlobal(API_NAME, this._proxyTracerProvider, DiagAPI.instance());
1675
+ if (success) this._proxyTracerProvider.setDelegate(provider);
1676
+ return success;
1677
+ };
1678
+ /**
1679
+ * Returns the global tracer provider.
1680
+ */
1681
+ TraceAPI.prototype.getTracerProvider = function() {
1682
+ return getGlobal(API_NAME) || this._proxyTracerProvider;
1683
+ };
1684
+ /**
1685
+ * Returns a tracer from the global tracer provider.
1686
+ */
1687
+ TraceAPI.prototype.getTracer = function(name, version) {
1688
+ return this.getTracerProvider().getTracer(name, version);
1689
+ };
1690
+ /** Remove the global tracer provider */
1691
+ TraceAPI.prototype.disable = function() {
1692
+ unregisterGlobal(API_NAME, DiagAPI.instance());
1693
+ this._proxyTracerProvider = new ProxyTracerProvider();
1694
+ };
1695
+ return TraceAPI;
1696
+ }();
1697
+ }));
1698
+
1699
+ //#endregion
1700
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace-api.js
1701
+ var trace;
1702
+ var init_trace_api = __esmMin((() => {
1703
+ init_trace();
1704
+ trace = TraceAPI.getInstance();
1705
+ }));
1706
+
1707
+ //#endregion
1708
+ //#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/index.js
1709
+ var esm_exports = /* @__PURE__ */ __exportAll({
1710
+ DiagConsoleLogger: () => DiagConsoleLogger,
1711
+ DiagLogLevel: () => DiagLogLevel,
1712
+ INVALID_SPANID: () => INVALID_SPANID,
1713
+ INVALID_SPAN_CONTEXT: () => INVALID_SPAN_CONTEXT,
1714
+ INVALID_TRACEID: () => INVALID_TRACEID,
1715
+ ProxyTracer: () => ProxyTracer,
1716
+ ProxyTracerProvider: () => ProxyTracerProvider,
1717
+ ROOT_CONTEXT: () => ROOT_CONTEXT,
1718
+ SamplingDecision: () => SamplingDecision,
1719
+ SpanKind: () => SpanKind,
1720
+ SpanStatusCode: () => SpanStatusCode,
1721
+ TraceFlags: () => TraceFlags,
1722
+ ValueType: () => ValueType,
1723
+ baggageEntryMetadataFromString: () => baggageEntryMetadataFromString,
1724
+ context: () => context,
1725
+ createContextKey: () => createContextKey,
1726
+ createNoopMeter: () => createNoopMeter,
1727
+ createTraceState: () => createTraceState,
1728
+ default: () => esm_default,
1729
+ defaultTextMapGetter: () => defaultTextMapGetter,
1730
+ defaultTextMapSetter: () => defaultTextMapSetter,
1731
+ diag: () => diag,
1732
+ isSpanContextValid: () => isSpanContextValid,
1733
+ isValidSpanId: () => isValidSpanId,
1734
+ isValidTraceId: () => isValidTraceId,
1735
+ metrics: () => metrics,
1736
+ propagation: () => propagation,
1737
+ trace: () => trace
1738
+ });
1739
+ var esm_default;
1740
+ var init_esm = __esmMin((() => {
1741
+ init_utils$1();
1742
+ init_context$1();
1743
+ init_consoleLogger();
1744
+ init_types();
1745
+ init_NoopMeter();
1746
+ init_Metric();
1747
+ init_TextMapPropagator();
1748
+ init_ProxyTracer();
1749
+ init_ProxyTracerProvider();
1750
+ init_SamplingResult();
1751
+ init_span_kind();
1752
+ init_status();
1753
+ init_trace_flags();
1754
+ init_utils();
1755
+ init_spancontext_utils();
1756
+ init_invalid_span_constants();
1757
+ init_context_api();
1758
+ init_diag_api();
1759
+ init_metrics_api();
1760
+ init_propagation_api();
1761
+ init_trace_api();
1762
+ esm_default = {
1763
+ context,
1764
+ diag,
1765
+ metrics,
1766
+ propagation,
1767
+ trace
1768
+ };
1769
+ }));
1770
+
1771
+ //#endregion
1772
+ export { diag as a, init_consoleLogger as c, __commonJSMin as d, __esmMin as f, __toESM as g, __toCommonJS as h, metrics as i, DiagLogLevel as l, __require as m, init_esm as n, init_diag_api as o, __exportAll as p, init_metrics_api as r, DiagConsoleLogger as s, esm_exports as t, init_types as u };
1773
+ //# sourceMappingURL=esm-CSGQo6hb.js.map