@ms-cloudpack/telemetry 0.11.59 → 0.11.61

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 (3) hide show
  1. package/NOTICE.txt +4 -4
  2. package/dist/index.js +235 -238
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -157,11 +157,11 @@ var init_semver = __esm({
157
157
 
158
158
  // ../../node_modules/.store/@opentelemetry-api-npm-1.9.0-7d0560d0dd/package/build/esm/internal/global-utils.js
159
159
  function registerGlobal(type3, instance3, diag3, allowOverride) {
160
- var _a4;
160
+ var _a3;
161
161
  if (allowOverride === void 0) {
162
162
  allowOverride = false;
163
163
  }
164
- var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a4 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a4 !== void 0 ? _a4 : {
164
+ var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
165
165
  version: VERSION
166
166
  };
167
167
  if (!allowOverride && api[type3]) {
@@ -179,8 +179,8 @@ function registerGlobal(type3, instance3, diag3, allowOverride) {
179
179
  return true;
180
180
  }
181
181
  function getGlobal(type3) {
182
- var _a4, _b2;
183
- var globalVersion = (_a4 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a4 === void 0 ? void 0 : _a4.version;
182
+ var _a3, _b2;
183
+ var globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === void 0 ? void 0 : _a3.version;
184
184
  if (!globalVersion || !isCompatible(globalVersion)) {
185
185
  return;
186
186
  }
@@ -395,13 +395,13 @@ var init_diag = __esm({
395
395
  __name(_logProxy, "_logProxy");
396
396
  var self2 = this;
397
397
  var setLogger = /* @__PURE__ */ __name(function(logger4, optionsOrLogLevel) {
398
- var _a4, _b2, _c2;
398
+ var _a3, _b2, _c2;
399
399
  if (optionsOrLogLevel === void 0) {
400
400
  optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
401
401
  }
402
402
  if (logger4 === self2) {
403
403
  var err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
404
- self2.error((_a4 = err.stack) !== null && _a4 !== void 0 ? _a4 : err.message);
404
+ self2.error((_a3 = err.stack) !== null && _a3 !== void 0 ? _a3 : err.message);
405
405
  return false;
406
406
  }
407
407
  if (typeof optionsOrLogLevel === "number") {
@@ -489,8 +489,8 @@ var init_baggage_impl = __esm({
489
489
  return Object.assign({}, entry);
490
490
  };
491
491
  BaggageImpl2.prototype.getAllEntries = function() {
492
- return Array.from(this._entries.entries()).map(function(_a4) {
493
- var _b2 = __read3(_a4, 2), k = _b2[0], v = _b2[1];
492
+ return Array.from(this._entries.entries()).map(function(_a3) {
493
+ var _b2 = __read3(_a3, 2), k = _b2[0], v = _b2[1];
494
494
  return [k, v];
495
495
  });
496
496
  };
@@ -505,7 +505,7 @@ var init_baggage_impl = __esm({
505
505
  return newBaggage;
506
506
  };
507
507
  BaggageImpl2.prototype.removeEntries = function() {
508
- var e_1, _a4;
508
+ var e_1, _a3;
509
509
  var keys = [];
510
510
  for (var _i = 0; _i < arguments.length; _i++) {
511
511
  keys[_i] = arguments[_i];
@@ -520,7 +520,7 @@ var init_baggage_impl = __esm({
520
520
  e_1 = { error: e_1_1 };
521
521
  } finally {
522
522
  try {
523
- if (keys_1_1 && !keys_1_1.done && (_a4 = keys_1.return)) _a4.call(keys_1);
523
+ if (keys_1_1 && !keys_1_1.done && (_a3 = keys_1.return)) _a3.call(keys_1);
524
524
  } finally {
525
525
  if (e_1) throw e_1.error;
526
526
  }
@@ -963,12 +963,12 @@ var init_context2 = __esm({
963
963
  return this._getContextManager().active();
964
964
  };
965
965
  ContextAPI2.prototype.with = function(context4, fn, thisArg) {
966
- var _a4;
966
+ var _a3;
967
967
  var args = [];
968
968
  for (var _i = 3; _i < arguments.length; _i++) {
969
969
  args[_i - 3] = arguments[_i];
970
970
  }
971
- return (_a4 = this._getContextManager()).with.apply(_a4, __spreadArray4([context4, fn, thisArg], __read5(args), false));
971
+ return (_a3 = this._getContextManager()).with.apply(_a3, __spreadArray4([context4, fn, thisArg], __read5(args), false));
972
972
  };
973
973
  ContextAPI2.prototype.bind = function(context4, target) {
974
974
  return this._getContextManager().bind(context4, target);
@@ -1078,8 +1078,8 @@ function setSpanContext(context4, spanContext) {
1078
1078
  return setSpan(context4, new NonRecordingSpan(spanContext));
1079
1079
  }
1080
1080
  function getSpanContext(context4) {
1081
- var _a4;
1082
- return (_a4 = getSpan(context4)) === null || _a4 === void 0 ? void 0 : _a4.spanContext();
1081
+ var _a3;
1082
+ return (_a3 = getSpan(context4)) === null || _a3 === void 0 ? void 0 : _a3.spanContext();
1083
1083
  }
1084
1084
  var SPAN_KEY;
1085
1085
  var init_context_utils = __esm({
@@ -1252,19 +1252,19 @@ var init_ProxyTracerProvider = __esm({
1252
1252
  }
1253
1253
  __name(ProxyTracerProvider2, "ProxyTracerProvider");
1254
1254
  ProxyTracerProvider2.prototype.getTracer = function(name, version, options) {
1255
- var _a4;
1256
- return (_a4 = this.getDelegateTracer(name, version, options)) !== null && _a4 !== void 0 ? _a4 : new ProxyTracer(this, name, version, options);
1255
+ var _a3;
1256
+ return (_a3 = this.getDelegateTracer(name, version, options)) !== null && _a3 !== void 0 ? _a3 : new ProxyTracer(this, name, version, options);
1257
1257
  };
1258
1258
  ProxyTracerProvider2.prototype.getDelegate = function() {
1259
- var _a4;
1260
- return (_a4 = this._delegate) !== null && _a4 !== void 0 ? _a4 : NOOP_TRACER_PROVIDER;
1259
+ var _a3;
1260
+ return (_a3 = this._delegate) !== null && _a3 !== void 0 ? _a3 : NOOP_TRACER_PROVIDER;
1261
1261
  };
1262
1262
  ProxyTracerProvider2.prototype.setDelegate = function(delegate) {
1263
1263
  this._delegate = delegate;
1264
1264
  };
1265
1265
  ProxyTracerProvider2.prototype.getDelegateTracer = function(name, version, options) {
1266
- var _a4;
1267
- return (_a4 = this._delegate) === null || _a4 === void 0 ? void 0 : _a4.getTracer(name, version, options);
1266
+ var _a3;
1267
+ return (_a3 = this._delegate) === null || _a3 === void 0 ? void 0 : _a3.getTracer(name, version, options);
1268
1268
  };
1269
1269
  return ProxyTracerProvider2;
1270
1270
  })();
@@ -4059,7 +4059,7 @@ var require_global_error_handler = __commonJS({
4059
4059
  function globalErrorHandler(ex) {
4060
4060
  try {
4061
4061
  delegateHandler(ex);
4062
- } catch (_a4) {
4062
+ } catch (_a3) {
4063
4063
  }
4064
4064
  }
4065
4065
  __name(globalErrorHandler, "globalErrorHandler");
@@ -4679,8 +4679,8 @@ var require_composite = __commonJS({
4679
4679
  * @param [config] Configuration object for composite propagator
4680
4680
  */
4681
4681
  constructor(config = {}) {
4682
- var _a4;
4683
- this._propagators = (_a4 = config.propagators) !== null && _a4 !== void 0 ? _a4 : [];
4682
+ var _a3;
4683
+ this._propagators = (_a3 = config.propagators) !== null && _a3 !== void 0 ? _a3 : [];
4684
4684
  this._fields = Array.from(new Set(this._propagators.map((p) => typeof p.fields === "function" ? p.fields() : []).reduce((x, y) => x.concat(y), [])));
4685
4685
  }
4686
4686
  /**
@@ -4987,13 +4987,13 @@ var require_ParentBasedSampler = __commonJS({
4987
4987
  var AlwaysOnSampler_1 = require_AlwaysOnSampler();
4988
4988
  var _ParentBasedSampler = class _ParentBasedSampler {
4989
4989
  constructor(config) {
4990
- var _a4, _b2, _c2, _d;
4990
+ var _a3, _b2, _c2, _d;
4991
4991
  this._root = config.root;
4992
4992
  if (!this._root) {
4993
4993
  (0, global_error_handler_1.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured"));
4994
4994
  this._root = new AlwaysOnSampler_1.AlwaysOnSampler();
4995
4995
  }
4996
- this._remoteParentSampled = (_a4 = config.remoteParentSampled) !== null && _a4 !== void 0 ? _a4 : new AlwaysOnSampler_1.AlwaysOnSampler();
4996
+ this._remoteParentSampled = (_a3 = config.remoteParentSampled) !== null && _a3 !== void 0 ? _a3 : new AlwaysOnSampler_1.AlwaysOnSampler();
4997
4997
  this._remoteParentNotSampled = (_b2 = config.remoteParentNotSampled) !== null && _b2 !== void 0 ? _b2 : new AlwaysOffSampler_1.AlwaysOffSampler();
4998
4998
  this._localParentSampled = (_c2 = config.localParentSampled) !== null && _c2 !== void 0 ? _c2 : new AlwaysOnSampler_1.AlwaysOnSampler();
4999
4999
  this._localParentNotSampled = (_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler_1.AlwaysOffSampler();
@@ -5717,10 +5717,10 @@ var require_Resource = __commonJS({
5717
5717
  var platform_1 = require_platform2();
5718
5718
  var _Resource = class _Resource {
5719
5719
  constructor(attributes, asyncAttributesPromise) {
5720
- var _a4;
5720
+ var _a3;
5721
5721
  this._attributes = attributes;
5722
5722
  this.asyncAttributesPending = asyncAttributesPromise != null;
5723
- this._syncAttributes = (_a4 = this._attributes) !== null && _a4 !== void 0 ? _a4 : {};
5723
+ this._syncAttributes = (_a3 = this._attributes) !== null && _a3 !== void 0 ? _a3 : {};
5724
5724
  this._asyncAttributesPromise = asyncAttributesPromise === null || asyncAttributesPromise === void 0 ? void 0 : asyncAttributesPromise.then((asyncAttributes) => {
5725
5725
  this._attributes = Object.assign({}, this._attributes, asyncAttributes);
5726
5726
  this.asyncAttributesPending = false;
@@ -5749,11 +5749,11 @@ var require_Resource = __commonJS({
5749
5749
  });
5750
5750
  }
5751
5751
  get attributes() {
5752
- var _a4;
5752
+ var _a3;
5753
5753
  if (this.asyncAttributesPending) {
5754
5754
  api_1.diag.error("Accessing resource attributes before async attributes settled");
5755
5755
  }
5756
- return (_a4 = this._attributes) !== null && _a4 !== void 0 ? _a4 : {};
5756
+ return (_a3 = this._attributes) !== null && _a3 !== void 0 ? _a3 : {};
5757
5757
  }
5758
5758
  /**
5759
5759
  * Returns a promise that will never be rejected. Resolves when all async attributes have finished being added to
@@ -5774,10 +5774,10 @@ var require_Resource = __commonJS({
5774
5774
  * @returns the newly merged Resource.
5775
5775
  */
5776
5776
  merge(other) {
5777
- var _a4;
5777
+ var _a3;
5778
5778
  if (!other)
5779
5779
  return this;
5780
- const mergedSyncAttributes = Object.assign(Object.assign({}, this._syncAttributes), (_a4 = other._syncAttributes) !== null && _a4 !== void 0 ? _a4 : other.attributes);
5780
+ const mergedSyncAttributes = Object.assign(Object.assign({}, this._syncAttributes), (_a3 = other._syncAttributes) !== null && _a3 !== void 0 ? _a3 : other.attributes);
5781
5781
  if (!this._asyncAttributesPromise && !other._asyncAttributesPromise) {
5782
5782
  return new _Resource(mergedSyncAttributes);
5783
5783
  }
@@ -5785,8 +5785,8 @@ var require_Resource = __commonJS({
5785
5785
  this._asyncAttributesPromise,
5786
5786
  other._asyncAttributesPromise
5787
5787
  ]).then(([thisAsyncAttributes, otherAsyncAttributes]) => {
5788
- var _a5;
5789
- return Object.assign(Object.assign(Object.assign(Object.assign({}, this._syncAttributes), thisAsyncAttributes), (_a5 = other._syncAttributes) !== null && _a5 !== void 0 ? _a5 : other.attributes), otherAsyncAttributes);
5788
+ var _a4;
5789
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, this._syncAttributes), thisAsyncAttributes), (_a4 = other._syncAttributes) !== null && _a4 !== void 0 ? _a4 : other.attributes), otherAsyncAttributes);
5790
5790
  });
5791
5791
  return new _Resource(mergedSyncAttributes, mergedAttributesPromise);
5792
5792
  }
@@ -6260,8 +6260,8 @@ var require_BrowserDetectorSync = __commonJS({
6260
6260
  var Resource_1 = require_Resource();
6261
6261
  var _BrowserDetectorSync = class _BrowserDetectorSync {
6262
6262
  detect(config) {
6263
- var _a4, _b2, _c2;
6264
- const isBrowser2 = typeof navigator !== "undefined" && ((_b2 = (_a4 = global.process) === null || _a4 === void 0 ? void 0 : _a4.versions) === null || _b2 === void 0 ? void 0 : _b2.node) === void 0 && // Node.js v21 adds `navigator`
6263
+ var _a3, _b2, _c2;
6264
+ const isBrowser2 = typeof navigator !== "undefined" && ((_b2 = (_a3 = global.process) === null || _a3 === void 0 ? void 0 : _a3.versions) === null || _b2 === void 0 ? void 0 : _b2.node) === void 0 && // Node.js v21 adds `navigator`
6265
6265
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6266
6266
  // @ts-ignore don't have Bun types
6267
6267
  ((_c2 = global.Bun) === null || _c2 === void 0 ? void 0 : _c2.version) === void 0;
@@ -6542,16 +6542,16 @@ var require_detect_resources = __commonJS({
6542
6542
  }, "detectResources");
6543
6543
  exports.detectResources = detectResources;
6544
6544
  var detectResourcesSync2 = /* @__PURE__ */ __name((config = {}) => {
6545
- var _a4;
6546
- const resources = ((_a4 = config.detectors) !== null && _a4 !== void 0 ? _a4 : []).map((d) => {
6545
+ var _a3;
6546
+ const resources = ((_a3 = config.detectors) !== null && _a3 !== void 0 ? _a3 : []).map((d) => {
6547
6547
  try {
6548
6548
  const resourceOrPromise = d.detect(config);
6549
6549
  let resource;
6550
6550
  if ((0, utils_1.isPromiseLike)(resourceOrPromise)) {
6551
6551
  const createPromise = /* @__PURE__ */ __name(async () => {
6552
- var _a5;
6552
+ var _a4;
6553
6553
  const resolvedResource = await resourceOrPromise;
6554
- await ((_a5 = resolvedResource.waitForAsyncAttributes) === null || _a5 === void 0 ? void 0 : _a5.call(resolvedResource));
6554
+ await ((_a4 = resolvedResource.waitForAsyncAttributes) === null || _a4 === void 0 ? void 0 : _a4.call(resolvedResource));
6555
6555
  return resolvedResource.attributes;
6556
6556
  }, "createPromise");
6557
6557
  resource = new Resource_1.Resource({}, createPromise());
@@ -6731,8 +6731,8 @@ var require_AbstractAsyncHooksContextManager = __commonJS({
6731
6731
  _patchRemoveListener(ee, original) {
6732
6732
  const contextManager = this;
6733
6733
  return function(event, listener) {
6734
- var _a4;
6735
- const events = (_a4 = contextManager._getPatchMap(ee)) === null || _a4 === void 0 ? void 0 : _a4[event];
6734
+ var _a3;
6735
+ const events = (_a3 = contextManager._getPatchMap(ee)) === null || _a3 === void 0 ? void 0 : _a3[event];
6736
6736
  if (events === void 0) {
6737
6737
  return original.call(this, event, listener);
6738
6738
  }
@@ -6830,8 +6830,8 @@ var require_AsyncHooksContextManager = __commonJS({
6830
6830
  });
6831
6831
  }
6832
6832
  active() {
6833
- var _a4;
6834
- return (_a4 = this._stack[this._stack.length - 1]) !== null && _a4 !== void 0 ? _a4 : api_1.ROOT_CONTEXT;
6833
+ var _a3;
6834
+ return (_a3 = this._stack[this._stack.length - 1]) !== null && _a3 !== void 0 ? _a3 : api_1.ROOT_CONTEXT;
6835
6835
  }
6836
6836
  with(context4, fn, thisArg, ...args) {
6837
6837
  this._enterContext(context4);
@@ -6923,8 +6923,8 @@ var require_AsyncLocalStorageContextManager = __commonJS({
6923
6923
  this._asyncLocalStorage = new async_hooks_1.AsyncLocalStorage();
6924
6924
  }
6925
6925
  active() {
6926
- var _a4;
6927
- return (_a4 = this._asyncLocalStorage.getStore()) !== null && _a4 !== void 0 ? _a4 : api_1.ROOT_CONTEXT;
6926
+ var _a3;
6927
+ return (_a3 = this._asyncLocalStorage.getStore()) !== null && _a3 !== void 0 ? _a3 : api_1.ROOT_CONTEXT;
6928
6928
  }
6929
6929
  with(context4, fn, thisArg, ...args) {
6930
6930
  const cb = thisArg == null ? fn : fn.bind(thisArg);
@@ -7602,13 +7602,13 @@ var require_ParentBasedSampler2 = __commonJS({
7602
7602
  var AlwaysOnSampler_1 = require_AlwaysOnSampler2();
7603
7603
  var _ParentBasedSampler = class _ParentBasedSampler {
7604
7604
  constructor(config) {
7605
- var _a4, _b2, _c2, _d;
7605
+ var _a3, _b2, _c2, _d;
7606
7606
  this._root = config.root;
7607
7607
  if (!this._root) {
7608
7608
  (0, core_1.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured"));
7609
7609
  this._root = new AlwaysOnSampler_1.AlwaysOnSampler();
7610
7610
  }
7611
- this._remoteParentSampled = (_a4 = config.remoteParentSampled) !== null && _a4 !== void 0 ? _a4 : new AlwaysOnSampler_1.AlwaysOnSampler();
7611
+ this._remoteParentSampled = (_a3 = config.remoteParentSampled) !== null && _a3 !== void 0 ? _a3 : new AlwaysOnSampler_1.AlwaysOnSampler();
7612
7612
  this._remoteParentNotSampled = (_b2 = config.remoteParentNotSampled) !== null && _b2 !== void 0 ? _b2 : new AlwaysOffSampler_1.AlwaysOffSampler();
7613
7613
  this._localParentSampled = (_c2 = config.localParentSampled) !== null && _c2 !== void 0 ? _c2 : new AlwaysOnSampler_1.AlwaysOnSampler();
7614
7614
  this._localParentNotSampled = (_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler_1.AlwaysOffSampler();
@@ -7786,10 +7786,10 @@ var require_utility = __commonJS({
7786
7786
  __name(mergeConfig, "mergeConfig");
7787
7787
  exports.mergeConfig = mergeConfig;
7788
7788
  function reconfigureLimits(userConfig) {
7789
- var _a4, _b2, _c2, _d, _e, _f, _g, _h, _j, _k, _l, _m;
7789
+ var _a3, _b2, _c2, _d, _e, _f, _g, _h, _j, _k, _l, _m;
7790
7790
  const spanLimits = Object.assign({}, userConfig.spanLimits);
7791
7791
  const parsedEnvConfig = (0, core_1.getEnvWithoutDefaults)();
7792
- spanLimits.attributeCountLimit = (_f = (_e = (_d = (_b2 = (_a4 = userConfig.spanLimits) === null || _a4 === void 0 ? void 0 : _a4.attributeCountLimit) !== null && _b2 !== void 0 ? _b2 : (_c2 = userConfig.generalLimits) === null || _c2 === void 0 ? void 0 : _c2.attributeCountLimit) !== null && _d !== void 0 ? _d : parsedEnvConfig.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && _e !== void 0 ? _e : parsedEnvConfig.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && _f !== void 0 ? _f : core_1.DEFAULT_ATTRIBUTE_COUNT_LIMIT;
7792
+ spanLimits.attributeCountLimit = (_f = (_e = (_d = (_b2 = (_a3 = userConfig.spanLimits) === null || _a3 === void 0 ? void 0 : _a3.attributeCountLimit) !== null && _b2 !== void 0 ? _b2 : (_c2 = userConfig.generalLimits) === null || _c2 === void 0 ? void 0 : _c2.attributeCountLimit) !== null && _d !== void 0 ? _d : parsedEnvConfig.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && _e !== void 0 ? _e : parsedEnvConfig.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && _f !== void 0 ? _f : core_1.DEFAULT_ATTRIBUTE_COUNT_LIMIT;
7793
7793
  spanLimits.attributeValueLengthLimit = (_m = (_l = (_k = (_h = (_g = userConfig.spanLimits) === null || _g === void 0 ? void 0 : _g.attributeValueLengthLimit) !== null && _h !== void 0 ? _h : (_j = userConfig.generalLimits) === null || _j === void 0 ? void 0 : _j.attributeValueLengthLimit) !== null && _k !== void 0 ? _k : parsedEnvConfig.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && _l !== void 0 ? _l : parsedEnvConfig.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && _m !== void 0 ? _m : core_1.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT;
7794
7794
  return Object.assign({}, userConfig, { spanLimits });
7795
7795
  }
@@ -7904,12 +7904,12 @@ var require_BatchSpanProcessorBase = __commonJS({
7904
7904
  spans = this._finishedSpans.splice(0, this._maxExportBatchSize);
7905
7905
  }
7906
7906
  const doExport = /* @__PURE__ */ __name(() => this._exporter.export(spans, (result) => {
7907
- var _a4;
7907
+ var _a3;
7908
7908
  clearTimeout(timer);
7909
7909
  if (result.code === core_1.ExportResultCode.SUCCESS) {
7910
7910
  resolve();
7911
7911
  } else {
7912
- reject((_a4 = result.error) !== null && _a4 !== void 0 ? _a4 : new Error("BatchSpanProcessor: span export failed"));
7912
+ reject((_a3 = result.error) !== null && _a3 !== void 0 ? _a3 : new Error("BatchSpanProcessor: span export failed"));
7913
7913
  }
7914
7914
  }), "doExport");
7915
7915
  let pendingResources = null;
@@ -8085,7 +8085,7 @@ var require_Tracer = __commonJS({
8085
8085
  * decision.
8086
8086
  */
8087
8087
  startSpan(name, options = {}, context4 = api.context.active()) {
8088
- var _a4, _b2, _c2;
8088
+ var _a3, _b2, _c2;
8089
8089
  if (options.root) {
8090
8090
  context4 = api.trace.deleteSpan(context4);
8091
8091
  }
@@ -8107,7 +8107,7 @@ var require_Tracer = __commonJS({
8107
8107
  traceState = parentSpanContext.traceState;
8108
8108
  parentSpanId = parentSpanContext.spanId;
8109
8109
  }
8110
- const spanKind = (_a4 = options.kind) !== null && _a4 !== void 0 ? _a4 : api.SpanKind.INTERNAL;
8110
+ const spanKind = (_a3 = options.kind) !== null && _a3 !== void 0 ? _a3 : api.SpanKind.INTERNAL;
8111
8111
  const links = ((_b2 = options.links) !== null && _b2 !== void 0 ? _b2 : []).map((link) => {
8112
8112
  return {
8113
8113
  context: link.context,
@@ -8268,11 +8268,11 @@ var require_BasicTracerProvider = __commonJS({
8268
8268
  })(ForceFlushState = exports.ForceFlushState || (exports.ForceFlushState = {}));
8269
8269
  var _BasicTracerProvider = class _BasicTracerProvider {
8270
8270
  constructor(config = {}) {
8271
- var _a4, _b2;
8271
+ var _a3, _b2;
8272
8272
  this._registeredSpanProcessors = [];
8273
8273
  this._tracers = /* @__PURE__ */ new Map();
8274
8274
  const mergedConfig = (0, core_1.merge)({}, (0, config_1.loadDefaultConfig)(), (0, utility_1.reconfigureLimits)(config));
8275
- this.resource = (_a4 = mergedConfig.resource) !== null && _a4 !== void 0 ? _a4 : resources_1.Resource.empty();
8275
+ this.resource = (_a3 = mergedConfig.resource) !== null && _a3 !== void 0 ? _a3 : resources_1.Resource.empty();
8276
8276
  if (mergedConfig.mergeResourceWithDefaults) {
8277
8277
  this.resource = resources_1.Resource.default().merge(this.resource);
8278
8278
  }
@@ -8377,12 +8377,12 @@ var require_BasicTracerProvider = __commonJS({
8377
8377
  * classes in the inheritance tree.
8378
8378
  */
8379
8379
  _getPropagator(name) {
8380
- var _a4;
8381
- return (_a4 = this.constructor._registeredPropagators.get(name)) === null || _a4 === void 0 ? void 0 : _a4();
8380
+ var _a3;
8381
+ return (_a3 = this.constructor._registeredPropagators.get(name)) === null || _a3 === void 0 ? void 0 : _a3();
8382
8382
  }
8383
8383
  _getSpanExporter(name) {
8384
- var _a4;
8385
- return (_a4 = this.constructor._registeredExporters.get(name)) === null || _a4 === void 0 ? void 0 : _a4();
8384
+ var _a3;
8385
+ return (_a3 = this.constructor._registeredExporters.get(name)) === null || _a3 === void 0 ? void 0 : _a3();
8386
8386
  }
8387
8387
  _buildPropagatorFromEnv() {
8388
8388
  const uniquePropagatorNames = Array.from(new Set((0, core_1.getEnv)().OTEL_PROPAGATORS));
@@ -8465,7 +8465,7 @@ var require_ConsoleSpanExporter = __commonJS({
8465
8465
  * @param span
8466
8466
  */
8467
8467
  _exportInfo(span) {
8468
- var _a4;
8468
+ var _a3;
8469
8469
  return {
8470
8470
  resource: {
8471
8471
  attributes: span.resource.attributes
@@ -8473,7 +8473,7 @@ var require_ConsoleSpanExporter = __commonJS({
8473
8473
  instrumentationScope: span.instrumentationLibrary,
8474
8474
  traceId: span.spanContext().traceId,
8475
8475
  parentId: span.parentSpanId,
8476
- traceState: (_a4 = span.spanContext().traceState) === null || _a4 === void 0 ? void 0 : _a4.serialize(),
8476
+ traceState: (_a3 = span.spanContext().traceState) === null || _a3 === void 0 ? void 0 : _a3.serialize(),
8477
8477
  name: span.name,
8478
8478
  id: span.spanContext().spanId,
8479
8479
  kind: span.kind,
@@ -8573,7 +8573,7 @@ var require_SimpleSpanProcessor = __commonJS({
8573
8573
  onStart(_span, _parentContext) {
8574
8574
  }
8575
8575
  onEnd(span) {
8576
- var _a4, _b2;
8576
+ var _a3, _b2;
8577
8577
  if (this._shutdownOnce.isCalled) {
8578
8578
  return;
8579
8579
  }
@@ -8581,15 +8581,15 @@ var require_SimpleSpanProcessor = __commonJS({
8581
8581
  return;
8582
8582
  }
8583
8583
  const doExport = /* @__PURE__ */ __name(() => core_1.internal._export(this._exporter, [span]).then((result) => {
8584
- var _a5;
8584
+ var _a4;
8585
8585
  if (result.code !== core_1.ExportResultCode.SUCCESS) {
8586
- (0, core_1.globalErrorHandler)((_a5 = result.error) !== null && _a5 !== void 0 ? _a5 : new Error(`SimpleSpanProcessor: span export failed (status ${result})`));
8586
+ (0, core_1.globalErrorHandler)((_a4 = result.error) !== null && _a4 !== void 0 ? _a4 : new Error(`SimpleSpanProcessor: span export failed (status ${result})`));
8587
8587
  }
8588
8588
  }).catch((error) => {
8589
8589
  (0, core_1.globalErrorHandler)(error);
8590
8590
  }), "doExport");
8591
8591
  if (span.resource.asyncAttributesPending) {
8592
- const exportPromise = (_b2 = (_a4 = span.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a4).then(() => {
8592
+ const exportPromise = (_b2 = (_a3 = span.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a3).then(() => {
8593
8593
  if (exportPromise != null) {
8594
8594
  this._unresolvedExports.delete(exportPromise);
8595
8595
  }
@@ -10654,7 +10654,7 @@ var require_JaegerPropagator = __commonJS({
10654
10654
  }
10655
10655
  }
10656
10656
  extract(context4, carrier, getter) {
10657
- var _a4;
10657
+ var _a3;
10658
10658
  const uberTraceIdHeader = getter.get(carrier, this._jaegerTraceHeader);
10659
10659
  const uberTraceId = Array.isArray(uberTraceIdHeader) ? uberTraceIdHeader[0] : uberTraceIdHeader;
10660
10660
  const baggageValues = getter.keys(carrier).filter((key) => key.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map((key) => {
@@ -10673,7 +10673,7 @@ var require_JaegerPropagator = __commonJS({
10673
10673
  }
10674
10674
  if (baggageValues.length === 0)
10675
10675
  return newContext;
10676
- let currentBaggage = (_a4 = api_1.propagation.getBaggage(context4)) !== null && _a4 !== void 0 ? _a4 : api_1.propagation.createBaggage();
10676
+ let currentBaggage = (_a3 = api_1.propagation.getBaggage(context4)) !== null && _a3 !== void 0 ? _a3 : api_1.propagation.createBaggage();
10677
10677
  for (const baggageEntry of baggageValues) {
10678
10678
  if (baggageEntry.value === void 0)
10679
10679
  continue;
@@ -13658,8 +13658,8 @@ var require_utils5 = __commonJS({
13658
13658
  __name(hashAttributes, "hashAttributes");
13659
13659
  exports.hashAttributes = hashAttributes;
13660
13660
  function instrumentationScopeId(instrumentationScope) {
13661
- var _a4, _b2;
13662
- return `${instrumentationScope.name}:${(_a4 = instrumentationScope.version) !== null && _a4 !== void 0 ? _a4 : ""}:${(_b2 = instrumentationScope.schemaUrl) !== null && _b2 !== void 0 ? _b2 : ""}`;
13661
+ var _a3, _b2;
13662
+ return `${instrumentationScope.name}:${(_a3 = instrumentationScope.version) !== null && _a3 !== void 0 ? _a3 : ""}:${(_b2 = instrumentationScope.schemaUrl) !== null && _b2 !== void 0 ? _b2 : ""}`;
13663
13663
  }
13664
13664
  __name(instrumentationScopeId, "instrumentationScopeId");
13665
13665
  exports.instrumentationScopeId = instrumentationScopeId;
@@ -13825,14 +13825,14 @@ var require_InstrumentDescriptor = __commonJS({
13825
13825
  InstrumentType2["OBSERVABLE_UP_DOWN_COUNTER"] = "OBSERVABLE_UP_DOWN_COUNTER";
13826
13826
  })(InstrumentType = exports.InstrumentType || (exports.InstrumentType = {}));
13827
13827
  function createInstrumentDescriptor(name, type3, options) {
13828
- var _a4, _b2, _c2, _d;
13828
+ var _a3, _b2, _c2, _d;
13829
13829
  if (!isValidName(name)) {
13830
13830
  api_1.diag.warn(`Invalid metric name: "${name}". The metric name should be a ASCII string with a length no greater than 255 characters.`);
13831
13831
  }
13832
13832
  return {
13833
13833
  name,
13834
13834
  type: type3,
13835
- description: (_a4 = options === null || options === void 0 ? void 0 : options.description) !== null && _a4 !== void 0 ? _a4 : "",
13835
+ description: (_a3 = options === null || options === void 0 ? void 0 : options.description) !== null && _a3 !== void 0 ? _a3 : "",
13836
13836
  unit: (_b2 = options === null || options === void 0 ? void 0 : options.unit) !== null && _b2 !== void 0 ? _b2 : "",
13837
13837
  valueType: (_c2 = options === null || options === void 0 ? void 0 : options.valueType) !== null && _c2 !== void 0 ? _c2 : api_1.ValueType.DOUBLE,
13838
13838
  advice: (_d = options === null || options === void 0 ? void 0 : options.advice) !== null && _d !== void 0 ? _d : {}
@@ -13841,9 +13841,9 @@ var require_InstrumentDescriptor = __commonJS({
13841
13841
  __name(createInstrumentDescriptor, "createInstrumentDescriptor");
13842
13842
  exports.createInstrumentDescriptor = createInstrumentDescriptor;
13843
13843
  function createInstrumentDescriptorWithView(view, instrument) {
13844
- var _a4, _b2;
13844
+ var _a3, _b2;
13845
13845
  return {
13846
- name: (_a4 = view.name) !== null && _a4 !== void 0 ? _a4 : instrument.name,
13846
+ name: (_a3 = view.name) !== null && _a3 !== void 0 ? _a3 : instrument.name,
13847
13847
  description: (_b2 = view.description) !== null && _b2 !== void 0 ? _b2 : instrument.description,
13848
13848
  type: instrument.type,
13849
13849
  unit: instrument.unit,
@@ -15366,9 +15366,9 @@ var require_MetricReader = __commonJS({
15366
15366
  var AggregationSelector_1 = require_AggregationSelector();
15367
15367
  var _MetricReader = class _MetricReader {
15368
15368
  constructor(options) {
15369
- var _a4, _b2, _c2;
15369
+ var _a3, _b2, _c2;
15370
15370
  this._shutdown = false;
15371
- this._aggregationSelector = (_a4 = options === null || options === void 0 ? void 0 : options.aggregationSelector) !== null && _a4 !== void 0 ? _a4 : AggregationSelector_1.DEFAULT_AGGREGATION_SELECTOR;
15371
+ this._aggregationSelector = (_a3 = options === null || options === void 0 ? void 0 : options.aggregationSelector) !== null && _a3 !== void 0 ? _a3 : AggregationSelector_1.DEFAULT_AGGREGATION_SELECTOR;
15372
15372
  this._aggregationTemporalitySelector = (_b2 = options === null || options === void 0 ? void 0 : options.aggregationTemporalitySelector) !== null && _b2 !== void 0 ? _b2 : AggregationSelector_1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR;
15373
15373
  this._metricProducers = (_c2 = options === null || options === void 0 ? void 0 : options.metricProducers) !== null && _c2 !== void 0 ? _c2 : [];
15374
15374
  this._cardinalitySelector = options === null || options === void 0 ? void 0 : options.cardinalitySelector;
@@ -15500,9 +15500,9 @@ var require_PeriodicExportingMetricReader = __commonJS({
15500
15500
  var utils_1 = require_utils5();
15501
15501
  var _PeriodicExportingMetricReader = class _PeriodicExportingMetricReader extends MetricReader_1.MetricReader {
15502
15502
  constructor(options) {
15503
- var _a4, _b2, _c2, _d;
15503
+ var _a3, _b2, _c2, _d;
15504
15504
  super({
15505
- aggregationSelector: (_a4 = options.exporter.selectAggregation) === null || _a4 === void 0 ? void 0 : _a4.bind(options.exporter),
15505
+ aggregationSelector: (_a3 = options.exporter.selectAggregation) === null || _a3 === void 0 ? void 0 : _a3.bind(options.exporter),
15506
15506
  aggregationTemporalitySelector: (_b2 = options.exporter.selectAggregationTemporality) === null || _b2 === void 0 ? void 0 : _b2.bind(options.exporter),
15507
15507
  metricProducers: options.metricProducers
15508
15508
  });
@@ -15531,7 +15531,7 @@ var require_PeriodicExportingMetricReader = __commonJS({
15531
15531
  }
15532
15532
  }
15533
15533
  async _doRun() {
15534
- var _a4, _b2;
15534
+ var _a3, _b2;
15535
15535
  const { resourceMetrics, errors } = await this.collect({
15536
15536
  timeoutMillis: this._exportTimeout
15537
15537
  });
@@ -15540,7 +15540,7 @@ var require_PeriodicExportingMetricReader = __commonJS({
15540
15540
  }
15541
15541
  if (resourceMetrics.resource.asyncAttributesPending) {
15542
15542
  try {
15543
- await ((_b2 = (_a4 = resourceMetrics.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a4));
15543
+ await ((_b2 = (_a3 = resourceMetrics.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a3));
15544
15544
  } catch (e) {
15545
15545
  api.diag.debug("Error while resolving async portion of resource: ", e);
15546
15546
  (0, core_1.globalErrorHandler)(e);
@@ -15639,9 +15639,9 @@ var require_ConsoleMetricExporter = __commonJS({
15639
15639
  var AggregationSelector_1 = require_AggregationSelector();
15640
15640
  var _ConsoleMetricExporter = class _ConsoleMetricExporter {
15641
15641
  constructor(options) {
15642
- var _a4;
15642
+ var _a3;
15643
15643
  this._shutdown = false;
15644
- this._temporalitySelector = (_a4 = options === null || options === void 0 ? void 0 : options.temporalitySelector) !== null && _a4 !== void 0 ? _a4 : AggregationSelector_1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR;
15644
+ this._temporalitySelector = (_a3 = options === null || options === void 0 ? void 0 : options.temporalitySelector) !== null && _a3 !== void 0 ? _a3 : AggregationSelector_1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR;
15645
15645
  }
15646
15646
  export(metrics2, resultCallback) {
15647
15647
  if (this._shutdown) {
@@ -16917,8 +16917,8 @@ var require_MetricCollector = __commonJS({
16917
16917
  * collector.
16918
16918
  */
16919
16919
  selectCardinalityLimit(instrumentType) {
16920
- var _a4, _b2, _c2;
16921
- return (_c2 = (_b2 = (_a4 = this._metricReader).selectCardinalityLimit) === null || _b2 === void 0 ? void 0 : _b2.call(_a4, instrumentType)) !== null && _c2 !== void 0 ? _c2 : 2e3;
16920
+ var _a3, _b2, _c2;
16921
+ return (_c2 = (_b2 = (_a3 = this._metricReader).selectCardinalityLimit) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, instrumentType)) !== null && _c2 !== void 0 ? _c2 : 2e3;
16922
16922
  }
16923
16923
  };
16924
16924
  __name(_MetricCollector, "MetricCollector");
@@ -16947,9 +16947,9 @@ var require_MeterProvider = __commonJS({
16947
16947
  __name(prepareResource, "prepareResource");
16948
16948
  var _MeterProvider = class _MeterProvider {
16949
16949
  constructor(options) {
16950
- var _a4;
16950
+ var _a3;
16951
16951
  this._shutdown = false;
16952
- this._sharedState = new MeterProviderSharedState_1.MeterProviderSharedState(prepareResource((_a4 = options === null || options === void 0 ? void 0 : options.mergeResourceWithDefaults) !== null && _a4 !== void 0 ? _a4 : true, options === null || options === void 0 ? void 0 : options.resource));
16952
+ this._sharedState = new MeterProviderSharedState_1.MeterProviderSharedState(prepareResource((_a3 = options === null || options === void 0 ? void 0 : options.mergeResourceWithDefaults) !== null && _a3 !== void 0 ? _a3 : true, options === null || options === void 0 ? void 0 : options.resource));
16953
16953
  if ((options === null || options === void 0 ? void 0 : options.views) != null && options.views.length > 0) {
16954
16954
  for (const view of options.views) {
16955
16955
  this._sharedState.viewRegistry.addView(view);
@@ -17092,8 +17092,8 @@ var require_InstrumentSelector = __commonJS({
17092
17092
  var Predicate_1 = require_Predicate();
17093
17093
  var _InstrumentSelector = class _InstrumentSelector {
17094
17094
  constructor(criteria) {
17095
- var _a4;
17096
- this._nameFilter = new Predicate_1.PatternPredicate((_a4 = criteria === null || criteria === void 0 ? void 0 : criteria.name) !== null && _a4 !== void 0 ? _a4 : "*");
17095
+ var _a3;
17096
+ this._nameFilter = new Predicate_1.PatternPredicate((_a3 = criteria === null || criteria === void 0 ? void 0 : criteria.name) !== null && _a3 !== void 0 ? _a3 : "*");
17097
17097
  this._type = criteria === null || criteria === void 0 ? void 0 : criteria.type;
17098
17098
  this._unitFilter = new Predicate_1.ExactPredicate(criteria === null || criteria === void 0 ? void 0 : criteria.unit);
17099
17099
  }
@@ -17218,7 +17218,7 @@ var require_View = __commonJS({
17218
17218
  * })
17219
17219
  */
17220
17220
  constructor(viewOptions) {
17221
- var _a4;
17221
+ var _a3;
17222
17222
  if (isSelectorNotProvided(viewOptions)) {
17223
17223
  throw new Error("Cannot create view with no selector arguments supplied");
17224
17224
  }
@@ -17232,7 +17232,7 @@ var require_View = __commonJS({
17232
17232
  }
17233
17233
  this.name = viewOptions.name;
17234
17234
  this.description = viewOptions.description;
17235
- this.aggregation = (_a4 = viewOptions.aggregation) !== null && _a4 !== void 0 ? _a4 : Aggregation_1.Aggregation.Default();
17235
+ this.aggregation = (_a3 = viewOptions.aggregation) !== null && _a3 !== void 0 ? _a3 : Aggregation_1.Aggregation.Default();
17236
17236
  this.instrumentSelector = new InstrumentSelector_1.InstrumentSelector({
17237
17237
  name: viewOptions.instrumentName,
17238
17238
  type: viewOptions.instrumentType,
@@ -17339,8 +17339,8 @@ import { createHash } from "crypto";
17339
17339
 
17340
17340
  // ../environment/src/getEnvBoolean.js
17341
17341
  function getEnvBoolean(name) {
17342
- var _a4;
17343
- const value = (_a4 = process.env[name]) == null ? void 0 : _a4.toLowerCase();
17342
+ var _a3;
17343
+ const value = (_a3 = process.env[name]) == null ? void 0 : _a3.toLowerCase();
17344
17344
  return value ? value !== "0" && value !== "false" : void 0;
17345
17345
  }
17346
17346
  __name(getEnvBoolean, "getEnvBoolean");
@@ -17393,16 +17393,16 @@ var environmentInfo = Object.freeze({
17393
17393
  import { execSync } from "child_process";
17394
17394
  import { hostname } from "os";
17395
17395
  function getComputerName() {
17396
- var _a4;
17396
+ var _a3;
17397
17397
  try {
17398
17398
  const computerNameGetters = {
17399
17399
  win32: /* @__PURE__ */ __name(() => {
17400
- var _a5;
17401
- return (_a5 = environmentInfo.windows) == null ? void 0 : _a5.computerName;
17400
+ var _a4;
17401
+ return (_a4 = environmentInfo.windows) == null ? void 0 : _a4.computerName;
17402
17402
  }, "win32"),
17403
17403
  darwin: /* @__PURE__ */ __name(() => execSync("scutil --get ComputerName").toString(), "darwin")
17404
17404
  };
17405
- const computerName = ((_a4 = computerNameGetters[process.platform]) == null ? void 0 : _a4.call(computerNameGetters)) || hostname();
17405
+ const computerName = ((_a3 = computerNameGetters[process.platform]) == null ? void 0 : _a3.call(computerNameGetters)) || hostname();
17406
17406
  return computerName.trim();
17407
17407
  } catch (e) {
17408
17408
  console.warn("Unable to get OS specific computer name for telemetry, falling back to hostname", e);
@@ -17850,7 +17850,7 @@ var _AzureMonitorBaseExporter = class _AzureMonitorBaseExporter {
17850
17850
  * @param AzureMonitorExporterOptions - Exporter configuration.
17851
17851
  */
17852
17852
  constructor(options = {}, isStatsbeatExporter) {
17853
- var _a4;
17853
+ var _a3;
17854
17854
  this.instrumentationKey = "";
17855
17855
  this.endpointUrl = "";
17856
17856
  this.trackStatsbeat = false;
@@ -17862,7 +17862,7 @@ var _AzureMonitorBaseExporter = class _AzureMonitorBaseExporter {
17862
17862
  if (connectionString) {
17863
17863
  const parsedConnectionString = ConnectionStringParser.parse(connectionString);
17864
17864
  this.instrumentationKey = parsedConnectionString.instrumentationkey || this.instrumentationKey;
17865
- this.endpointUrl = ((_a4 = parsedConnectionString.ingestionendpoint) === null || _a4 === void 0 ? void 0 : _a4.trim()) || this.endpointUrl;
17865
+ this.endpointUrl = ((_a3 = parsedConnectionString.ingestionendpoint) === null || _a3 === void 0 ? void 0 : _a3.trim()) || this.endpointUrl;
17866
17866
  this.aadAudience = parsedConnectionString.aadaudience;
17867
17867
  }
17868
17868
  if (!this.instrumentationKey) {
@@ -18094,7 +18094,7 @@ var confirmDirExists = /* @__PURE__ */ __name(async (directory) => {
18094
18094
  import { readdir as readdir2, readFile, stat as stat2, unlink, writeFile } from "node:fs/promises";
18095
18095
  var _FileSystemPersist = class _FileSystemPersist {
18096
18096
  constructor(instrumentationKey, _options) {
18097
- var _a4, _b2;
18097
+ var _a3, _b2;
18098
18098
  this._options = _options;
18099
18099
  this.fileRetemptionPeriod = 2 * 24 * 60 * 60 * 1e3;
18100
18100
  this.cleanupTimeOut = 60 * 60 * 1e3;
@@ -18102,7 +18102,7 @@ var _FileSystemPersist = class _FileSystemPersist {
18102
18102
  this._tempDirectory = "";
18103
18103
  this._fileCleanupTimer = null;
18104
18104
  this._instrumentationKey = instrumentationKey;
18105
- if ((_a4 = this._options) === null || _a4 === void 0 ? void 0 : _a4.disableOfflineStorage) {
18105
+ if ((_a3 = this._options) === null || _a3 === void 0 ? void 0 : _a3.disableOfflineStorage) {
18106
18106
  this._enabled = false;
18107
18107
  return;
18108
18108
  }
@@ -18127,12 +18127,12 @@ var _FileSystemPersist = class _FileSystemPersist {
18127
18127
  }
18128
18128
  }
18129
18129
  push(value) {
18130
- var _a4;
18130
+ var _a3;
18131
18131
  if (this._enabled) {
18132
18132
  diag2.debug("Pushing value to persistent storage", value.toString());
18133
18133
  return this._storeToDisk(JSON.stringify(value));
18134
18134
  }
18135
- if (!((_a4 = this._options) === null || _a4 === void 0 ? void 0 : _a4.disableOfflineStorage)) {
18135
+ if (!((_a3 = this._options) === null || _a3 === void 0 ? void 0 : _a3.disableOfflineStorage)) {
18136
18136
  return new Promise((resolve) => {
18137
18137
  resolve(false);
18138
18138
  });
@@ -18251,7 +18251,7 @@ FileSystemPersist.FILENAME_SUFFIX = ".ai.json";
18251
18251
  init_esm();
18252
18252
  import url from "node:url";
18253
18253
 
18254
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/abort-controller/AbortError.js
18254
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/abort-controller/AbortError.js
18255
18255
  var _AbortError = class _AbortError extends Error {
18256
18256
  constructor(message) {
18257
18257
  super(message);
@@ -18261,7 +18261,7 @@ var _AbortError = class _AbortError extends Error {
18261
18261
  __name(_AbortError, "AbortError");
18262
18262
  var AbortError = _AbortError;
18263
18263
 
18264
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/logger/log.js
18264
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/logger/log.js
18265
18265
  import { EOL } from "node:os";
18266
18266
  import util from "node:util";
18267
18267
  import process3 from "node:process";
@@ -18270,7 +18270,7 @@ function log(message, ...args) {
18270
18270
  }
18271
18271
  __name(log, "log");
18272
18272
 
18273
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/logger/debug.js
18273
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/logger/debug.js
18274
18274
  var debugEnvVariable = typeof process !== "undefined" && process.env && process.env.DEBUG || void 0;
18275
18275
  var enabledString;
18276
18276
  var enabledNamespaces = [];
@@ -18436,7 +18436,7 @@ function extend(namespace) {
18436
18436
  __name(extend, "extend");
18437
18437
  var debug_default = debugObj;
18438
18438
 
18439
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/logger/logger.js
18439
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/logger/logger.js
18440
18440
  var TYPESPEC_RUNTIME_LOG_LEVELS = ["verbose", "info", "warning", "error"];
18441
18441
  var levelMap = {
18442
18442
  verbose: 400,
@@ -18533,7 +18533,7 @@ function createClientLogger(namespace) {
18533
18533
  }
18534
18534
  __name(createClientLogger, "createClientLogger");
18535
18535
 
18536
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/httpHeaders.js
18536
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/httpHeaders.js
18537
18537
  function normalizeName(name) {
18538
18538
  return name.toLowerCase();
18539
18539
  }
@@ -18569,8 +18569,8 @@ var _HttpHeadersImpl = class _HttpHeadersImpl {
18569
18569
  * @param name - The name of the header. This value is case-insensitive.
18570
18570
  */
18571
18571
  get(name) {
18572
- var _a4;
18573
- return (_a4 = this._headersMap.get(normalizeName(name))) == null ? void 0 : _a4.value;
18572
+ var _a3;
18573
+ return (_a3 = this._headersMap.get(normalizeName(name))) == null ? void 0 : _a3.value;
18574
18574
  }
18575
18575
  /**
18576
18576
  * Get whether or not this header collection contains a header entry for the provided header name.
@@ -18622,16 +18622,13 @@ function createHttpHeaders(rawHeaders) {
18622
18622
  }
18623
18623
  __name(createHttpHeaders, "createHttpHeaders");
18624
18624
 
18625
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/uuidUtils.js
18626
- import { randomUUID as v4RandomUUID } from "node:crypto";
18627
- var _a;
18628
- var uuidFunction = typeof ((_a = globalThis == null ? void 0 : globalThis.crypto) == null ? void 0 : _a.randomUUID) === "function" ? globalThis.crypto.randomUUID.bind(globalThis.crypto) : v4RandomUUID;
18625
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/uuidUtils.js
18629
18626
  function randomUUID() {
18630
- return uuidFunction();
18627
+ return crypto.randomUUID();
18631
18628
  }
18632
18629
  __name(randomUUID, "randomUUID");
18633
18630
 
18634
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/pipelineRequest.js
18631
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/pipelineRequest.js
18635
18632
  var _PipelineRequestImpl = class _PipelineRequestImpl {
18636
18633
  url;
18637
18634
  method;
@@ -18681,7 +18678,7 @@ function createPipelineRequest(options) {
18681
18678
  }
18682
18679
  __name(createPipelineRequest, "createPipelineRequest");
18683
18680
 
18684
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/pipeline.js
18681
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/pipeline.js
18685
18682
  var ValidPhaseNames = /* @__PURE__ */ new Set(["Deserialize", "Serialize", "Retry", "Sign"]);
18686
18683
  var _HttpPipeline = class _HttpPipeline {
18687
18684
  _policies = [];
@@ -18869,13 +18866,13 @@ function createEmptyPipeline() {
18869
18866
  }
18870
18867
  __name(createEmptyPipeline, "createEmptyPipeline");
18871
18868
 
18872
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/object.js
18869
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/object.js
18873
18870
  function isObject(input) {
18874
18871
  return typeof input === "object" && input !== null && !Array.isArray(input) && !(input instanceof RegExp) && !(input instanceof Date);
18875
18872
  }
18876
18873
  __name(isObject, "isObject");
18877
18874
 
18878
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/error.js
18875
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/error.js
18879
18876
  function isError(e) {
18880
18877
  if (isObject(e)) {
18881
18878
  const hasName = typeof e.name === "string";
@@ -18886,11 +18883,11 @@ function isError(e) {
18886
18883
  }
18887
18884
  __name(isError, "isError");
18888
18885
 
18889
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/inspect.js
18886
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/inspect.js
18890
18887
  import { inspect } from "node:util";
18891
18888
  var custom = inspect.custom;
18892
18889
 
18893
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/sanitizer.js
18890
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/sanitizer.js
18894
18891
  var RedactedString = "REDACTED";
18895
18892
  var defaultAllowedHeaderNames = [
18896
18893
  "x-ms-client-request-id",
@@ -19028,7 +19025,7 @@ var _Sanitizer = class _Sanitizer {
19028
19025
  __name(_Sanitizer, "Sanitizer");
19029
19026
  var Sanitizer = _Sanitizer;
19030
19027
 
19031
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/restError.js
19028
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/restError.js
19032
19029
  var errorSanitizer = new Sanitizer();
19033
19030
  var _RestError = class _RestError extends Error {
19034
19031
  /**
@@ -19054,14 +19051,14 @@ var _RestError = class _RestError extends Error {
19054
19051
  */
19055
19052
  details;
19056
19053
  constructor(message, options = {}) {
19057
- var _a4;
19054
+ var _a3;
19058
19055
  super(message);
19059
19056
  this.name = "RestError";
19060
19057
  this.code = options.code;
19061
19058
  this.statusCode = options.statusCode;
19062
19059
  Object.defineProperty(this, "request", { value: options.request, enumerable: false });
19063
19060
  Object.defineProperty(this, "response", { value: options.response, enumerable: false });
19064
- const agent = ((_a4 = this.request) == null ? void 0 : _a4.agent) ? {
19061
+ const agent = ((_a3 = this.request) == null ? void 0 : _a3.agent) ? {
19065
19062
  maxFreeSockets: this.request.agent.maxFreeSockets,
19066
19063
  maxSockets: this.request.agent.maxSockets
19067
19064
  } : void 0;
@@ -19100,22 +19097,22 @@ function isRestError(e) {
19100
19097
  }
19101
19098
  __name(isRestError, "isRestError");
19102
19099
 
19103
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/bytesEncoding.js
19100
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/bytesEncoding.js
19104
19101
  function stringToUint8Array(value, format) {
19105
19102
  return Buffer.from(value, format);
19106
19103
  }
19107
19104
  __name(stringToUint8Array, "stringToUint8Array");
19108
19105
 
19109
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/nodeHttpClient.js
19106
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/nodeHttpClient.js
19110
19107
  import http from "node:http";
19111
19108
  import https from "node:https";
19112
19109
  import zlib from "node:zlib";
19113
19110
  import { Transform } from "node:stream";
19114
19111
 
19115
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/log.js
19112
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/log.js
19116
19113
  var logger = createClientLogger("ts-http-runtime");
19117
19114
 
19118
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/nodeHttpClient.js
19115
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/nodeHttpClient.js
19119
19116
  var DEFAULT_TLS_SETTINGS = {};
19120
19117
  function isReadableStream(body2) {
19121
19118
  return body2 && typeof body2.pipe === "function";
@@ -19171,7 +19168,7 @@ var _NodeHttpClient = class _NodeHttpClient {
19171
19168
  * @param request - The request to be made.
19172
19169
  */
19173
19170
  async sendRequest(request) {
19174
- var _a4, _b2;
19171
+ var _a3, _b2;
19175
19172
  const abortController = new AbortController();
19176
19173
  let abortListener;
19177
19174
  if (request.abortSignal) {
@@ -19244,7 +19241,7 @@ var _NodeHttpClient = class _NodeHttpClient {
19244
19241
  }
19245
19242
  if (
19246
19243
  // Value of POSITIVE_INFINITY in streamResponseStatusCodes is considered as any status code
19247
- ((_a4 = request.streamResponseStatusCodes) == null ? void 0 : _a4.has(Number.POSITIVE_INFINITY)) || ((_b2 = request.streamResponseStatusCodes) == null ? void 0 : _b2.has(response.status))
19244
+ ((_a3 = request.streamResponseStatusCodes) == null ? void 0 : _a3.has(Number.POSITIVE_INFINITY)) || ((_b2 = request.streamResponseStatusCodes) == null ? void 0 : _b2.has(response.status))
19248
19245
  ) {
19249
19246
  response.readableStreamBody = responseStream;
19250
19247
  } else {
@@ -19262,9 +19259,9 @@ var _NodeHttpClient = class _NodeHttpClient {
19262
19259
  downloadStreamDone = isStreamComplete(responseStream);
19263
19260
  }
19264
19261
  Promise.all([uploadStreamDone, downloadStreamDone]).then(() => {
19265
- var _a5;
19262
+ var _a4;
19266
19263
  if (abortListener) {
19267
- (_a5 = request.abortSignal) == null ? void 0 : _a5.removeEventListener("abort", abortListener);
19264
+ (_a4 = request.abortSignal) == null ? void 0 : _a4.removeEventListener("abort", abortListener);
19268
19265
  }
19269
19266
  }).catch((e) => {
19270
19267
  logger.warning("Error when cleaning up abortListener on httpRequest", e);
@@ -19422,13 +19419,13 @@ function createNodeHttpClient() {
19422
19419
  }
19423
19420
  __name(createNodeHttpClient, "createNodeHttpClient");
19424
19421
 
19425
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/defaultHttpClient.js
19422
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/defaultHttpClient.js
19426
19423
  function createDefaultHttpClient() {
19427
19424
  return createNodeHttpClient();
19428
19425
  }
19429
19426
  __name(createDefaultHttpClient, "createDefaultHttpClient");
19430
19427
 
19431
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/logPolicy.js
19428
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/logPolicy.js
19432
19429
  var logPolicyName = "logPolicy";
19433
19430
  function logPolicy(options = {}) {
19434
19431
  const logger4 = options.logger ?? logger.info;
@@ -19452,7 +19449,7 @@ function logPolicy(options = {}) {
19452
19449
  }
19453
19450
  __name(logPolicy, "logPolicy");
19454
19451
 
19455
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/redirectPolicy.js
19452
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/redirectPolicy.js
19456
19453
  var redirectPolicyName = "redirectPolicy";
19457
19454
  var allowedRedirect = ["GET", "HEAD"];
19458
19455
  function redirectPolicy(options = {}) {
@@ -19485,25 +19482,25 @@ async function handleRedirect(next, response, maxRetries, currentRetries = 0) {
19485
19482
  }
19486
19483
  __name(handleRedirect, "handleRedirect");
19487
19484
 
19488
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/userAgentPlatform.js
19485
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/userAgentPlatform.js
19489
19486
  function getHeaderName() {
19490
19487
  return "User-Agent";
19491
19488
  }
19492
19489
  __name(getHeaderName, "getHeaderName");
19493
19490
 
19494
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/constants.js
19491
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/constants.js
19495
19492
  var DEFAULT_RETRY_POLICY_COUNT = 3;
19496
19493
 
19497
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/userAgent.js
19494
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/userAgent.js
19498
19495
  function getUserAgentHeaderName() {
19499
19496
  return getHeaderName();
19500
19497
  }
19501
19498
  __name(getUserAgentHeaderName, "getUserAgentHeaderName");
19502
19499
 
19503
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/userAgentPolicy.js
19500
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/userAgentPolicy.js
19504
19501
  var UserAgentHeaderName = getUserAgentHeaderName();
19505
19502
 
19506
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/decompressResponsePolicy.js
19503
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/decompressResponsePolicy.js
19507
19504
  var decompressResponsePolicyName = "decompressResponsePolicy";
19508
19505
  function decompressResponsePolicy() {
19509
19506
  return {
@@ -19518,7 +19515,7 @@ function decompressResponsePolicy() {
19518
19515
  }
19519
19516
  __name(decompressResponsePolicy, "decompressResponsePolicy");
19520
19517
 
19521
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/random.js
19518
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/random.js
19522
19519
  function getRandomIntegerInclusive(min, max) {
19523
19520
  min = Math.ceil(min);
19524
19521
  max = Math.floor(max);
@@ -19527,7 +19524,7 @@ function getRandomIntegerInclusive(min, max) {
19527
19524
  }
19528
19525
  __name(getRandomIntegerInclusive, "getRandomIntegerInclusive");
19529
19526
 
19530
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/delay.js
19527
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/delay.js
19531
19528
  function calculateRetryDelay(retryAttempt, config) {
19532
19529
  const exponentialDelay = config.retryDelayInMs * Math.pow(2, retryAttempt);
19533
19530
  const clampedDelay = Math.min(config.maxRetryDelayInMs, exponentialDelay);
@@ -19536,7 +19533,7 @@ function calculateRetryDelay(retryAttempt, config) {
19536
19533
  }
19537
19534
  __name(calculateRetryDelay, "calculateRetryDelay");
19538
19535
 
19539
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/helpers.js
19536
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/helpers.js
19540
19537
  var StandardAbortMessage = "The operation was aborted.";
19541
19538
  function delay(delayInMs, value, options) {
19542
19539
  return new Promise((resolve, reject) => {
@@ -19581,7 +19578,7 @@ function parseHeaderValueAsNumber(response, headerName) {
19581
19578
  }
19582
19579
  __name(parseHeaderValueAsNumber, "parseHeaderValueAsNumber");
19583
19580
 
19584
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/retryStrategies/throttlingRetryStrategy.js
19581
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/retryStrategies/throttlingRetryStrategy.js
19585
19582
  var RetryAfterHeader = "Retry-After";
19586
19583
  var AllRetryAfterHeaders = ["retry-after-ms", "x-ms-retry-after-ms", RetryAfterHeader];
19587
19584
  function getRetryAfterInMs(response) {
@@ -19626,7 +19623,7 @@ function throttlingRetryStrategy() {
19626
19623
  }
19627
19624
  __name(throttlingRetryStrategy, "throttlingRetryStrategy");
19628
19625
 
19629
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/retryStrategies/exponentialRetryStrategy.js
19626
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/retryStrategies/exponentialRetryStrategy.js
19630
19627
  var DEFAULT_CLIENT_RETRY_INTERVAL = 1e3;
19631
19628
  var DEFAULT_CLIENT_MAX_RETRY_INTERVAL = 1e3 * 64;
19632
19629
  function exponentialRetryStrategy(options = {}) {
@@ -19666,7 +19663,7 @@ function isSystemError(err) {
19666
19663
  }
19667
19664
  __name(isSystemError, "isSystemError");
19668
19665
 
19669
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/retryPolicy.js
19666
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/retryPolicy.js
19670
19667
  var retryPolicyLogger = createClientLogger("ts-http-runtime retryPolicy");
19671
19668
  var retryPolicyName = "retryPolicy";
19672
19669
  function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_COUNT }) {
@@ -19674,7 +19671,7 @@ function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_CO
19674
19671
  return {
19675
19672
  name: retryPolicyName,
19676
19673
  async sendRequest(request, next) {
19677
- var _a4;
19674
+ var _a3;
19678
19675
  let response;
19679
19676
  let responseError;
19680
19677
  let retryCount = -1;
@@ -19694,7 +19691,7 @@ function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_CO
19694
19691
  }
19695
19692
  response = responseError.response;
19696
19693
  }
19697
- if ((_a4 = request.abortSignal) == null ? void 0 : _a4.aborted) {
19694
+ if ((_a3 = request.abortSignal) == null ? void 0 : _a3.aborted) {
19698
19695
  logger4.error(`Retry ${retryCount}: Request aborted.`);
19699
19696
  const abortError = new AbortError();
19700
19697
  throw abortError;
@@ -19752,7 +19749,7 @@ function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_CO
19752
19749
  }
19753
19750
  __name(retryPolicy, "retryPolicy");
19754
19751
 
19755
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/defaultRetryPolicy.js
19752
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/defaultRetryPolicy.js
19756
19753
  var defaultRetryPolicyName = "defaultRetryPolicy";
19757
19754
  function defaultRetryPolicy(options = {}) {
19758
19755
  return {
@@ -19764,17 +19761,17 @@ function defaultRetryPolicy(options = {}) {
19764
19761
  }
19765
19762
  __name(defaultRetryPolicy, "defaultRetryPolicy");
19766
19763
 
19767
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/checkEnvironment.js
19764
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/checkEnvironment.js
19768
19765
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
19769
- var _a2, _b, _c;
19770
- var isWebWorker = typeof self === "object" && typeof (self == null ? void 0 : self.importScripts) === "function" && (((_a2 = self.constructor) == null ? void 0 : _a2.name) === "DedicatedWorkerGlobalScope" || ((_b = self.constructor) == null ? void 0 : _b.name) === "ServiceWorkerGlobalScope" || ((_c = self.constructor) == null ? void 0 : _c.name) === "SharedWorkerGlobalScope");
19766
+ var _a, _b, _c;
19767
+ var isWebWorker = typeof self === "object" && typeof (self == null ? void 0 : self.importScripts) === "function" && (((_a = self.constructor) == null ? void 0 : _a.name) === "DedicatedWorkerGlobalScope" || ((_b = self.constructor) == null ? void 0 : _b.name) === "ServiceWorkerGlobalScope" || ((_c = self.constructor) == null ? void 0 : _c.name) === "SharedWorkerGlobalScope");
19771
19768
  var isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
19772
19769
  var isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
19773
- var _a3;
19774
- var isNodeLike = typeof globalThis.process !== "undefined" && Boolean(globalThis.process.version) && Boolean((_a3 = globalThis.process.versions) == null ? void 0 : _a3.node);
19770
+ var _a2;
19771
+ var isNodeLike = typeof globalThis.process !== "undefined" && Boolean(globalThis.process.version) && Boolean((_a2 = globalThis.process.versions) == null ? void 0 : _a2.node);
19775
19772
  var isReactNative = typeof navigator !== "undefined" && (navigator == null ? void 0 : navigator.product) === "ReactNative";
19776
19773
 
19777
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/formDataPolicy.js
19774
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/formDataPolicy.js
19778
19775
  var formDataPolicyName = "formDataPolicy";
19779
19776
  function formDataToFormDataMap(formData) {
19780
19777
  const formDataMap = {};
@@ -19855,7 +19852,7 @@ async function prepareFormData(formData, request) {
19855
19852
  }
19856
19853
  __name(prepareFormData, "prepareFormData");
19857
19854
 
19858
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/proxyPolicy.js
19855
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/proxyPolicy.js
19859
19856
  var import_https_proxy_agent = __toESM(require_dist2(), 1);
19860
19857
  var import_http_proxy_agent = __toESM(require_dist3(), 1);
19861
19858
  var HTTPS_PROXY = "HTTPS_PROXY";
@@ -19987,7 +19984,7 @@ function proxyPolicy(proxySettings, options) {
19987
19984
  }
19988
19985
  __name(proxyPolicy, "proxyPolicy");
19989
19986
 
19990
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/agentPolicy.js
19987
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/agentPolicy.js
19991
19988
  var agentPolicyName = "agentPolicy";
19992
19989
  function agentPolicy(agent) {
19993
19990
  return {
@@ -20002,7 +19999,7 @@ function agentPolicy(agent) {
20002
19999
  }
20003
20000
  __name(agentPolicy, "agentPolicy");
20004
20001
 
20005
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/tlsPolicy.js
20002
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/tlsPolicy.js
20006
20003
  var tlsPolicyName = "tlsPolicy";
20007
20004
  function tlsPolicy(tlsSettings) {
20008
20005
  return {
@@ -20017,13 +20014,13 @@ function tlsPolicy(tlsSettings) {
20017
20014
  }
20018
20015
  __name(tlsPolicy, "tlsPolicy");
20019
20016
 
20020
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/typeGuards.js
20017
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/typeGuards.js
20021
20018
  function isBlob(x) {
20022
20019
  return typeof x.stream === "function";
20023
20020
  }
20024
20021
  __name(isBlob, "isBlob");
20025
20022
 
20026
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/concat.js
20023
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/util/concat.js
20027
20024
  import { Readable } from "stream";
20028
20025
  async function* streamAsyncIterator() {
20029
20026
  const reader = this.getReader();
@@ -20082,7 +20079,7 @@ async function concat(sources) {
20082
20079
  }
20083
20080
  __name(concat, "concat");
20084
20081
 
20085
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/multipartPolicy.js
20082
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.2-ea8503c5da/package/dist/esm/policies/multipartPolicy.js
20086
20083
  function generateBoundary() {
20087
20084
  return `----AzSDKFormBoundary${randomUUID()}`;
20088
20085
  }
@@ -20186,7 +20183,7 @@ function multipartPolicy() {
20186
20183
  }
20187
20184
  __name(multipartPolicy, "multipartPolicy");
20188
20185
 
20189
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/pipeline.js
20186
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/pipeline.js
20190
20187
  function createEmptyPipeline2() {
20191
20188
  return createEmptyPipeline();
20192
20189
  }
@@ -20203,10 +20200,10 @@ function createClientLogger2(namespace) {
20203
20200
  }
20204
20201
  __name(createClientLogger2, "createClientLogger");
20205
20202
 
20206
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/log.js
20203
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/log.js
20207
20204
  var logger2 = createClientLogger2("core-rest-pipeline");
20208
20205
 
20209
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/logPolicy.js
20206
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/logPolicy.js
20210
20207
  function logPolicy2(options = {}) {
20211
20208
  return logPolicy({
20212
20209
  logger: logger2.info,
@@ -20215,14 +20212,14 @@ function logPolicy2(options = {}) {
20215
20212
  }
20216
20213
  __name(logPolicy2, "logPolicy");
20217
20214
 
20218
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/redirectPolicy.js
20215
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/redirectPolicy.js
20219
20216
  var redirectPolicyName2 = redirectPolicyName;
20220
20217
  function redirectPolicy2(options = {}) {
20221
20218
  return redirectPolicy(options);
20222
20219
  }
20223
20220
  __name(redirectPolicy2, "redirectPolicy");
20224
20221
 
20225
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/userAgentPlatform.js
20222
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/util/userAgentPlatform.js
20226
20223
  import os from "node:os";
20227
20224
  import process4 from "node:process";
20228
20225
  function getHeaderName2() {
@@ -20231,23 +20228,23 @@ function getHeaderName2() {
20231
20228
  __name(getHeaderName2, "getHeaderName");
20232
20229
  async function setPlatformSpecificData2(map) {
20233
20230
  if (process4 && process4.versions) {
20231
+ const osInfo = `${os.type()} ${os.release()}; ${os.arch()}`;
20234
20232
  const versions = process4.versions;
20235
20233
  if (versions.bun) {
20236
- map.set("Bun", versions.bun);
20234
+ map.set("Bun", `${versions.bun} (${osInfo})`);
20237
20235
  } else if (versions.deno) {
20238
- map.set("Deno", versions.deno);
20236
+ map.set("Deno", `${versions.deno} (${osInfo})`);
20239
20237
  } else if (versions.node) {
20240
- map.set("Node", versions.node);
20238
+ map.set("Node", `${versions.node} (${osInfo})`);
20241
20239
  }
20242
20240
  }
20243
- map.set("OS", `(${os.arch()}-${os.type()}-${os.release()})`);
20244
20241
  }
20245
20242
  __name(setPlatformSpecificData2, "setPlatformSpecificData");
20246
20243
 
20247
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/constants.js
20248
- var SDK_VERSION2 = "1.22.1";
20244
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/constants.js
20245
+ var SDK_VERSION2 = "1.22.2";
20249
20246
 
20250
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/userAgent.js
20247
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/util/userAgent.js
20251
20248
  function getUserAgentString(telemetryInfo) {
20252
20249
  const parts = [];
20253
20250
  for (const [key, value] of telemetryInfo) {
@@ -20271,7 +20268,7 @@ async function getUserAgentValue2(prefix) {
20271
20268
  }
20272
20269
  __name(getUserAgentValue2, "getUserAgentValue");
20273
20270
 
20274
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/userAgentPolicy.js
20271
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/userAgentPolicy.js
20275
20272
  var UserAgentHeaderName2 = getUserAgentHeaderName2();
20276
20273
  var userAgentPolicyName2 = "userAgentPolicy";
20277
20274
  function userAgentPolicy2(options = {}) {
@@ -20377,7 +20374,7 @@ function isError2(e) {
20377
20374
  __name(isError2, "isError");
20378
20375
  var isNodeLike2 = isNodeLike;
20379
20376
 
20380
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/file.js
20377
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/util/file.js
20381
20378
  var rawContent = Symbol("rawContent");
20382
20379
  function hasRawContent(x) {
20383
20380
  return typeof x[rawContent] === "function";
@@ -20392,7 +20389,7 @@ function getRawContent(blob) {
20392
20389
  }
20393
20390
  __name(getRawContent, "getRawContent");
20394
20391
 
20395
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/multipartPolicy.js
20392
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/multipartPolicy.js
20396
20393
  var multipartPolicyName2 = multipartPolicyName;
20397
20394
  function multipartPolicy2() {
20398
20395
  const tspPolicy = multipartPolicy();
@@ -20412,31 +20409,31 @@ function multipartPolicy2() {
20412
20409
  }
20413
20410
  __name(multipartPolicy2, "multipartPolicy");
20414
20411
 
20415
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/decompressResponsePolicy.js
20412
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/decompressResponsePolicy.js
20416
20413
  function decompressResponsePolicy2() {
20417
20414
  return decompressResponsePolicy();
20418
20415
  }
20419
20416
  __name(decompressResponsePolicy2, "decompressResponsePolicy");
20420
20417
 
20421
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/defaultRetryPolicy.js
20418
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/defaultRetryPolicy.js
20422
20419
  function defaultRetryPolicy2(options = {}) {
20423
20420
  return defaultRetryPolicy(options);
20424
20421
  }
20425
20422
  __name(defaultRetryPolicy2, "defaultRetryPolicy");
20426
20423
 
20427
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/formDataPolicy.js
20424
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/formDataPolicy.js
20428
20425
  function formDataPolicy2() {
20429
20426
  return formDataPolicy();
20430
20427
  }
20431
20428
  __name(formDataPolicy2, "formDataPolicy");
20432
20429
 
20433
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/proxyPolicy.js
20430
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/proxyPolicy.js
20434
20431
  function proxyPolicy2(proxySettings, options) {
20435
20432
  return proxyPolicy(proxySettings, options);
20436
20433
  }
20437
20434
  __name(proxyPolicy2, "proxyPolicy");
20438
20435
 
20439
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/setClientRequestIdPolicy.js
20436
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/setClientRequestIdPolicy.js
20440
20437
  var setClientRequestIdPolicyName = "setClientRequestIdPolicy";
20441
20438
  function setClientRequestIdPolicy(requestIdHeaderName = "x-ms-client-request-id") {
20442
20439
  return {
@@ -20451,13 +20448,13 @@ function setClientRequestIdPolicy(requestIdHeaderName = "x-ms-client-request-id"
20451
20448
  }
20452
20449
  __name(setClientRequestIdPolicy, "setClientRequestIdPolicy");
20453
20450
 
20454
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/agentPolicy.js
20451
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/agentPolicy.js
20455
20452
  function agentPolicy2(agent) {
20456
20453
  return agentPolicy(agent);
20457
20454
  }
20458
20455
  __name(agentPolicy2, "agentPolicy");
20459
20456
 
20460
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/tlsPolicy.js
20457
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/tlsPolicy.js
20461
20458
  function tlsPolicy2(tlsSettings) {
20462
20459
  return tlsPolicy(tlsSettings);
20463
20460
  }
@@ -20554,12 +20551,12 @@ __name(getInstrumenter, "getInstrumenter");
20554
20551
  function createTracingClient(options) {
20555
20552
  const { namespace, packageName, packageVersion: packageVersion2 } = options;
20556
20553
  function startSpan(name, operationOptions, spanOptions) {
20557
- var _a4;
20554
+ var _a3;
20558
20555
  const startSpanResult = getInstrumenter().startSpan(name, {
20559
20556
  ...spanOptions,
20560
20557
  packageName,
20561
20558
  packageVersion: packageVersion2,
20562
- tracingContext: (_a4 = operationOptions == null ? void 0 : operationOptions.tracingOptions) == null ? void 0 : _a4.tracingContext
20559
+ tracingContext: (_a3 = operationOptions == null ? void 0 : operationOptions.tracingOptions) == null ? void 0 : _a3.tracingContext
20563
20560
  });
20564
20561
  let tracingContext = startSpanResult.tracingContext;
20565
20562
  const span = startSpanResult.span;
@@ -20612,14 +20609,14 @@ function createTracingClient(options) {
20612
20609
  }
20613
20610
  __name(createTracingClient, "createTracingClient");
20614
20611
 
20615
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/restError.js
20612
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/restError.js
20616
20613
  var RestError2 = RestError;
20617
20614
  function isRestError2(e) {
20618
20615
  return isRestError(e);
20619
20616
  }
20620
20617
  __name(isRestError2, "isRestError");
20621
20618
 
20622
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/tracingPolicy.js
20619
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/tracingPolicy.js
20623
20620
  var tracingPolicyName = "tracingPolicy";
20624
20621
  function tracingPolicy(options = {}) {
20625
20622
  const userAgentPromise = getUserAgentValue2(options.userAgentPrefix);
@@ -20727,7 +20724,7 @@ function tryProcessResponse(span, response) {
20727
20724
  }
20728
20725
  __name(tryProcessResponse, "tryProcessResponse");
20729
20726
 
20730
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/wrapAbortSignal.js
20727
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/util/wrapAbortSignal.js
20731
20728
  function wrapAbortSignalLike(abortSignalLike) {
20732
20729
  if (abortSignalLike instanceof AbortSignal) {
20733
20730
  return { abortSignal: abortSignalLike };
@@ -20754,7 +20751,7 @@ function wrapAbortSignalLike(abortSignalLike) {
20754
20751
  }
20755
20752
  __name(wrapAbortSignalLike, "wrapAbortSignalLike");
20756
20753
 
20757
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/wrapAbortSignalLikePolicy.js
20754
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/wrapAbortSignalLikePolicy.js
20758
20755
  var wrapAbortSignalLikePolicyName = "wrapAbortSignalLikePolicy";
20759
20756
  function wrapAbortSignalLikePolicy() {
20760
20757
  return {
@@ -20775,9 +20772,9 @@ function wrapAbortSignalLikePolicy() {
20775
20772
  }
20776
20773
  __name(wrapAbortSignalLikePolicy, "wrapAbortSignalLikePolicy");
20777
20774
 
20778
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/createPipelineFromOptions.js
20775
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/createPipelineFromOptions.js
20779
20776
  function createPipelineFromOptions2(options) {
20780
- var _a4;
20777
+ var _a3;
20781
20778
  const pipeline = createEmptyPipeline2();
20782
20779
  if (isNodeLike2) {
20783
20780
  if (options.agent) {
@@ -20792,7 +20789,7 @@ function createPipelineFromOptions2(options) {
20792
20789
  pipeline.addPolicy(wrapAbortSignalLikePolicy());
20793
20790
  pipeline.addPolicy(formDataPolicy2(), { beforePolicies: [multipartPolicyName2] });
20794
20791
  pipeline.addPolicy(userAgentPolicy2(options.userAgentOptions));
20795
- pipeline.addPolicy(setClientRequestIdPolicy((_a4 = options.telemetryOptions) == null ? void 0 : _a4.clientRequestIdHeaderName));
20792
+ pipeline.addPolicy(setClientRequestIdPolicy((_a3 = options.telemetryOptions) == null ? void 0 : _a3.clientRequestIdHeaderName));
20796
20793
  pipeline.addPolicy(multipartPolicy2(), { afterPhase: "Deserialize" });
20797
20794
  pipeline.addPolicy(defaultRetryPolicy2(options.retryOptions), { phase: "Retry" });
20798
20795
  pipeline.addPolicy(tracingPolicy({ ...options.userAgentOptions, ...options.loggingOptions }), {
@@ -20806,7 +20803,7 @@ function createPipelineFromOptions2(options) {
20806
20803
  }
20807
20804
  __name(createPipelineFromOptions2, "createPipelineFromOptions");
20808
20805
 
20809
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/defaultHttpClient.js
20806
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/defaultHttpClient.js
20810
20807
  function createDefaultHttpClient2() {
20811
20808
  const client = createDefaultHttpClient();
20812
20809
  return {
@@ -20823,16 +20820,16 @@ function createDefaultHttpClient2() {
20823
20820
  }
20824
20821
  __name(createDefaultHttpClient2, "createDefaultHttpClient");
20825
20822
 
20826
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/pipelineRequest.js
20823
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/pipelineRequest.js
20827
20824
  function createPipelineRequest2(options) {
20828
20825
  return createPipelineRequest(options);
20829
20826
  }
20830
20827
  __name(createPipelineRequest2, "createPipelineRequest");
20831
20828
 
20832
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/retryPolicy.js
20829
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/retryPolicy.js
20833
20830
  var retryPolicyLogger2 = createClientLogger2("core-rest-pipeline retryPolicy");
20834
20831
 
20835
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/tokenCycler.js
20832
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/util/tokenCycler.js
20836
20833
  var DEFAULT_CYCLER_OPTIONS = {
20837
20834
  forcedRefreshWindowInMs: 1e3,
20838
20835
  // Force waiting for a refresh 1s before the token expires
@@ -20943,7 +20940,7 @@ function createTokenCycler(credential, tokenCyclerOptions) {
20943
20940
  }
20944
20941
  __name(createTokenCycler, "createTokenCycler");
20945
20942
 
20946
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/bearerTokenAuthenticationPolicy.js
20943
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.2-0f1afee05f/package/dist/esm/policies/bearerTokenAuthenticationPolicy.js
20947
20944
  var bearerTokenAuthenticationPolicyName = "bearerTokenAuthenticationPolicy";
20948
20945
  async function trySendRequest(request, next) {
20949
20946
  try {
@@ -20988,11 +20985,11 @@ async function authorizeRequestOnCaeChallenge(onChallengeOptions, caeClaims) {
20988
20985
  }
20989
20986
  __name(authorizeRequestOnCaeChallenge, "authorizeRequestOnCaeChallenge");
20990
20987
  function bearerTokenAuthenticationPolicy(options) {
20991
- var _a4, _b2;
20988
+ var _a3, _b2;
20992
20989
  const { credential, scopes, challengeCallbacks } = options;
20993
20990
  const logger4 = options.logger || logger2;
20994
20991
  const callbacks = {
20995
- authorizeRequest: ((_a4 = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequest) == null ? void 0 : _a4.bind(challengeCallbacks)) ?? defaultAuthorizeRequest,
20992
+ authorizeRequest: ((_a3 = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequest) == null ? void 0 : _a3.bind(challengeCallbacks)) ?? defaultAuthorizeRequest,
20996
20993
  authorizeRequestOnChallenge: (_b2 = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequestOnChallenge) == null ? void 0 : _b2.bind(challengeCallbacks)
20997
20994
  };
20998
20995
  const getAccessToken = credential ? createTokenCycler(
@@ -21111,12 +21108,12 @@ function parseChallenges(challenges) {
21111
21108
  }
21112
21109
  __name(parseChallenges, "parseChallenges");
21113
21110
  function getCaeChallengeClaims(challenges) {
21114
- var _a4;
21111
+ var _a3;
21115
21112
  if (!challenges) {
21116
21113
  return;
21117
21114
  }
21118
21115
  const parsedChallenges = parseChallenges(challenges);
21119
- return (_a4 = parsedChallenges.find((x) => x.scheme === "Bearer" && x.params.claims && x.params.error === "insufficient_claims")) == null ? void 0 : _a4.params.claims;
21116
+ return (_a3 = parsedChallenges.find((x) => x.scheme === "Bearer" && x.params.claims && x.params.error === "insufficient_claims")) == null ? void 0 : _a3.params.claims;
21120
21117
  }
21121
21118
  __name(getCaeChallengeClaims, "getCaeChallengeClaims");
21122
21119
 
@@ -21212,7 +21209,7 @@ function handleNullableResponseAndWrappableBody(responseObject) {
21212
21209
  }
21213
21210
  __name(handleNullableResponseAndWrappableBody, "handleNullableResponseAndWrappableBody");
21214
21211
  function flattenResponse(fullResponse, responseSpec) {
21215
- var _a4;
21212
+ var _a3;
21216
21213
  const parsedHeaders = fullResponse.parsedHeaders;
21217
21214
  if (fullResponse.request.method === "HEAD") {
21218
21215
  return {
@@ -21236,7 +21233,7 @@ function flattenResponse(fullResponse, responseSpec) {
21236
21233
  const arrayResponse = fullResponse.parsedBody ?? [];
21237
21234
  for (const key of Object.keys(modelProperties)) {
21238
21235
  if (modelProperties[key].serializedName) {
21239
- arrayResponse[key] = (_a4 = fullResponse.parsedBody) == null ? void 0 : _a4[key];
21236
+ arrayResponse[key] = (_a3 = fullResponse.parsedBody) == null ? void 0 : _a3[key];
21240
21237
  }
21241
21238
  }
21242
21239
  if (parsedHeaders) {
@@ -22113,8 +22110,8 @@ var defaultJsonContentTypes = ["application/json", "text/json"];
22113
22110
  var defaultXmlContentTypes = ["application/xml", "application/atom+xml"];
22114
22111
  var deserializationPolicyName = "deserializationPolicy";
22115
22112
  function deserializationPolicy(options = {}) {
22116
- var _a4, _b2;
22117
- const jsonContentTypes = ((_a4 = options.expectedContentTypes) == null ? void 0 : _a4.json) ?? defaultJsonContentTypes;
22113
+ var _a3, _b2;
22114
+ const jsonContentTypes = ((_a3 = options.expectedContentTypes) == null ? void 0 : _a3.json) ?? defaultJsonContentTypes;
22118
22115
  const xmlContentTypes = ((_b2 = options.expectedContentTypes) == null ? void 0 : _b2.xml) ?? defaultXmlContentTypes;
22119
22116
  const parseXML = options.parseXML;
22120
22117
  const serializerOptions = options.serializerOptions;
@@ -22213,7 +22210,7 @@ function isOperationSpecEmpty(operationSpec) {
22213
22210
  }
22214
22211
  __name(isOperationSpecEmpty, "isOperationSpecEmpty");
22215
22212
  function handleErrorResponse(parsedResponse, operationSpec, responseSpec, options) {
22216
- var _a4, _b2, _c2, _d, _e;
22213
+ var _a3, _b2, _c2, _d, _e;
22217
22214
  const isSuccessByStatus = 200 <= parsedResponse.status && parsedResponse.status < 300;
22218
22215
  const isExpectedStatusCode = isOperationSpecEmpty(operationSpec) ? isSuccessByStatus : !!responseSpec;
22219
22216
  if (isExpectedStatusCode) {
@@ -22226,7 +22223,7 @@ function handleErrorResponse(parsedResponse, operationSpec, responseSpec, option
22226
22223
  }
22227
22224
  }
22228
22225
  const errorResponseSpec = responseSpec ?? operationSpec.responses.default;
22229
- const initialErrorMessage = ((_a4 = parsedResponse.request.streamResponseStatusCodes) == null ? void 0 : _a4.has(parsedResponse.status)) ? `Unexpected status code: ${parsedResponse.status}` : parsedResponse.bodyAsText;
22226
+ const initialErrorMessage = ((_a3 = parsedResponse.request.streamResponseStatusCodes) == null ? void 0 : _a3.has(parsedResponse.status)) ? `Unexpected status code: ${parsedResponse.status}` : parsedResponse.bodyAsText;
22230
22227
  const error = new RestError2(initialErrorMessage, {
22231
22228
  statusCode: parsedResponse.status,
22232
22229
  request: parsedResponse.request,
@@ -22271,8 +22268,8 @@ function handleErrorResponse(parsedResponse, operationSpec, responseSpec, option
22271
22268
  }
22272
22269
  __name(handleErrorResponse, "handleErrorResponse");
22273
22270
  async function parse(jsonContentTypes, xmlContentTypes, operationResponse, opts, parseXML) {
22274
- var _a4;
22275
- if (!((_a4 = operationResponse.request.streamResponseStatusCodes) == null ? void 0 : _a4.has(operationResponse.status)) && operationResponse.bodyAsText) {
22271
+ var _a3;
22272
+ if (!((_a3 = operationResponse.request.streamResponseStatusCodes) == null ? void 0 : _a3.has(operationResponse.status)) && operationResponse.bodyAsText) {
22276
22273
  const text = operationResponse.bodyAsText;
22277
22274
  const contentType2 = operationResponse.headers.get("Content-Type") || "";
22278
22275
  const contentComponents = !contentType2 ? [] : contentType2.split(";").map((component) => component.toLowerCase());
@@ -22350,7 +22347,7 @@ function serializationPolicy(options = {}) {
22350
22347
  }
22351
22348
  __name(serializationPolicy, "serializationPolicy");
22352
22349
  function serializeHeaders(request, operationArguments, operationSpec) {
22353
- var _a4, _b2;
22350
+ var _a3, _b2;
22354
22351
  if (operationSpec.headerParameters) {
22355
22352
  for (const headerParameter of operationSpec.headerParameters) {
22356
22353
  let headerValue = getOperationArgumentValueFromParameter(operationArguments, headerParameter);
@@ -22367,7 +22364,7 @@ function serializeHeaders(request, operationArguments, operationSpec) {
22367
22364
  }
22368
22365
  }
22369
22366
  }
22370
- const customHeaders = (_b2 = (_a4 = operationArguments.options) == null ? void 0 : _a4.requestOptions) == null ? void 0 : _b2.customHeaders;
22367
+ const customHeaders = (_b2 = (_a3 = operationArguments.options) == null ? void 0 : _a3.requestOptions) == null ? void 0 : _b2.customHeaders;
22371
22368
  if (customHeaders) {
22372
22369
  for (const customHeaderName of Object.keys(customHeaders)) {
22373
22370
  request.headers.set(customHeaderName, customHeaders[customHeaderName]);
@@ -22378,8 +22375,8 @@ __name(serializeHeaders, "serializeHeaders");
22378
22375
  function serializeRequestBody(request, operationArguments, operationSpec, stringifyXML = function() {
22379
22376
  throw new Error("XML serialization unsupported!");
22380
22377
  }) {
22381
- var _a4, _b2;
22382
- const serializerOptions = (_a4 = operationArguments.options) == null ? void 0 : _a4.serializerOptions;
22378
+ var _a3, _b2;
22379
+ const serializerOptions = (_a3 = operationArguments.options) == null ? void 0 : _a3.serializerOptions;
22383
22380
  const updatedOptions = {
22384
22381
  xml: {
22385
22382
  rootName: (serializerOptions == null ? void 0 : serializerOptions.xml.rootName) ?? "",
@@ -22518,9 +22515,9 @@ function replaceAll(input, replacements) {
22518
22515
  }
22519
22516
  __name(replaceAll, "replaceAll");
22520
22517
  function calculateUrlReplacements(operationSpec, operationArguments, fallbackObject) {
22521
- var _a4;
22518
+ var _a3;
22522
22519
  const result = /* @__PURE__ */ new Map();
22523
- if ((_a4 = operationSpec.urlParameters) == null ? void 0 : _a4.length) {
22520
+ if ((_a3 = operationSpec.urlParameters) == null ? void 0 : _a3.length) {
22524
22521
  for (const urlParameter of operationSpec.urlParameters) {
22525
22522
  let urlParameterValue = getOperationArgumentValueFromParameter(operationArguments, urlParameter, fallbackObject);
22526
22523
  const parameterPathString = getPathStringFromParameter(urlParameter);
@@ -22566,10 +22563,10 @@ function appendPath(url2, pathToAppend) {
22566
22563
  }
22567
22564
  __name(appendPath, "appendPath");
22568
22565
  function calculateQueryParameters(operationSpec, operationArguments, fallbackObject) {
22569
- var _a4;
22566
+ var _a3;
22570
22567
  const result = /* @__PURE__ */ new Map();
22571
22568
  const sequenceParams = /* @__PURE__ */ new Set();
22572
- if ((_a4 = operationSpec.queryParameters) == null ? void 0 : _a4.length) {
22569
+ if ((_a3 = operationSpec.queryParameters) == null ? void 0 : _a3.length) {
22573
22570
  for (const queryParameter of operationSpec.queryParameters) {
22574
22571
  if (queryParameter.mapper.type.name === "Sequence" && queryParameter.mapper.serializedName) {
22575
22572
  sequenceParams.add(queryParameter.mapper.serializedName);
@@ -22714,7 +22711,7 @@ var _ServiceClient = class _ServiceClient {
22714
22711
  * @param options - The service client options that govern the behavior of the client.
22715
22712
  */
22716
22713
  constructor(options = {}) {
22717
- var _a4;
22714
+ var _a3;
22718
22715
  this._requestContentType = options.requestContentType;
22719
22716
  this._endpoint = options.endpoint ?? options.baseUri;
22720
22717
  if (options.baseUri) {
@@ -22723,7 +22720,7 @@ var _ServiceClient = class _ServiceClient {
22723
22720
  this._allowInsecureConnection = options.allowInsecureConnection;
22724
22721
  this._httpClient = options.httpClient || getCachedDefaultHttpClient();
22725
22722
  this.pipeline = options.pipeline || createDefaultPipeline2(options);
22726
- if ((_a4 = options.additionalPolicies) == null ? void 0 : _a4.length) {
22723
+ if ((_a3 = options.additionalPolicies) == null ? void 0 : _a3.length) {
22727
22724
  for (const { policy, position } of options.additionalPolicies) {
22728
22725
  const afterPhase = position === "perRetry" ? "Sign" : void 0;
22729
22726
  this.pipeline.addPolicy(policy, {
@@ -23759,7 +23756,7 @@ var _ApplicationInsightsClient = class _ApplicationInsightsClient extends Servic
23759
23756
  * @param options The parameter options
23760
23757
  */
23761
23758
  constructor(options) {
23762
- var _a4, _b2;
23759
+ var _a3, _b2;
23763
23760
  if (!options) {
23764
23761
  options = {};
23765
23762
  }
@@ -23770,7 +23767,7 @@ var _ApplicationInsightsClient = class _ApplicationInsightsClient extends Servic
23770
23767
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
23771
23768
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
23772
23769
  userAgentPrefix
23773
- }, endpoint: (_b2 = (_a4 = options.endpoint) !== null && _a4 !== void 0 ? _a4 : options.baseUri) !== null && _b2 !== void 0 ? _b2 : "{Host}/v2.1" });
23770
+ }, endpoint: (_b2 = (_a3 = options.endpoint) !== null && _a3 !== void 0 ? _a3 : options.baseUri) !== null && _b2 !== void 0 ? _b2 : "{Host}/v2.1" });
23774
23771
  super(optionsWithDefaults);
23775
23772
  this.host = options.host || "https://dc.services.visualstudio.com";
23776
23773
  }
@@ -24218,7 +24215,7 @@ var _NetworkStatsbeatMetrics = class _NetworkStatsbeatMetrics extends StatsbeatM
24218
24215
  return this.networkStatsbeatMeterProvider.shutdown();
24219
24216
  }
24220
24217
  async initialize() {
24221
- var _a4, _b2;
24218
+ var _a3, _b2;
24222
24219
  try {
24223
24220
  await super.getResourceProvider();
24224
24221
  this.successCountGauge.addCallback(this.successCallback.bind(this));
@@ -24235,7 +24232,7 @@ var _NetworkStatsbeatMetrics = class _NetworkStatsbeatMetrics extends StatsbeatM
24235
24232
  this.exceptionCountGauge
24236
24233
  ]);
24237
24234
  if (!this.disableNonEssentialStatsbeat) {
24238
- (_a4 = this.readFailureGauge) === null || _a4 === void 0 ? void 0 : _a4.addCallback(this.readFailureCallback.bind(this));
24235
+ (_a3 = this.readFailureGauge) === null || _a3 === void 0 ? void 0 : _a3.addCallback(this.readFailureCallback.bind(this));
24239
24236
  (_b2 = this.writeFailureGauge) === null || _b2 === void 0 ? void 0 : _b2.addCallback(this.writeFailureCallback.bind(this));
24240
24237
  }
24241
24238
  this.averageDurationGauge.addCallback(this.durationCallback.bind(this));
@@ -24581,7 +24578,7 @@ var _BaseSender = class _BaseSender {
24581
24578
  * Export envelopes
24582
24579
  */
24583
24580
  async exportEnvelopes(envelopes) {
24584
- var _a4, _b2, _c2, _d, _e, _f, _g, _h, _j;
24581
+ var _a3, _b2, _c2, _d, _e, _f, _g, _h, _j;
24585
24582
  diag2.info(`Exporting ${envelopes.length} envelope(s)`);
24586
24583
  if (envelopes.length < 1) {
24587
24584
  return { code: import_core3.ExportResultCode.SUCCESS };
@@ -24600,7 +24597,7 @@ var _BaseSender = class _BaseSender {
24600
24597
  }, this.batchSendRetryIntervalMs);
24601
24598
  this.retryTimer.unref();
24602
24599
  }
24603
- (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.countSuccess(duration);
24600
+ (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.countSuccess(duration);
24604
24601
  return { code: import_core3.ExportResultCode.SUCCESS };
24605
24602
  } else if (statusCode && isRetriable(statusCode)) {
24606
24603
  if (statusCode === 429 || statusCode === 439) {
@@ -24689,7 +24686,7 @@ var _BaseSender = class _BaseSender {
24689
24686
  * Persist envelopes to disk
24690
24687
  */
24691
24688
  async persist(envelopes) {
24692
- var _a4;
24689
+ var _a3;
24693
24690
  try {
24694
24691
  const success = await this.persister.push(envelopes);
24695
24692
  return success ? { code: import_core3.ExportResultCode.SUCCESS } : {
@@ -24697,7 +24694,7 @@ var _BaseSender = class _BaseSender {
24697
24694
  error: new Error("Failed to persist envelope in disk.")
24698
24695
  };
24699
24696
  } catch (ex) {
24700
- (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.countWriteFailure();
24697
+ (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.countWriteFailure();
24701
24698
  return { code: import_core3.ExportResultCode.FAILED, error: ex };
24702
24699
  }
24703
24700
  }
@@ -24714,21 +24711,21 @@ var _BaseSender = class _BaseSender {
24714
24711
  * Shutdown statsbeat metrics
24715
24712
  */
24716
24713
  shutdownStatsbeat() {
24717
- var _a4, _b2;
24718
- (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.shutdown();
24714
+ var _a3, _b2;
24715
+ (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.shutdown();
24719
24716
  (_b2 = this.longIntervalStatsbeatMetrics) === null || _b2 === void 0 ? void 0 : _b2.shutdown();
24720
24717
  this.networkStatsbeatMetrics = void 0;
24721
24718
  this.statsbeatFailureCount = 0;
24722
24719
  }
24723
24720
  async sendFirstPersistedFile() {
24724
- var _a4;
24721
+ var _a3;
24725
24722
  try {
24726
24723
  const envelopes = await this.persister.shift();
24727
24724
  if (envelopes) {
24728
24725
  await this.send(envelopes);
24729
24726
  }
24730
24727
  } catch (err) {
24731
- (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.countReadFailure();
24728
+ (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.countReadFailure();
24732
24729
  diag2.warn(`Failed to fetch persisted file`, err);
24733
24730
  }
24734
24731
  }
@@ -24764,7 +24761,7 @@ var _HttpSender = class _HttpSender extends BaseSender {
24764
24761
  * @internal
24765
24762
  */
24766
24763
  async send(envelopes) {
24767
- var _a4;
24764
+ var _a3;
24768
24765
  const options = {};
24769
24766
  let response;
24770
24767
  function onResponse(rawResponse, flatResponse) {
@@ -24775,7 +24772,7 @@ var _HttpSender = class _HttpSender extends BaseSender {
24775
24772
  }
24776
24773
  __name(onResponse, "onResponse");
24777
24774
  await this.appInsightsClient.track(envelopes, Object.assign(Object.assign({}, options), { onResponse }));
24778
- return { statusCode: response === null || response === void 0 ? void 0 : response.status, result: (_a4 = response === null || response === void 0 ? void 0 : response.bodyAsText) !== null && _a4 !== void 0 ? _a4 : "" };
24775
+ return { statusCode: response === null || response === void 0 ? void 0 : response.status, result: (_a3 = response === null || response === void 0 ? void 0 : response.bodyAsText) !== null && _a3 !== void 0 ? _a3 : "" };
24779
24776
  }
24780
24777
  /**
24781
24778
  * Shutdown sender
@@ -25036,8 +25033,8 @@ function serializeAttribute(value) {
25036
25033
  }
25037
25034
  __name(serializeAttribute, "serializeAttribute");
25038
25035
  function shouldCreateResourceMetric() {
25039
- var _a4;
25040
- return !(((_a4 = process.env[ENV_OPENTELEMETRY_RESOURCE_METRIC_DISABLED]) === null || _a4 === void 0 ? void 0 : _a4.toLowerCase()) === "true");
25036
+ var _a3;
25037
+ return !(((_a3 = process.env[ENV_OPENTELEMETRY_RESOURCE_METRIC_DISABLED]) === null || _a3 === void 0 ? void 0 : _a3.toLowerCase()) === "true");
25041
25038
  }
25042
25039
  __name(shouldCreateResourceMetric, "shouldCreateResourceMetric");
25043
25040
 
@@ -25116,7 +25113,7 @@ function createTagsFromSpan(span) {
25116
25113
  try {
25117
25114
  const url2 = new URL(String(httpUrl));
25118
25115
  tags[KnownContextTagKeys.AiOperationName] = String(`${httpMethod} ${url2.pathname}`).substring(0, MaxPropertyLengths.TEN_BIT);
25119
- } catch (_a4) {
25116
+ } catch (_a3) {
25120
25117
  }
25121
25118
  }
25122
25119
  if (httpClientIp) {
@@ -25164,12 +25161,12 @@ function createPropertiesFromSpan(span) {
25164
25161
  }
25165
25162
  __name(createPropertiesFromSpan, "createPropertiesFromSpan");
25166
25163
  function createDependencyData(span) {
25167
- var _a4;
25164
+ var _a3;
25168
25165
  const remoteDependencyData = {
25169
25166
  name: span.name,
25170
25167
  // Default
25171
25168
  id: `${span.spanContext().spanId}`,
25172
- success: ((_a4 = span.status) === null || _a4 === void 0 ? void 0 : _a4.code) !== SpanStatusCode.ERROR,
25169
+ success: ((_a3 = span.status) === null || _a3 === void 0 ? void 0 : _a3.code) !== SpanStatusCode.ERROR,
25173
25170
  resultCode: "0",
25174
25171
  type: "Dependency",
25175
25172
  duration: msToTimeSpan((0, import_core7.hrTimeToMilliseconds)(span.duration)),
@@ -25369,7 +25366,7 @@ function spanEventsToEnvelopes(span, ikey) {
25369
25366
  const envelopes = [];
25370
25367
  if (span.events) {
25371
25368
  span.events.forEach((event) => {
25372
- var _a4;
25369
+ var _a3;
25373
25370
  let baseType;
25374
25371
  const time = hrTimeToDate(event.time);
25375
25372
  let name = "";
@@ -25377,7 +25374,7 @@ function spanEventsToEnvelopes(span, ikey) {
25377
25374
  const properties = createPropertiesFromSpanAttributes(event.attributes);
25378
25375
  const tags = createTagsFromResource(span.resource);
25379
25376
  tags[KnownContextTagKeys.AiOperationId] = span.spanContext().traceId;
25380
- const spanId = (_a4 = span.spanContext()) === null || _a4 === void 0 ? void 0 : _a4.spanId;
25377
+ const spanId = (_a3 = span.spanContext()) === null || _a3 === void 0 ? void 0 : _a3.spanId;
25381
25378
  if (spanId) {
25382
25379
  tags[KnownContextTagKeys.AiOperationParentId] = spanId;
25383
25380
  }