@ms-cloudpack/telemetry 0.5.0 → 0.5.2

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.
@@ -1,3 +1,9 @@
1
+ import { createRequire as topLevelCreateRequire } from 'node:module';
2
+ import topLevelPath from 'node:path';
3
+ import topLevelUrl from 'node:url';
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = topLevelUrl.fileURLToPath(import.meta.url);
6
+ const __dirname = topLevelPath.dirname(__filename);
1
7
  var __create = Object.create;
2
8
  var __defProp = Object.defineProperty;
3
9
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -40,24 +46,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
46
  ));
41
47
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
48
 
43
- // ../../scripts/esbuildCjsShims.js
44
- import { createRequire } from "node:module";
45
- import path from "node:path";
46
- import url from "node:url";
47
- var init_esbuildCjsShims = __esm({
48
- "../../scripts/esbuildCjsShims.js"() {
49
- "use strict";
50
- globalThis.require = createRequire(import.meta.url);
51
- globalThis.__filename = url.fileURLToPath(import.meta.url);
52
- globalThis.__dirname = path.dirname(__filename);
53
- }
54
- });
55
-
56
49
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/platform/node/globalThis.js
57
50
  var _globalThis;
58
51
  var init_globalThis = __esm({
59
52
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/platform/node/globalThis.js"() {
60
- init_esbuildCjsShims();
61
53
  _globalThis = typeof globalThis === "object" ? globalThis : global;
62
54
  }
63
55
  });
