@ms-cloudpack/telemetry 0.5.0 → 0.5.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.
@@ -218,108 +218,6 @@ var init_global_utils = __esm({
218
218
  }
219
219
  });
220
220
 
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
221
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/ComponentLogger.js
324
222
  function logProxy(funcName, namespace, args) {
325
223
  var logger = getGlobal("diag");
@@ -327,14 +225,14 @@ function logProxy(funcName, namespace, args) {
327
225
  return;
328
226
  }
329
227
  args.unshift(namespace);
330
- return logger[funcName].apply(logger, __spreadArray2([], __read2(args), false));
228
+ return logger[funcName].apply(logger, __spreadArray([], __read(args), false));
331
229
  }
332
- var __read2, __spreadArray2, DiagComponentLogger;
230
+ var __read, __spreadArray, DiagComponentLogger;
333
231
  var init_ComponentLogger = __esm({
334
232
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag/ComponentLogger.js"() {
335
233
  init_esbuildCjsShims();
336
234
  init_global_utils();
337
- __read2 = function(o, n) {
235
+ __read = function(o, n) {
338
236
  var m = typeof Symbol === "function" && o[Symbol.iterator];
339
237
  if (!m)
340
238
  return o;
@@ -355,7 +253,7 @@ var init_ComponentLogger = __esm({
355
253
  }
356
254
  return ar;
357
255
  };
358
- __spreadArray2 = function(to, from, pack) {
256
+ __spreadArray = function(to, from, pack) {
359
257
  if (pack || arguments.length === 2)
360
258
  for (var i = 0, l = from.length, ar; i < l; i++) {
361
259
  if (ar || !(i in from)) {
@@ -464,7 +362,7 @@ var init_logLevelLogger = __esm({
464
362
  });
465
363
 
466
364
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/diag.js
467
- var __read3, __spreadArray3, API_NAME, DiagAPI;
365
+ var __read2, __spreadArray2, API_NAME, DiagAPI;
468
366
  var init_diag = __esm({
469
367
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/diag.js"() {
470
368
  init_esbuildCjsShims();
@@ -472,7 +370,7 @@ var init_diag = __esm({
472
370
  init_logLevelLogger();
473
371
  init_types();
474
372
  init_global_utils();
475
- __read3 = function(o, n) {
373
+ __read2 = function(o, n) {
476
374
  var m = typeof Symbol === "function" && o[Symbol.iterator];
477
375
  if (!m)
478
376
  return o;
@@ -493,7 +391,7 @@ var init_diag = __esm({
493
391
  }
494
392
  return ar;
495
393
  };
496
- __spreadArray3 = function(to, from, pack) {
394
+ __spreadArray2 = function(to, from, pack) {
497
395
  if (pack || arguments.length === 2)
498
396
  for (var i = 0, l = from.length, ar; i < l; i++) {
499
397
  if (ar || !(i in from)) {
@@ -517,7 +415,7 @@ var init_diag = __esm({
517
415
  var logger = getGlobal("diag");
518
416
  if (!logger)
519
417
  return;
520
- return logger[funcName].apply(logger, __spreadArray3([], __read3(args), false));
418
+ return logger[funcName].apply(logger, __spreadArray2([], __read2(args), false));
521
419
  };
522
420
  }
523
421
  __name(_logProxy, "_logProxy");
@@ -559,20 +457,347 @@ var init_diag = __esm({
559
457
  self.warn = _logProxy("warn");
560
458
  self.error = _logProxy("error");
561
459
  }
562
- __name(DiagAPI2, "DiagAPI");
563
- DiagAPI2.instance = function() {
564
- if (!this._instance) {
565
- this._instance = new DiagAPI2();
460
+ __name(DiagAPI2, "DiagAPI");
461
+ DiagAPI2.instance = function() {
462
+ if (!this._instance) {
463
+ this._instance = new DiagAPI2();
464
+ }
465
+ return this._instance;
466
+ };
467
+ return DiagAPI2;
468
+ }();
469
+ }
470
+ });
471
+
472
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag-api.js
473
+ var diag;
474
+ var init_diag_api = __esm({
475
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/diag-api.js"() {
476
+ init_esbuildCjsShims();
477
+ init_diag();
478
+ diag = DiagAPI.instance();
479
+ }
480
+ });
481
+
482
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeter.js
483
+ function createNoopMeter() {
484
+ return NOOP_METER;
485
+ }
486
+ 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;
487
+ var init_NoopMeter = __esm({
488
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeter.js"() {
489
+ init_esbuildCjsShims();
490
+ __extends = /* @__PURE__ */ function() {
491
+ var extendStatics = /* @__PURE__ */ __name(function(d, b) {
492
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
493
+ d2.__proto__ = b2;
494
+ } || function(d2, b2) {
495
+ for (var p in b2)
496
+ if (Object.prototype.hasOwnProperty.call(b2, p))
497
+ d2[p] = b2[p];
498
+ };
499
+ return extendStatics(d, b);
500
+ }, "extendStatics");
501
+ return function(d, b) {
502
+ if (typeof b !== "function" && b !== null)
503
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
504
+ extendStatics(d, b);
505
+ function __() {
506
+ this.constructor = d;
507
+ }
508
+ __name(__, "__");
509
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
510
+ };
511
+ }();
512
+ NoopMeter = /** @class */
513
+ function() {
514
+ function NoopMeter2() {
515
+ }
516
+ __name(NoopMeter2, "NoopMeter");
517
+ NoopMeter2.prototype.createHistogram = function(_name, _options) {
518
+ return NOOP_HISTOGRAM_METRIC;
519
+ };
520
+ NoopMeter2.prototype.createCounter = function(_name, _options) {
521
+ return NOOP_COUNTER_METRIC;
522
+ };
523
+ NoopMeter2.prototype.createUpDownCounter = function(_name, _options) {
524
+ return NOOP_UP_DOWN_COUNTER_METRIC;
525
+ };
526
+ NoopMeter2.prototype.createObservableGauge = function(_name, _options) {
527
+ return NOOP_OBSERVABLE_GAUGE_METRIC;
528
+ };
529
+ NoopMeter2.prototype.createObservableCounter = function(_name, _options) {
530
+ return NOOP_OBSERVABLE_COUNTER_METRIC;
531
+ };
532
+ NoopMeter2.prototype.createObservableUpDownCounter = function(_name, _options) {
533
+ return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
534
+ };
535
+ NoopMeter2.prototype.addBatchObservableCallback = function(_callback, _observables) {
536
+ };
537
+ NoopMeter2.prototype.removeBatchObservableCallback = function(_callback) {
538
+ };
539
+ return NoopMeter2;
540
+ }();
541
+ NoopMetric = /** @class */
542
+ /* @__PURE__ */ function() {
543
+ function NoopMetric2() {
544
+ }
545
+ __name(NoopMetric2, "NoopMetric");
546
+ return NoopMetric2;
547
+ }();
548
+ NoopCounterMetric = /** @class */
549
+ function(_super) {
550
+ __extends(NoopCounterMetric2, _super);
551
+ function NoopCounterMetric2() {
552
+ return _super !== null && _super.apply(this, arguments) || this;
553
+ }
554
+ __name(NoopCounterMetric2, "NoopCounterMetric");
555
+ NoopCounterMetric2.prototype.add = function(_value, _attributes) {
556
+ };
557
+ return NoopCounterMetric2;
558
+ }(NoopMetric);
559
+ NoopUpDownCounterMetric = /** @class */
560
+ function(_super) {
561
+ __extends(NoopUpDownCounterMetric2, _super);
562
+ function NoopUpDownCounterMetric2() {
563
+ return _super !== null && _super.apply(this, arguments) || this;
564
+ }
565
+ __name(NoopUpDownCounterMetric2, "NoopUpDownCounterMetric");
566
+ NoopUpDownCounterMetric2.prototype.add = function(_value, _attributes) {
567
+ };
568
+ return NoopUpDownCounterMetric2;
569
+ }(NoopMetric);
570
+ NoopHistogramMetric = /** @class */
571
+ function(_super) {
572
+ __extends(NoopHistogramMetric2, _super);
573
+ function NoopHistogramMetric2() {
574
+ return _super !== null && _super.apply(this, arguments) || this;
575
+ }
576
+ __name(NoopHistogramMetric2, "NoopHistogramMetric");
577
+ NoopHistogramMetric2.prototype.record = function(_value, _attributes) {
578
+ };
579
+ return NoopHistogramMetric2;
580
+ }(NoopMetric);
581
+ NoopObservableMetric = /** @class */
582
+ function() {
583
+ function NoopObservableMetric2() {
584
+ }
585
+ __name(NoopObservableMetric2, "NoopObservableMetric");
586
+ NoopObservableMetric2.prototype.addCallback = function(_callback) {
587
+ };
588
+ NoopObservableMetric2.prototype.removeCallback = function(_callback) {
589
+ };
590
+ return NoopObservableMetric2;
591
+ }();
592
+ NoopObservableCounterMetric = /** @class */
593
+ function(_super) {
594
+ __extends(NoopObservableCounterMetric2, _super);
595
+ function NoopObservableCounterMetric2() {
596
+ return _super !== null && _super.apply(this, arguments) || this;
597
+ }
598
+ __name(NoopObservableCounterMetric2, "NoopObservableCounterMetric");
599
+ return NoopObservableCounterMetric2;
600
+ }(NoopObservableMetric);
601
+ NoopObservableGaugeMetric = /** @class */
602
+ function(_super) {
603
+ __extends(NoopObservableGaugeMetric2, _super);
604
+ function NoopObservableGaugeMetric2() {
605
+ return _super !== null && _super.apply(this, arguments) || this;
606
+ }
607
+ __name(NoopObservableGaugeMetric2, "NoopObservableGaugeMetric");
608
+ return NoopObservableGaugeMetric2;
609
+ }(NoopObservableMetric);
610
+ NoopObservableUpDownCounterMetric = /** @class */
611
+ function(_super) {
612
+ __extends(NoopObservableUpDownCounterMetric2, _super);
613
+ function NoopObservableUpDownCounterMetric2() {
614
+ return _super !== null && _super.apply(this, arguments) || this;
615
+ }
616
+ __name(NoopObservableUpDownCounterMetric2, "NoopObservableUpDownCounterMetric");
617
+ return NoopObservableUpDownCounterMetric2;
618
+ }(NoopObservableMetric);
619
+ NOOP_METER = new NoopMeter();
620
+ NOOP_COUNTER_METRIC = new NoopCounterMetric();
621
+ NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
622
+ NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
623
+ NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
624
+ NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
625
+ NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
626
+ __name(createNoopMeter, "createNoopMeter");
627
+ }
628
+ });
629
+
630
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeterProvider.js
631
+ var NoopMeterProvider, NOOP_METER_PROVIDER;
632
+ var init_NoopMeterProvider = __esm({
633
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/NoopMeterProvider.js"() {
634
+ init_esbuildCjsShims();
635
+ init_NoopMeter();
636
+ NoopMeterProvider = /** @class */
637
+ function() {
638
+ function NoopMeterProvider2() {
639
+ }
640
+ __name(NoopMeterProvider2, "NoopMeterProvider");
641
+ NoopMeterProvider2.prototype.getMeter = function(_name, _version, _options) {
642
+ return NOOP_METER;
643
+ };
644
+ return NoopMeterProvider2;
645
+ }();
646
+ NOOP_METER_PROVIDER = new NoopMeterProvider();
647
+ }
648
+ });
649
+
650
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/metrics.js
651
+ var API_NAME2, MetricsAPI;
652
+ var init_metrics = __esm({
653
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/metrics.js"() {
654
+ init_esbuildCjsShims();
655
+ init_NoopMeterProvider();
656
+ init_global_utils();
657
+ init_diag();
658
+ API_NAME2 = "metrics";
659
+ MetricsAPI = /** @class */
660
+ function() {
661
+ function MetricsAPI2() {
662
+ }
663
+ __name(MetricsAPI2, "MetricsAPI");
664
+ MetricsAPI2.getInstance = function() {
665
+ if (!this._instance) {
666
+ this._instance = new MetricsAPI2();
667
+ }
668
+ return this._instance;
669
+ };
670
+ MetricsAPI2.prototype.setGlobalMeterProvider = function(provider) {
671
+ return registerGlobal(API_NAME2, provider, DiagAPI.instance());
672
+ };
673
+ MetricsAPI2.prototype.getMeterProvider = function() {
674
+ return getGlobal(API_NAME2) || NOOP_METER_PROVIDER;
675
+ };
676
+ MetricsAPI2.prototype.getMeter = function(name, version, options) {
677
+ return this.getMeterProvider().getMeter(name, version, options);
678
+ };
679
+ MetricsAPI2.prototype.disable = function() {
680
+ unregisterGlobal(API_NAME2, DiagAPI.instance());
681
+ };
682
+ return MetricsAPI2;
683
+ }();
684
+ }
685
+ });
686
+
687
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics-api.js
688
+ var metrics;
689
+ var init_metrics_api = __esm({
690
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics-api.js"() {
691
+ init_esbuildCjsShims();
692
+ init_metrics();
693
+ metrics = MetricsAPI.getInstance();
694
+ }
695
+ });
696
+
697
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/context.js
698
+ function createContextKey(description) {
699
+ return Symbol.for(description);
700
+ }
701
+ var BaseContext, ROOT_CONTEXT;
702
+ var init_context = __esm({
703
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/context.js"() {
704
+ init_esbuildCjsShims();
705
+ __name(createContextKey, "createContextKey");
706
+ BaseContext = /** @class */
707
+ /* @__PURE__ */ function() {
708
+ function BaseContext2(parentContext) {
709
+ var self = this;
710
+ self._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
711
+ self.getValue = function(key) {
712
+ return self._currentContext.get(key);
713
+ };
714
+ self.setValue = function(key, value) {
715
+ var context2 = new BaseContext2(self._currentContext);
716
+ context2._currentContext.set(key, value);
717
+ return context2;
718
+ };
719
+ self.deleteValue = function(key) {
720
+ var context2 = new BaseContext2(self._currentContext);
721
+ context2._currentContext.delete(key);
722
+ return context2;
723
+ };
724
+ }
725
+ __name(BaseContext2, "BaseContext");
726
+ return BaseContext2;
727
+ }();
728
+ ROOT_CONTEXT = new BaseContext();
729
+ }
730
+ });
731
+
732
+ // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/NoopContextManager.js
733
+ var __read3, __spreadArray3, NoopContextManager;
734
+ var init_NoopContextManager = __esm({
735
+ "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/context/NoopContextManager.js"() {
736
+ init_esbuildCjsShims();
737
+ init_context();
738
+ __read3 = function(o, n) {
739
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
740
+ if (!m)
741
+ return o;
742
+ var i = m.call(o), r, ar = [], e;
743
+ try {
744
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
745
+ ar.push(r.value);
746
+ } catch (error) {
747
+ e = { error };
748
+ } finally {
749
+ try {
750
+ if (r && !r.done && (m = i["return"]))
751
+ m.call(i);
752
+ } finally {
753
+ if (e)
754
+ throw e.error;
755
+ }
756
+ }
757
+ return ar;
758
+ };
759
+ __spreadArray3 = function(to, from, pack) {
760
+ if (pack || arguments.length === 2)
761
+ for (var i = 0, l = from.length, ar; i < l; i++) {
762
+ if (ar || !(i in from)) {
763
+ if (!ar)
764
+ ar = Array.prototype.slice.call(from, 0, i);
765
+ ar[i] = from[i];
766
+ }
767
+ }
768
+ return to.concat(ar || Array.prototype.slice.call(from));
769
+ };
770
+ NoopContextManager = /** @class */
771
+ function() {
772
+ function NoopContextManager2() {
773
+ }
774
+ __name(NoopContextManager2, "NoopContextManager");
775
+ NoopContextManager2.prototype.active = function() {
776
+ return ROOT_CONTEXT;
777
+ };
778
+ NoopContextManager2.prototype.with = function(_context, fn, thisArg) {
779
+ var args = [];
780
+ for (var _i = 3; _i < arguments.length; _i++) {
781
+ args[_i - 3] = arguments[_i];
566
782
  }
567
- return this._instance;
783
+ return fn.call.apply(fn, __spreadArray3([thisArg], __read3(args), false));
568
784
  };
569
- return DiagAPI2;
785
+ NoopContextManager2.prototype.bind = function(_context, target) {
786
+ return target;
787
+ };
788
+ NoopContextManager2.prototype.enable = function() {
789
+ return this;
790
+ };
791
+ NoopContextManager2.prototype.disable = function() {
792
+ return this;
793
+ };
794
+ return NoopContextManager2;
570
795
  }();
571
796
  }
572
797
  });
573
798
 
574
799
  // ../../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;
800
+ var __read4, __spreadArray4, API_NAME3, NOOP_CONTEXT_MANAGER, ContextAPI;
576
801
  var init_context2 = __esm({
577
802
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/context.js"() {
578
803
  init_esbuildCjsShims();
@@ -611,7 +836,7 @@ var init_context2 = __esm({
611
836
  }
612
837
  return to.concat(ar || Array.prototype.slice.call(from));
613
838
  };
614
- API_NAME2 = "context";
839
+ API_NAME3 = "context";
615
840
  NOOP_CONTEXT_MANAGER = new NoopContextManager();
616
841
  ContextAPI = /** @class */
617
842
  function() {
@@ -625,7 +850,7 @@ var init_context2 = __esm({
625
850
  return this._instance;
626
851
  };
627
852
  ContextAPI2.prototype.setGlobalContextManager = function(contextManager) {
628
- return registerGlobal(API_NAME2, contextManager, DiagAPI.instance());
853
+ return registerGlobal(API_NAME3, contextManager, DiagAPI.instance());
629
854
  };
630
855
  ContextAPI2.prototype.active = function() {
631
856
  return this._getContextManager().active();
@@ -642,11 +867,11 @@ var init_context2 = __esm({
642
867
  return this._getContextManager().bind(context2, target);
643
868
  };
644
869
  ContextAPI2.prototype._getContextManager = function() {
645
- return getGlobal(API_NAME2) || NOOP_CONTEXT_MANAGER;
870
+ return getGlobal(API_NAME3) || NOOP_CONTEXT_MANAGER;
646
871
  };
647
872
  ContextAPI2.prototype.disable = function() {
648
873
  this._getContextManager().disable();
649
- unregisterGlobal(API_NAME2, DiagAPI.instance());
874
+ unregisterGlobal(API_NAME3, DiagAPI.instance());
650
875
  };
651
876
  return ContextAPI2;
652
877
  }();
@@ -943,7 +1168,7 @@ var init_ProxyTracerProvider = __esm({
943
1168
  });
944
1169
 
945
1170
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/trace.js
946
- var API_NAME3, TraceAPI;
1171
+ var API_NAME4, TraceAPI;
947
1172
  var init_trace = __esm({
948
1173
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/api/trace.js"() {
949
1174
  init_esbuildCjsShims();
@@ -952,7 +1177,7 @@ var init_trace = __esm({
952
1177
  init_spancontext_utils();
953
1178
  init_context_utils();
954
1179
  init_diag();
955
- API_NAME3 = "trace";
1180
+ API_NAME4 = "trace";
956
1181
  TraceAPI = /** @class */
957
1182
  function() {
958
1183
  function TraceAPI2() {
@@ -974,20 +1199,20 @@ var init_trace = __esm({
974
1199
  return this._instance;
975
1200
  };
976
1201
  TraceAPI2.prototype.setGlobalTracerProvider = function(provider) {
977
- var success = registerGlobal(API_NAME3, this._proxyTracerProvider, DiagAPI.instance());
1202
+ var success = registerGlobal(API_NAME4, this._proxyTracerProvider, DiagAPI.instance());
978
1203
  if (success) {
979
1204
  this._proxyTracerProvider.setDelegate(provider);
980
1205
  }
981
1206
  return success;
982
1207
  };
983
1208
  TraceAPI2.prototype.getTracerProvider = function() {
984
- return getGlobal(API_NAME3) || this._proxyTracerProvider;
1209
+ return getGlobal(API_NAME4) || this._proxyTracerProvider;
985
1210
  };
986
1211
  TraceAPI2.prototype.getTracer = function(name, version) {
987
1212
  return this.getTracerProvider().getTracer(name, version);
988
1213
  };
989
1214
  TraceAPI2.prototype.disable = function() {
990
- unregisterGlobal(API_NAME3, DiagAPI.instance());
1215
+ unregisterGlobal(API_NAME4, DiagAPI.instance());
991
1216
  this._proxyTracerProvider = new ProxyTracerProvider();
992
1217
  };
993
1218
  return TraceAPI2;
@@ -1125,7 +1350,7 @@ function createBaggage(entries) {
1125
1350
  }
1126
1351
  function baggageEntryMetadataFromString(str) {
1127
1352
  if (typeof str !== "string") {
1128
- diag.error("Cannot create baggage metadata from unknown type: " + typeof str);
1353
+ diag2.error("Cannot create baggage metadata from unknown type: " + typeof str);
1129
1354
  str = "";
1130
1355
  }
1131
1356
  return {
@@ -1135,14 +1360,14 @@ function baggageEntryMetadataFromString(str) {
1135
1360
  }
1136
1361
  };
1137
1362
  }
1138
- var diag;
1363
+ var diag2;
1139
1364
  var init_utils = __esm({
1140
1365
  "../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/baggage/utils.js"() {
1141
1366
  init_esbuildCjsShims();
1142
1367
  init_diag();
1143
1368
  init_baggage_impl();
1144
1369
  init_symbol();
1145
- diag = DiagAPI.instance();
1370
+ diag2 = DiagAPI.instance();
1146
1371
  __name(createBaggage, "createBaggage");
1147
1372
  __name(baggageEntryMetadataFromString, "baggageEntryMetadataFromString");
1148
1373
  }
@@ -1191,154 +1416,6 @@ var init_consoleLogger = __esm({
1191
1416
  }
1192
1417
  });
1193
1418
 
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
1419
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/metrics/Metric.js
1343
1420
  var ValueType;
1344
1421
  var init_Metric = __esm({
@@ -1540,83 +1617,6 @@ var init_context_api = __esm({
1540
1617
  }
1541
1618
  });
1542
1619
 
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
1620
  // ../../node_modules/.store/@opentelemetry-api-npm-1.8.0-a7bdcf595f/package/build/esm/propagation/NoopTextMapPropagator.js
1621
1621
  var NoopTextMapPropagator;
1622
1622
  var init_NoopTextMapPropagator = __esm({
@@ -1759,7 +1759,7 @@ __export(esm_exports, {
1759
1759
  default: () => esm_default,
1760
1760
  defaultTextMapGetter: () => defaultTextMapGetter,
1761
1761
  defaultTextMapSetter: () => defaultTextMapSetter,
1762
- diag: () => diag2,
1762
+ diag: () => diag,
1763
1763
  isSpanContextValid: () => isSpanContextValid,
1764
1764
  isValidSpanId: () => isValidSpanId,
1765
1765
  isValidTraceId: () => isValidTraceId,
@@ -1794,7 +1794,7 @@ var init_esm = __esm({
1794
1794
  init_trace_api();
1795
1795
  esm_default = {
1796
1796
  context,
1797
- diag: diag2,
1797
+ diag,
1798
1798
  metrics,
1799
1799
  propagation,
1800
1800
  trace
@@ -1899,6 +1899,10 @@ export {
1899
1899
  __toESM,
1900
1900
  __toCommonJS,
1901
1901
  init_esbuildCjsShims,
1902
+ DiagLogLevel,
1903
+ DiagConsoleLogger,
1904
+ diag,
1905
+ metrics,
1902
1906
  trace,
1903
1907
  esm_exports,
1904
1908
  init_esm,