@@ -65,7 +57,6 @@ var init_globalThis = __esm({
65
57
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/platform/node/index.js
66
58
  var init_node = __esm({
67
59
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/platform/node/index.js"() {
68
- init_esbuildCjsShims();
69
60
  init_globalThis();
70
61
  }
71
62
  });
@@ -73,7 +64,6 @@ var init_node = __esm({
73
64
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/platform/index.js
74
65
  var init_platform = __esm({
75
66
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/platform/index.js"() {
76
- init_esbuildCjsShims();
77
67
  init_node();
78
68
  }
79
69
  });
@@ -82,7 +72,6 @@ var init_platform = __esm({
82
72
  var VERSION;
83
73
  var init_version = __esm({
84
74
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/version.js"() {
85
- init_esbuildCjsShims();
86
75
  VERSION = "1.8.0";
87
76
  }
88
77
  });
@@ -156,7 +145,6 @@ function _makeCompatibilityCheck(ownVersion) {
156
145
  var re, isCompatible;
157
146
  var init_semver = __esm({
158
147
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/internal/semver.js"() {
159
- init_esbuildCjsShims();
160
148
  init_version();
161
149
  re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
162
150
  __name(_makeCompatibilityCheck, "_makeCompatibilityCheck");
@@ -205,7 +193,6 @@ function unregisterGlobal(type, diag3) {
205
193
  var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
206
194
  var init_global_utils = __esm({
207
195
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/internal/global-utils.js"() {
208
- init_esbuildCjsShims();
209
196
  init_platform();
210
197
  init_version();
211
198
  init_semver();
@@ -218,108 +205,6 @@ var init_global_utils = __esm({
218
205
  }
219
206
  });
220
207
 
221
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/context.js
222
- function createContextKey(description) {
223
- return Symbol.for(description);
224
- }
225
- var BaseContext, ROOT_CONTEXT;
226
- var init_context = __esm({
227
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/context.js"() {
228
- init_esbuildCjsShims();
229
- __name(createContextKey, "createContextKey");
230
- BaseContext = /** @class */
231
- /* @__PURE__ */ function() {
232
- function BaseContext2(parentContext) {
233
- var self = this;
234
- self._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
235
- self.getValue = function(key) {
236
- return self._currentContext.get(key);
237
- };
238
- self.setValue = function(key, value) {
239
- var context2 = new BaseContext2(self._currentContext);
240
- context2._currentContext.set(key, value);
241
- return context2;
242
- };
243
- self.deleteValue = function(key) {
244
- var context2 = new BaseContext2(self._currentContext);
245
- context2._currentContext.delete(key);
246
- return context2;
247
- };
248
- }
249
- __name(BaseContext2, "BaseContext");
250
- return BaseContext2;
251
- }();
252
- ROOT_CONTEXT = new BaseContext();
253
- }
254
- });
255
-
256
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/NoopContextManager.js
257
- var __read, __spreadArray, NoopContextManager;
258
- var init_NoopContextManager = __esm({
259
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/NoopContextManager.js"() {
260
- init_esbuildCjsShims();
261
- init_context();
262
- __read = function(o, n) {
263
- var m = typeof Symbol === "function" && o[Symbol.iterator];
264
- if (!m)
265
- return o;
266
- var i = m.call(o), r, ar = [], e;
267
- try {
268
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
269
- ar.push(r.value);
270
- } catch (error) {
271
- e = { error };
272
- } finally {
273
- try {
274
- if (r && !r.done && (m = i["return"]))
275
- m.call(i);
276
- } finally {
277
- if (e)
278
- throw e.error;
279
- }
280
- }
281
- return ar;
282
- };
283
- __spreadArray = function(to, from, pack) {
284
- if (pack || arguments.length === 2)
285
- for (var i = 0, l = from.length, ar; i < l; i++) {
286
- if (ar || !(i in from)) {
287
- if (!ar)
288
- ar = Array.prototype.slice.call(from, 0, i);
289
- ar[i] = from[i];
290
- }
291
- }
292
- return to.concat(ar || Array.prototype.slice.call(from));
293
- };
294
- NoopContextManager = /** @class */
295
- function() {
296
- function NoopContextManager2() {
297
- }
298
- __name(NoopContextManager2, "NoopContextManager");
299
- NoopContextManager2.prototype.active = function() {
300
- return ROOT_CONTEXT;
301
- };
302
- NoopContextManager2.prototype.with = function(_context, fn, thisArg) {
303
- var args = [];
304
- for (var _i = 3; _i < arguments.length; _i++) {
305
- args[_i - 3] = arguments[_i];
306
- }
307
- return fn.call.apply(fn, __spreadArray([thisArg], __read(args), false));
308
- };
309
- NoopContextManager2.prototype.bind = function(_context, target) {
310
- return target;
311
- };
312
- NoopContextManager2.prototype.enable = function() {
313
- return this;
314
- };
315
- NoopContextManager2.prototype.disable = function() {
316
- return this;
317
- };
318
- return NoopContextManager2;
319
- }();
320
- }
321
- });
322
-
323
208
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/ComponentLogger.js
324
209
  function logProxy(funcName, namespace, args) {
325
210
  var logger = getGlobal("diag");
@@ -327,14 +212,13 @@ function logProxy(funcName, namespace, args) {
327
212
  return;
328
213
  }
329
214
  args.unshift(namespace);
330
- return logger[funcName].apply(logger, __spreadArray2([], __read2(args), false));
215
+ return logger[funcName].apply(logger, __spreadArray([], __read(args), false));
331
216
  }
332
- var __read2, __spreadArray2, DiagComponentLogger;
217
+ var __read, __spreadArray, DiagComponentLogger;
333
218
  var init_ComponentLogger = __esm({
334
219
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/ComponentLogger.js"() {
335
- init_esbuildCjsShims();
336
220
  init_global_utils();
337
- __read2 = function(o, n) {
221
+ __read = function(o, n) {
338
222
  var m = typeof Symbol === "function" && o[Symbol.iterator];
339
223
  if (!m)
340
224
  return o;
@@ -355,7 +239,7 @@ var init_ComponentLogger = __esm({
355
239
  }
356
240
  return ar;
357
241
  };
358
- __spreadArray2 = function(to, from, pack) {
242
+ __spreadArray = function(to, from, pack) {
359
243
  if (pack || arguments.length === 2)
360
244
  for (var i = 0, l = from.length, ar; i < l; i++) {
361
245
  if (ar || !(i in from)) {
@@ -417,7 +301,6 @@ var init_ComponentLogger = __esm({
417
301
  var DiagLogLevel;
418
302
  var init_types = __esm({
419
303
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/types.js"() {
420
- init_esbuildCjsShims();
421
304
  (function(DiagLogLevel2) {
422
305
  DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
423
306
  DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
@@ -457,22 +340,20 @@ function createLogLevelDiagLogger(maxLevel, logger) {
457
340
  }
458
341
  var init_logLevelLogger = __esm({
459
342
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/internal/logLevelLogger.js"() {
460
- init_esbuildCjsShims();
461
343
  init_types();
462
344
  __name(createLogLevelDiagLogger, "createLogLevelDiagLogger");
463
345
  }
464
346
  });
465
347
 
466
348
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/diag.js
467
- var __read3, __spreadArray3, API_NAME, DiagAPI;
349
+ var __read2, __spreadArray2, API_NAME, DiagAPI;
468
350
  var init_diag = __esm({
469
351
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/diag.js"() {
470
- init_esbuildCjsShims();
471
352
  init_ComponentLogger();
472
353
  init_logLevelLogger();
473
354
  init_types();
474
355
  init_global_utils();
475
- __read3 = function(o, n) {
356
+ __read2 = function(o, n) {
476
357
  var m = typeof Symbol === "function" && o[Symbol.iterator];
477
358
  if (!m)
478
359
  return o;
@@ -493,7 +374,7 @@ var init_diag = __esm({
493
374
  }
494
375
  return ar;
495
376
  };
496
- __spreadArray3 = function(to, from, pack) {
377
+ __spreadArray2 = function(to, from, pack) {
497
378
  if (pack || arguments.length === 2)
498
379
  for (var i = 0, l = from.length, ar; i < l; i++) {
499
380
  if (ar || !(i in from)) {
@@ -517,7 +398,7 @@ var init_diag = __esm({
517
398
  var logger = getGlobal("diag");
518
399
  if (!logger)
519
400
  return;
520
- return logger[funcName].apply(logger, __spreadArray3([], __read3(args), false));
401
+ return logger[funcName].apply(logger, __spreadArray2([], __read2(args), false));
521
402
  };
522
403
  }
523
404
  __name(_logProxy, "_logProxy");
@@ -559,23 +440,342 @@ var init_diag = __esm({
559
440
  self.warn = _logProxy("warn");
560
441
  self.error = _logProxy("error");
561
442
  }
562
- __name(DiagAPI2, "DiagAPI");
563
- DiagAPI2.instance = function() {
564
- if (!this._instance) {
565
- this._instance = new DiagAPI2();
443
+ __name(DiagAPI2, "DiagAPI");
444
+ DiagAPI2.instance = function() {
445
+ if (!this._instance) {
446
+ this._instance = new DiagAPI2();
447
+ }
448
+ return this._instance;
449
+ };
450
+ return DiagAPI2;
451
+ }();
452
+ }
453
+ });
454
+
455
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag-api.js
456
+ var diag;
457
+ var init_diag_api = __esm({
458
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag-api.js"() {
459
+ init_diag();
460
+ diag = DiagAPI.instance();
461
+ }
462
+ });
463
+
464
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeter.js
465
+ function createNoopMeter() {
466
+ return NOOP_METER;
467
+ }
468
+ var __extends, NoopMeter, NoopMetric, NoopCounterMetric, NoopUpDownCounterMetric, NoopHistogramMetric, NoopObservableMetric, NoopObservableCounterMetric, NoopObservableGaugeMetric, NoopObservableUpDownCounterMetric, NOOP_METER, NOOP_COUNTER_METRIC, NOOP_HISTOGRAM_METRIC, NOOP_UP_DOWN_COUNTER_METRIC, NOOP_OBSERVABLE_COUNTER_METRIC, NOOP_OBSERVABLE_GAUGE_METRIC, NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
469
+ var init_NoopMeter = __esm({
470
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeter.js"() {
471
+ __extends = /* @__PURE__ */ function() {
472
+ var extendStatics = /* @__PURE__ */ __name(function(d, b) {
473
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
474
+ d2.__proto__ = b2;
475
+ } || function(d2, b2) {
476
+ for (var p in b2)
477
+ if (Object.prototype.hasOwnProperty.call(b2, p))
478
+ d2[p] = b2[p];
479
+ };
480
+ return extendStatics(d, b);
481
+ }, "extendStatics");
482
+ return function(d, b) {
483
+ if (typeof b !== "function" && b !== null)
484
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
485
+ extendStatics(d, b);
486
+ function __() {
487
+ this.constructor = d;
488
+ }
489
+ __name(__, "__");
490
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
491
+ };
492
+ }();
493
+ NoopMeter = /** @class */
494
+ function() {
495
+ function NoopMeter2() {
496
+ }
497
+ __name(NoopMeter2, "NoopMeter");
498
+ NoopMeter2.prototype.createHistogram = function(_name, _options) {
499
+ return NOOP_HISTOGRAM_METRIC;
500
+ };
501
+ NoopMeter2.prototype.createCounter = function(_name, _options) {
502
+ return NOOP_COUNTER_METRIC;
503
+ };
504
+ NoopMeter2.prototype.createUpDownCounter = function(_name, _options) {
505
+ return NOOP_UP_DOWN_COUNTER_METRIC;
506
+ };
507
+ NoopMeter2.prototype.createObservableGauge = function(_name, _options) {
508
+ return NOOP_OBSERVABLE_GAUGE_METRIC;
509
+ };
510
+ NoopMeter2.prototype.createObservableCounter = function(_name, _options) {
511
+ return NOOP_OBSERVABLE_COUNTER_METRIC;
512
+ };
513
+ NoopMeter2.prototype.createObservableUpDownCounter = function(_name, _options) {
514
+ return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
515
+ };
516
+ NoopMeter2.prototype.addBatchObservableCallback = function(_callback, _observables) {
517
+ };
518
+ NoopMeter2.prototype.removeBatchObservableCallback = function(_callback) {
519
+ };
520
+ return NoopMeter2;
521
+ }();
522
+ NoopMetric = /** @class */
523
+ /* @__PURE__ */ function() {
524
+ function NoopMetric2() {
525
+ }
526
+ __name(NoopMetric2, "NoopMetric");
527
+ return NoopMetric2;
528
+ }();
529
+ NoopCounterMetric = /** @class */
530
+ function(_super) {
531
+ __extends(NoopCounterMetric2, _super);
532
+ function NoopCounterMetric2() {
533
+ return _super !== null && _super.apply(this, arguments) || this;
534
+ }
535
+ __name(NoopCounterMetric2, "NoopCounterMetric");
536
+ NoopCounterMetric2.prototype.add = function(_value, _attributes) {
537
+ };
538
+ return NoopCounterMetric2;
539
+ }(NoopMetric);
540
+ NoopUpDownCounterMetric = /** @class */
541
+ function(_super) {
542
+ __extends(NoopUpDownCounterMetric2, _super);
543
+ function NoopUpDownCounterMetric2() {
544
+ return _super !== null && _super.apply(this, arguments) || this;
545
+ }
546
+ __name(NoopUpDownCounterMetric2, "NoopUpDownCounterMetric");
547
+ NoopUpDownCounterMetric2.prototype.add = function(_value, _attributes) {
548
+ };
549
+ return NoopUpDownCounterMetric2;
550
+ }(NoopMetric);
551
+ NoopHistogramMetric = /** @class */
552
+ function(_super) {
553
+ __extends(NoopHistogramMetric2, _super);
554
+ function NoopHistogramMetric2() {
555
+ return _super !== null && _super.apply(this, arguments) || this;
556
+ }
557
+ __name(NoopHistogramMetric2, "NoopHistogramMetric");
558
+ NoopHistogramMetric2.prototype.record = function(_value, _attributes) {
559
+ };
560
+ return NoopHistogramMetric2;
561
+ }(NoopMetric);
562
+ NoopObservableMetric = /** @class */
563
+ function() {
564
+ function NoopObservableMetric2() {
565
+ }
566
+ __name(NoopObservableMetric2, "NoopObservableMetric");
567
+ NoopObservableMetric2.prototype.addCallback = function(_callback) {
568
+ };
569
+ NoopObservableMetric2.prototype.removeCallback = function(_callback) {
570
+ };
571
+ return NoopObservableMetric2;
572
+ }();
573
+ NoopObservableCounterMetric = /** @class */
574
+ function(_super) {
575
+ __extends(NoopObservableCounterMetric2, _super);
576
+ function NoopObservableCounterMetric2() {
577
+ return _super !== null && _super.apply(this, arguments) || this;
578
+ }
579
+ __name(NoopObservableCounterMetric2, "NoopObservableCounterMetric");
580
+ return NoopObservableCounterMetric2;
581
+ }(NoopObservableMetric);
582
+ NoopObservableGaugeMetric = /** @class */
583
+ function(_super) {
584
+ __extends(NoopObservableGaugeMetric2, _super);
585
+ function NoopObservableGaugeMetric2() {
586
+ return _super !== null && _super.apply(this, arguments) || this;
587
+ }
588
+ __name(NoopObservableGaugeMetric2, "NoopObservableGaugeMetric");
589
+ return NoopObservableGaugeMetric2;
590
+ }(NoopObservableMetric);
591
+ NoopObservableUpDownCounterMetric = /** @class */
592
+ function(_super) {
593
+ __extends(NoopObservableUpDownCounterMetric2, _super);
594
+ function NoopObservableUpDownCounterMetric2() {
595
+ return _super !== null && _super.apply(this, arguments) || this;
596
+ }
597
+ __name(NoopObservableUpDownCounterMetric2, "NoopObservableUpDownCounterMetric");
598
+ return NoopObservableUpDownCounterMetric2;
599
+ }(NoopObservableMetric);
600
+ NOOP_METER = new NoopMeter();
601
+ NOOP_COUNTER_METRIC = new NoopCounterMetric();
602
+ NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
603
+ NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
604
+ NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
605
+ NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
606
+ NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
607
+ __name(createNoopMeter, "createNoopMeter");
608
+ }
609
+ });
610
+
611
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeterProvider.js
612
+ var NoopMeterProvider, NOOP_METER_PROVIDER;
613
+ var init_NoopMeterProvider = __esm({
614
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeterProvider.js"() {
615
+ init_NoopMeter();
616
+ NoopMeterProvider = /** @class */
617
+ function() {
618
+ function NoopMeterProvider2() {
619
+ }
620
+ __name(NoopMeterProvider2, "NoopMeterProvider");
621
+ NoopMeterProvider2.prototype.getMeter = function(_name, _version, _options) {
622
+ return NOOP_METER;
623
+ };
624
+ return NoopMeterProvider2;
625
+ }();
626
+ NOOP_METER_PROVIDER = new NoopMeterProvider();
627
+ }
628
+ });
629
+
630
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/metrics.js
631
+ var API_NAME2, MetricsAPI;
632
+ var init_metrics = __esm({
633
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/metrics.js"() {
634
+ init_NoopMeterProvider();
635
+ init_global_utils();
636
+ init_diag();
637
+ API_NAME2 = "metrics";
638
+ MetricsAPI = /** @class */
639
+ function() {
640
+ function MetricsAPI2() {
641
+ }
642
+ __name(MetricsAPI2, "MetricsAPI");
643
+ MetricsAPI2.getInstance = function() {
644
+ if (!this._instance) {
645
+ this._instance = new MetricsAPI2();
646
+ }
647
+ return this._instance;
648
+ };
649
+ MetricsAPI2.prototype.setGlobalMeterProvider = function(provider) {
650
+ return registerGlobal(API_NAME2, provider, DiagAPI.instance());
651
+ };
652
+ MetricsAPI2.prototype.getMeterProvider = function() {
653
+ return getGlobal(API_NAME2) || NOOP_METER_PROVIDER;
654
+ };
655
+ MetricsAPI2.prototype.getMeter = function(name, version, options) {
656
+ return this.getMeterProvider().getMeter(name, version, options);
657
+ };
658
+ MetricsAPI2.prototype.disable = function() {
659
+ unregisterGlobal(API_NAME2, DiagAPI.instance());
660
+ };
661
+ return MetricsAPI2;
662
+ }();
663
+ }
664
+ });
665
+
666
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics-api.js
667
+ var metrics;
668
+ var init_metrics_api = __esm({
669
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics-api.js"() {
670
+ init_metrics();
671
+ metrics = MetricsAPI.getInstance();
672
+ }
673
+ });
674
+
675
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/context.js
676
+ function createContextKey(description) {
677
+ return Symbol.for(description);
678
+ }
679
+ var BaseContext, ROOT_CONTEXT;
680
+ var init_context = __esm({
681
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/context.js"() {
682
+ __name(createContextKey, "createContextKey");
683
+ BaseContext = /** @class */
684
+ /* @__PURE__ */ function() {
685
+ function BaseContext2(parentContext) {
686
+ var self = this;
687
+ self._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
688
+ self.getValue = function(key) {
689
+ return self._currentContext.get(key);
690
+ };
691
+ self.setValue = function(key, value) {
692
+ var context2 = new BaseContext2(self._currentContext);
693
+ context2._currentContext.set(key, value);
694
+ return context2;
695
+ };
696
+ self.deleteValue = function(key) {
697
+ var context2 = new BaseContext2(self._currentContext);
698
+ context2._currentContext.delete(key);
699
+ return context2;
700
+ };
701
+ }
702
+ __name(BaseContext2, "BaseContext");
703
+ return BaseContext2;
704
+ }();
705
+ ROOT_CONTEXT = new BaseContext();
706
+ }
707
+ });
708
+
709
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/NoopContextManager.js
710
+ var __read3, __spreadArray3, NoopContextManager;
711
+ var init_NoopContextManager = __esm({
712
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/NoopContextManager.js"() {
713
+ init_context();
714
+ __read3 = function(o, n) {
715
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
716
+ if (!m)
717
+ return o;
718
+ var i = m.call(o), r, ar = [], e;
719
+ try {
720
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
721
+ ar.push(r.value);
722
+ } catch (error) {
723
+ e = { error };
724
+ } finally {
725
+ try {
726
+ if (r && !r.done && (m = i["return"]))
727
+ m.call(i);
728
+ } finally {
729
+ if (e)
730
+ throw e.error;
731
+ }
732
+ }
733
+ return ar;
734
+ };
735
+ __spreadArray3 = function(to, from, pack) {
736
+ if (pack || arguments.length === 2)
737
+ for (var i = 0, l = from.length, ar; i < l; i++) {
738
+ if (ar || !(i in from)) {
739
+ if (!ar)
740
+ ar = Array.prototype.slice.call(from, 0, i);
741
+ ar[i] = from[i];
742
+ }
743
+ }
744
+ return to.concat(ar || Array.prototype.slice.call(from));
745
+ };
746
+ NoopContextManager = /** @class */
747
+ function() {
748
+ function NoopContextManager2() {
749
+ }
750
+ __name(NoopContextManager2, "NoopContextManager");
751
+ NoopContextManager2.prototype.active = function() {
752
+ return ROOT_CONTEXT;
753
+ };
754
+ NoopContextManager2.prototype.with = function(_context, fn, thisArg) {
755
+ var args = [];
756
+ for (var _i = 3; _i < arguments.length; _i++) {
757
+ args[_i - 3] = arguments[_i];
566
758
  }
567
- return this._instance;
759
+ return fn.call.apply(fn, __spreadArray3([thisArg], __read3(args), false));
568
760
  };
569
- return DiagAPI2;
761
+ NoopContextManager2.prototype.bind = function(_context, target) {
762
+ return target;
763
+ };
764
+ NoopContextManager2.prototype.enable = function() {
765
+ return this;
766
+ };
767
+ NoopContextManager2.prototype.disable = function() {
768
+ return this;
769
+ };
770
+ return NoopContextManager2;
570
771
  }();
571
772
  }
572
773
  });
573
774
 
574
775
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/context.js
575
- var __read4, __spreadArray4, API_NAME2, NOOP_CONTEXT_MANAGER, ContextAPI;
776
+ var __read4, __spreadArray4, API_NAME3, NOOP_CONTEXT_MANAGER, ContextAPI;
576
777
  var init_context2 = __esm({
577
778
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/context.js"() {
578
- init_esbuildCjsShims();
579
779
  init_NoopContextManager();
580
780
  init_global_utils();
581
781
  init_diag();
@@ -611,7 +811,7 @@ var init_context2 = __esm({
611
811
  }
612
812
  return to.concat(ar || Array.prototype.slice.call(from));
613
813
  };
614
- API_NAME2 = "context";
814
+ API_NAME3 = "context";
615
815
  NOOP_CONTEXT_MANAGER = new NoopContextManager();
616
816
  ContextAPI = /** @class */
617
817
  function() {
@@ -625,7 +825,7 @@ var init_context2 = __esm({
625
825
  return this._instance;
626
826
  };
627
827
  ContextAPI2.prototype.setGlobalContextManager = function(contextManager) {
628
- return registerGlobal(API_NAME2, contextManager, DiagAPI.instance());
828
+ return registerGlobal(API_NAME3, contextManager, DiagAPI.instance());
629
829
  };
630
830
  ContextAPI2.prototype.active = function() {
631
831
  return this._getContextManager().active();
@@ -642,11 +842,11 @@ var init_context2 = __esm({
642
842
  return this._getContextManager().bind(context2, target);
643
843
  };
644
844
  ContextAPI2.prototype._getContextManager = function() {
645
- return getGlobal(API_NAME2) || NOOP_CONTEXT_MANAGER;
845
+ return getGlobal(API_NAME3) || NOOP_CONTEXT_MANAGER;
646
846
  };
647
847
  ContextAPI2.prototype.disable = function() {
648
848
  this._getContextManager().disable();
649
- unregisterGlobal(API_NAME2, DiagAPI.instance());
849
+ unregisterGlobal(API_NAME3, DiagAPI.instance());
650
850
  };
651
851
  return ContextAPI2;
652
852
  }();
@@ -657,7 +857,6 @@ var init_context2 = __esm({
657
857
  var TraceFlags;
658
858
  var init_trace_flags = __esm({
659
859
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/trace_flags.js"() {
660
- init_esbuildCjsShims();
661
860
  (function(TraceFlags2) {
662
861
  TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
663
862
  TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
@@ -669,7 +868,6 @@ var init_trace_flags = __esm({
669
868
  var INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT;
670
869
  var init_invalid_span_constants = __esm({
671
870
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/invalid-span-constants.js"() {
672
- init_esbuildCjsShims();
673
871
  init_trace_flags();
674
872
  INVALID_SPANID = "0000000000000000";
675
873
  INVALID_TRACEID = "00000000000000000000000000000000";
@@ -685,7 +883,6 @@ var init_invalid_span_constants = __esm({
685
883
  var NonRecordingSpan;
686
884
  var init_NonRecordingSpan = __esm({
687
885
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/NonRecordingSpan.js"() {
688
- init_esbuildCjsShims();
689
886
  init_invalid_span_constants();
690
887
  NonRecordingSpan = /** @class */
691
888
  function() {
@@ -749,7 +946,6 @@ function getSpanContext(context2) {
749
946
  var SPAN_KEY;
750
947
  var init_context_utils = __esm({
751
948
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/context-utils.js"() {
752
- init_esbuildCjsShims();
753
949
  init_context();
754
950
  init_NonRecordingSpan();
755
951
  init_context2();
@@ -779,7 +975,6 @@ function wrapSpanContext(spanContext) {
779
975
  var VALID_TRACEID_REGEX, VALID_SPANID_REGEX;
780
976
  var init_spancontext_utils = __esm({
781
977
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/spancontext-utils.js"() {
782
- init_esbuildCjsShims();
783
978
  init_invalid_span_constants();
784
979
  init_NonRecordingSpan();
785
980
  VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
@@ -798,7 +993,6 @@ function isSpanContext(spanContext) {
798
993
  var contextApi, NoopTracer;
799
994
  var init_NoopTracer = __esm({
800
995
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/NoopTracer.js"() {
801
- init_esbuildCjsShims();
802
996
  init_context2();
803
997
  init_context_utils();
804
998
  init_NonRecordingSpan();
@@ -855,7 +1049,6 @@ var init_NoopTracer = __esm({
855
1049
  var NOOP_TRACER, ProxyTracer;
856
1050
  var init_ProxyTracer = __esm({
857
1051
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/ProxyTracer.js"() {
858
- init_esbuildCjsShims();
859
1052
  init_NoopTracer();
860
1053
  NOOP_TRACER = new NoopTracer();
861
1054
  ProxyTracer = /** @class */
@@ -894,7 +1087,6 @@ var init_ProxyTracer = __esm({
894
1087
  var NoopTracerProvider;
895
1088
  var init_NoopTracerProvider = __esm({
896
1089
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/NoopTracerProvider.js"() {
897
- init_esbuildCjsShims();
898
1090
  init_NoopTracer();
899
1091
  NoopTracerProvider = /** @class */
900
1092
  function() {
@@ -913,7 +1105,6 @@ var init_NoopTracerProvider = __esm({
913
1105
  var NOOP_TRACER_PROVIDER, ProxyTracerProvider;
914
1106
  var init_ProxyTracerProvider = __esm({
915
1107
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/ProxyTracerProvider.js"() {
916
- init_esbuildCjsShims();
917
1108
  init_ProxyTracer();
918
1109
  init_NoopTracerProvider();
919
1110
  NOOP_TRACER_PROVIDER = new NoopTracerProvider();
@@ -943,16 +1134,15 @@ var init_ProxyTracerProvider = __esm({
943
1134
  });
944
1135
 
945
1136
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/trace.js
946
- var API_NAME3, TraceAPI;
1137
+ var API_NAME4, TraceAPI;
947
1138
  var init_trace = __esm({
948
1139
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/trace.js"() {
949
- init_esbuildCjsShims();
950
1140
  init_global_utils();
951
1141
  init_ProxyTracerProvider();
952
1142
  init_spancontext_utils();
953
1143
  init_context_utils();
954
1144
  init_diag();
955
- API_NAME3 = "trace";
1145
+ API_NAME4 = "trace";
956
1146
  TraceAPI = /** @class */
957
1147
  function() {
958
1148
  function TraceAPI2() {
@@ -974,20 +1164,20 @@ var init_trace = __esm({
974
1164
  return this._instance;
975
1165
  };
976
1166
  TraceAPI2.prototype.setGlobalTracerProvider = function(provider) {
977
- var success = registerGlobal(API_NAME3, this._proxyTracerProvider, DiagAPI.instance());
1167
+ var success = registerGlobal(API_NAME4, this._proxyTracerProvider, DiagAPI.instance());
978
1168
  if (success) {
979
1169
  this._proxyTracerProvider.setDelegate(provider);
980
1170
  }
981
1171
  return success;
982
1172
  };
983
1173
  TraceAPI2.prototype.getTracerProvider = function() {
984
- return getGlobal(API_NAME3) || this._proxyTracerProvider;
1174
+ return getGlobal(API_NAME4) || this._proxyTracerProvider;
985
1175
  };
986
1176
  TraceAPI2.prototype.getTracer = function(name, version) {
987
1177
  return this.getTracerProvider().getTracer(name, version);
988
1178
  };
989
1179
  TraceAPI2.prototype.disable = function() {
990
- unregisterGlobal(API_NAME3, DiagAPI.instance());
1180
+ unregisterGlobal(API_NAME4, DiagAPI.instance());
991
1181
  this._proxyTracerProvider = new ProxyTracerProvider();
992
1182
  };
993
1183
  return TraceAPI2;
@@ -999,7 +1189,6 @@ var init_trace = __esm({
999
1189
  var trace;
1000
1190
  var init_trace_api = __esm({
1001
1191
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace-api.js"() {
1002
- init_esbuildCjsShims();
1003
1192
  init_trace();
1004
1193
  trace = TraceAPI.getInstance();
1005
1194
  }
@@ -1009,7 +1198,6 @@ var init_trace_api = __esm({
1009
1198
  var __read5, __values, BaggageImpl;
1010
1199
  var init_baggage_impl = __esm({
1011
1200
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/baggage/internal/baggage-impl.js"() {
1012
- init_esbuildCjsShims();
1013
1201
  __read5 = function(o, n) {
1014
1202
  var m = typeof Symbol === "function" && o[Symbol.iterator];
1015
1203
  if (!m)
@@ -1111,7 +1299,6 @@ var init_baggage_impl = __esm({
1111
1299
  var baggageEntryMetadataSymbol;
1112
1300
  var init_symbol = __esm({
1113
1301
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/baggage/internal/symbol.js"() {
1114
- init_esbuildCjsShims();
1115
1302
  baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
1116
1303
  }
1117
1304
  });
@@ -1125,7 +1312,7 @@ function createBaggage(entries) {
1125
1312
  }
1126
1313
  function baggageEntryMetadataFromString(str) {
1127
1314
  if (typeof str !== "string") {
1128
- diag.error("Cannot create baggage metadata from unknown type: " + typeof str);
1315
+ diag2.error("Cannot create baggage metadata from unknown type: " + typeof str);
1129
1316
  str = "";
1130
1317
  }
1131
1318
  return {
@@ -1135,14 +1322,13 @@ function baggageEntryMetadataFromString(str) {
1135
1322
  }
1136
1323
  };
1137
1324
  }
1138
- var diag;
1325
+ var diag2;
1139
1326
  var init_utils = __esm({
1140
1327
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/baggage/utils.js"() {
1141
- init_esbuildCjsShims();
1142
1328
  init_diag();
1143
1329
  init_baggage_impl();
1144
1330
  init_symbol();
1145
- diag = DiagAPI.instance();
1331
+ diag2 = DiagAPI.instance();
1146
1332
  __name(createBaggage, "createBaggage");
1147
1333
  __name(baggageEntryMetadataFromString, "baggageEntryMetadataFromString");
1148
1334
  }
@@ -1152,7 +1338,6 @@ var init_utils = __esm({
1152
1338
  var consoleMap, DiagConsoleLogger;
1153
1339
  var init_consoleLogger = __esm({
1154
1340
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/consoleLogger.js"() {
1155
- init_esbuildCjsShims();
1156
1341
  consoleMap = [
1157
1342
  { n: "error", c: "error" },
1158
1343
  { n: "warn", c: "warn" },
@@ -1191,159 +1376,10 @@ var init_consoleLogger = __esm({
1191
1376
  }
1192
1377
  });
1193
1378
 
1194
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeter.js
1195
- function createNoopMeter() {
1196
- return NOOP_METER;
1197
- }
1198
- var __extends, NoopMeter, NoopMetric, NoopCounterMetric, NoopUpDownCounterMetric, NoopHistogramMetric, NoopObservableMetric, NoopObservableCounterMetric, NoopObservableGaugeMetric, NoopObservableUpDownCounterMetric, NOOP_METER, NOOP_COUNTER_METRIC, NOOP_HISTOGRAM_METRIC, NOOP_UP_DOWN_COUNTER_METRIC, NOOP_OBSERVABLE_COUNTER_METRIC, NOOP_OBSERVABLE_GAUGE_METRIC, NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
1199
- var init_NoopMeter = __esm({
1200
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeter.js"() {
1201
- init_esbuildCjsShims();
1202
- __extends = /* @__PURE__ */ function() {
1203
- var extendStatics = /* @__PURE__ */ __name(function(d, b) {
1204
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
1205
- d2.__proto__ = b2;
1206
- } || function(d2, b2) {
1207
- for (var p in b2)
1208
- if (Object.prototype.hasOwnProperty.call(b2, p))
1209
- d2[p] = b2[p];
1210
- };
1211
- return extendStatics(d, b);
1212
- }, "extendStatics");
1213
- return function(d, b) {
1214
- if (typeof b !== "function" && b !== null)
1215
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1216
- extendStatics(d, b);
1217
- function __() {
1218
- this.constructor = d;
1219
- }
1220
- __name(__, "__");
1221
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1222
- };
1223
- }();
1224
- NoopMeter = /** @class */
1225
- function() {
1226
- function NoopMeter2() {
1227
- }
1228
- __name(NoopMeter2, "NoopMeter");
1229
- NoopMeter2.prototype.createHistogram = function(_name, _options) {
1230
- return NOOP_HISTOGRAM_METRIC;
1231
- };
1232
- NoopMeter2.prototype.createCounter = function(_name, _options) {
1233
- return NOOP_COUNTER_METRIC;
1234
- };
1235
- NoopMeter2.prototype.createUpDownCounter = function(_name, _options) {
1236
- return NOOP_UP_DOWN_COUNTER_METRIC;
1237
- };
1238
- NoopMeter2.prototype.createObservableGauge = function(_name, _options) {
1239
- return NOOP_OBSERVABLE_GAUGE_METRIC;
1240
- };
1241
- NoopMeter2.prototype.createObservableCounter = function(_name, _options) {
1242
- return NOOP_OBSERVABLE_COUNTER_METRIC;
1243
- };
1244
- NoopMeter2.prototype.createObservableUpDownCounter = function(_name, _options) {
1245
- return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
1246
- };
1247
- NoopMeter2.prototype.addBatchObservableCallback = function(_callback, _observables) {
1248
- };
1249
- NoopMeter2.prototype.removeBatchObservableCallback = function(_callback) {
1250
- };
1251
- return NoopMeter2;
1252
- }();
1253
- NoopMetric = /** @class */
1254
- /* @__PURE__ */ function() {
1255
- function NoopMetric2() {
1256
- }
1257
- __name(NoopMetric2, "NoopMetric");
1258
- return NoopMetric2;
1259
- }();
1260
- NoopCounterMetric = /** @class */
1261
- function(_super) {
1262
- __extends(NoopCounterMetric2, _super);
1263
- function NoopCounterMetric2() {
1264
- return _super !== null && _super.apply(this, arguments) || this;
1265
- }
1266
- __name(NoopCounterMetric2, "NoopCounterMetric");
1267
- NoopCounterMetric2.prototype.add = function(_value, _attributes) {
1268
- };
1269
- return NoopCounterMetric2;
1270
- }(NoopMetric);
1271
- NoopUpDownCounterMetric = /** @class */
1272
- function(_super) {
1273
- __extends(NoopUpDownCounterMetric2, _super);
1274
- function NoopUpDownCounterMetric2() {
1275
- return _super !== null && _super.apply(this, arguments) || this;
1276
- }
1277
- __name(NoopUpDownCounterMetric2, "NoopUpDownCounterMetric");
1278
- NoopUpDownCounterMetric2.prototype.add = function(_value, _attributes) {
1279
- };
1280
- return NoopUpDownCounterMetric2;
1281
- }(NoopMetric);
1282
- NoopHistogramMetric = /** @class */
1283
- function(_super) {
1284
- __extends(NoopHistogramMetric2, _super);
1285
- function NoopHistogramMetric2() {
1286
- return _super !== null && _super.apply(this, arguments) || this;
1287
- }
1288
- __name(NoopHistogramMetric2, "NoopHistogramMetric");
1289
- NoopHistogramMetric2.prototype.record = function(_value, _attributes) {
1290
- };
1291
- return NoopHistogramMetric2;
1292
- }(NoopMetric);
1293
- NoopObservableMetric = /** @class */
1294
- function() {
1295
- function NoopObservableMetric2() {
1296
- }
1297
- __name(NoopObservableMetric2, "NoopObservableMetric");
1298
- NoopObservableMetric2.prototype.addCallback = function(_callback) {
1299
- };
1300
- NoopObservableMetric2.prototype.removeCallback = function(_callback) {
1301
- };
1302
- return NoopObservableMetric2;
1303
- }();
1304
- NoopObservableCounterMetric = /** @class */
1305
- function(_super) {
1306
- __extends(NoopObservableCounterMetric2, _super);
1307
- function NoopObservableCounterMetric2() {
1308
- return _super !== null && _super.apply(this, arguments) || this;
1309
- }
1310
- __name(NoopObservableCounterMetric2, "NoopObservableCounterMetric");
1311
- return NoopObservableCounterMetric2;
1312
- }(NoopObservableMetric);
1313
- NoopObservableGaugeMetric = /** @class */
1314
- function(_super) {
1315
- __extends(NoopObservableGaugeMetric2, _super);
1316
- function NoopObservableGaugeMetric2() {
1317
- return _super !== null && _super.apply(this, arguments) || this;
1318
- }
1319
- __name(NoopObservableGaugeMetric2, "NoopObservableGaugeMetric");
1320
- return NoopObservableGaugeMetric2;
1321
- }(NoopObservableMetric);
1322
- NoopObservableUpDownCounterMetric = /** @class */
1323
- function(_super) {
1324
- __extends(NoopObservableUpDownCounterMetric2, _super);
1325
- function NoopObservableUpDownCounterMetric2() {
1326
- return _super !== null && _super.apply(this, arguments) || this;
1327
- }
1328
- __name(NoopObservableUpDownCounterMetric2, "NoopObservableUpDownCounterMetric");
1329
- return NoopObservableUpDownCounterMetric2;
1330
- }(NoopObservableMetric);
1331
- NOOP_METER = new NoopMeter();
1332
- NOOP_COUNTER_METRIC = new NoopCounterMetric();
1333
- NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
1334
- NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
1335
- NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
1336
- NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
1337
- NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
1338
- __name(createNoopMeter, "createNoopMeter");
1339
- }
1340
- });
1341
-
1342
1379
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/Metric.js
1343
1380
  var ValueType;
1344
1381
  var init_Metric = __esm({
1345
1382
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/Metric.js"() {
1346
- init_esbuildCjsShims();
1347
1383
  (function(ValueType2) {
1348
1384
  ValueType2[ValueType2["INT"] = 0] = "INT";
1349
1385
  ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
@@ -1355,7 +1391,6 @@ var init_Metric = __esm({
1355
1391
  var defaultTextMapGetter, defaultTextMapSetter;
1356
1392
  var init_TextMapPropagator = __esm({
1357
1393
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/propagation/TextMapPropagator.js"() {
1358
- init_esbuildCjsShims();
1359
1394
  defaultTextMapGetter = {
1360
1395
  get: function(carrier, key) {
1361
1396
  if (carrier == null) {
@@ -1385,7 +1420,6 @@ var init_TextMapPropagator = __esm({
1385
1420
  var SamplingDecision;
1386
1421
  var init_SamplingResult = __esm({
1387
1422
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/SamplingResult.js"() {
1388
- init_esbuildCjsShims();
1389
1423
  (function(SamplingDecision2) {
1390
1424
  SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
1391
1425
  SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
@@ -1398,7 +1432,6 @@ var init_SamplingResult = __esm({
1398
1432
  var SpanKind;
1399
1433
  var init_span_kind = __esm({
1400
1434
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/span_kind.js"() {
1401
- init_esbuildCjsShims();
1402
1435
  (function(SpanKind2) {
1403
1436
  SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
1404
1437
  SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
@@ -1413,7 +1446,6 @@ var init_span_kind = __esm({
1413
1446
  var SpanStatusCode;
1414
1447
  var init_status = __esm({
1415
1448
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/status.js"() {
1416
- init_esbuildCjsShims();
1417
1449
  (function(SpanStatusCode2) {
1418
1450
  SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
1419
1451
  SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
@@ -1432,7 +1464,6 @@ function validateValue(value) {
1432
1464
  var VALID_KEY_CHAR_RANGE, VALID_KEY, VALID_VENDOR_KEY, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
1433
1465
  var init_tracestate_validators = __esm({
1434
1466
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/internal/tracestate-validators.js"() {
1435
- init_esbuildCjsShims();
1436
1467
  VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
1437
1468
  VALID_KEY = "[a-z]" + VALID_KEY_CHAR_RANGE + "{0,255}";
1438
1469
  VALID_VENDOR_KEY = "[a-z0-9]" + VALID_KEY_CHAR_RANGE + "{0,240}@[a-z]" + VALID_KEY_CHAR_RANGE + "{0,13}";
@@ -1448,7 +1479,6 @@ var init_tracestate_validators = __esm({
1448
1479
  var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceStateImpl;
1449
1480
  var init_tracestate_impl = __esm({
1450
1481
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/internal/tracestate-impl.js"() {
1451
- init_esbuildCjsShims();
1452
1482
  init_tracestate_validators();
1453
1483
  MAX_TRACE_STATE_ITEMS = 32;
1454
1484
  MAX_TRACE_STATE_LEN = 512;
@@ -1524,7 +1554,6 @@ function createTraceState(rawTraceState) {
1524
1554
  }
1525
1555
  var init_utils2 = __esm({
1526
1556
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/trace/internal/utils.js"() {
1527
- init_esbuildCjsShims();
1528
1557
  init_tracestate_impl();
1529
1558
  __name(createTraceState, "createTraceState");
1530
1559
  }
@@ -1534,94 +1563,15 @@ var init_utils2 = __esm({
1534
1563
  var context;
1535
1564
  var init_context_api = __esm({
1536
1565
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context-api.js"() {
1537
- init_esbuildCjsShims();
1538
1566
  init_context2();
1539
1567
  context = ContextAPI.getInstance();
1540
1568
  }
1541
1569
  });
1542
1570
 
1543
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag-api.js
1544
- var diag2;
1545
- var init_diag_api = __esm({
1546
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag-api.js"() {
1547
- init_esbuildCjsShims();
1548
- init_diag();
1549
- diag2 = DiagAPI.instance();
1550
- }
1551
- });
1552
-
1553
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeterProvider.js
1554
- var NoopMeterProvider, NOOP_METER_PROVIDER;
1555
- var init_NoopMeterProvider = __esm({
1556
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeterProvider.js"() {
1557
- init_esbuildCjsShims();
1558
- init_NoopMeter();
1559
- NoopMeterProvider = /** @class */
1560
- function() {
1561
- function NoopMeterProvider2() {
1562
- }
1563
- __name(NoopMeterProvider2, "NoopMeterProvider");
1564
- NoopMeterProvider2.prototype.getMeter = function(_name, _version, _options) {
1565
- return NOOP_METER;
1566
- };
1567
- return NoopMeterProvider2;
1568
- }();
1569
- NOOP_METER_PROVIDER = new NoopMeterProvider();
1570
- }
1571
- });
1572
-
1573
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/metrics.js
1574
- var API_NAME4, MetricsAPI;
1575
- var init_metrics = __esm({
1576
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/metrics.js"() {
1577
- init_esbuildCjsShims();
1578
- init_NoopMeterProvider();
1579
- init_global_utils();
1580
- init_diag();
1581
- API_NAME4 = "metrics";
1582
- MetricsAPI = /** @class */
1583
- function() {
1584
- function MetricsAPI2() {
1585
- }
1586
- __name(MetricsAPI2, "MetricsAPI");
1587
- MetricsAPI2.getInstance = function() {
1588
- if (!this._instance) {
1589
- this._instance = new MetricsAPI2();
1590
- }
1591
- return this._instance;
1592
- };
1593
- MetricsAPI2.prototype.setGlobalMeterProvider = function(provider) {
1594
- return registerGlobal(API_NAME4, provider, DiagAPI.instance());
1595
- };
1596
- MetricsAPI2.prototype.getMeterProvider = function() {
1597
- return getGlobal(API_NAME4) || NOOP_METER_PROVIDER;
1598
- };
1599
- MetricsAPI2.prototype.getMeter = function(name, version, options) {
1600
- return this.getMeterProvider().getMeter(name, version, options);
1601
- };
1602
- MetricsAPI2.prototype.disable = function() {
1603
- unregisterGlobal(API_NAME4, DiagAPI.instance());
1604
- };
1605
- return MetricsAPI2;
1606
- }();
1607
- }
1608
- });
1609
-
1610
- // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics-api.js
1611
- var metrics;
1612
- var init_metrics_api = __esm({
1613
- "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics-api.js"() {
1614
- init_esbuildCjsShims();
1615
- init_metrics();
1616
- metrics = MetricsAPI.getInstance();
1617
- }
1618
- });
1619
-
1620
1571
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/propagation/NoopTextMapPropagator.js
1621
1572
  var NoopTextMapPropagator;
1622
1573
  var init_NoopTextMapPropagator = __esm({
1623
1574
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/propagation/NoopTextMapPropagator.js"() {
1624
- init_esbuildCjsShims();
1625
1575
  NoopTextMapPropagator = /** @class */
1626
1576
  function() {
1627
1577
  function NoopTextMapPropagator2() {
@@ -1656,7 +1606,6 @@ function deleteBaggage(context2) {
1656
1606
  var BAGGAGE_KEY;
1657
1607
  var init_context_helpers = __esm({
1658
1608
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/baggage/context-helpers.js"() {
1659
- init_esbuildCjsShims();
1660
1609
  init_context2();
1661
1610
  init_context();
1662
1611
  BAGGAGE_KEY = createContextKey("OpenTelemetry Baggage Key");
@@ -1671,7 +1620,6 @@ var init_context_helpers = __esm({
1671
1620
  var API_NAME5, NOOP_TEXT_MAP_PROPAGATOR, PropagationAPI;
1672
1621
  var init_propagation = __esm({
1673
1622
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/propagation.js"() {
1674
- init_esbuildCjsShims();
1675
1623
  init_global_utils();
1676
1624
  init_NoopTextMapPropagator();
1677
1625
  init_TextMapPropagator();
@@ -1729,7 +1677,6 @@ var init_propagation = __esm({
1729
1677
  var propagation;
1730
1678
  var init_propagation_api = __esm({
1731
1679
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/propagation-api.js"() {
1732
- init_esbuildCjsShims();
1733
1680
  init_propagation();
1734
1681
  propagation = PropagationAPI.getInstance();
1735
1682
  }
@@ -1759,7 +1706,7 @@ __export(esm_exports, {
1759
1706
  default: () => esm_default,
1760
1707
  defaultTextMapGetter: () => defaultTextMapGetter,
1761
1708
  defaultTextMapSetter: () => defaultTextMapSetter,
1762
- diag: () => diag2,
1709
+ diag: () => diag,
1763
1710
  isSpanContextValid: () => isSpanContextValid,
1764
1711
  isValidSpanId: () => isValidSpanId,
1765
1712
  isValidTraceId: () => isValidTraceId,
@@ -1770,7 +1717,6 @@ __export(esm_exports, {
1770
1717
  var esm_default;
1771
1718
  var init_esm = __esm({
1772
1719
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/index.js"() {
1773
- init_esbuildCjsShims();
1774
1720
  init_utils();
1775
1721
  init_context();
1776
1722
  init_consoleLogger();
@@ -1794,7 +1740,7 @@ var init_esm = __esm({
1794
1740
  init_trace_api();
1795
1741
  esm_default = {
1796
1742
  context,
1797
- diag: diag2,
1743
+ diag,
1798
1744
  metrics,
1799
1745
  propagation,
1800
1746
  trace
@@ -1803,11 +1749,9 @@ var init_esm = __esm({
1803
1749
  });
1804
1750
 
1805
1751
  // src/PerformanceRecorder.ts
1806
- init_esbuildCjsShims();
1807
1752
  import { performance } from "perf_hooks";
1808
1753
 
1809
1754
  // src/MetricEventAggregatorRegistry.ts
1810
- init_esbuildCjsShims();
1811
1755
  var _MetricEventAggregatorRegistry = class _MetricEventAggregatorRegistry {
1812
1756
  constructor() {
1813
1757
  this._aggregators = /* @__PURE__ */ new Set();
@@ -1898,7 +1842,10 @@ export {
1898
1842
  __export,
1899
1843
  __toESM,
1900
1844
  __toCommonJS,
1901
- init_esbuildCjsShims,
1845
+ DiagLogLevel,
1846
+ DiagConsoleLogger,
1847
+ diag,
1848
+ metrics,
1902
1849
  trace,
1903
1850
  esm_exports,
1904
1851
  init_esm,