@malloy-publisher/server 0.0.56 → 0.0.57

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.
@@ -54187,16 +54187,16 @@ var require_bedrock_runtime = __commonJS((exports) => {
54187
54187
  var semconv_1 = require_semconv2();
54188
54188
 
54189
54189
  class BedrockRuntimeServiceExtension {
54190
- requestPreSpanHook(request, config, diag4) {
54190
+ requestPreSpanHook(request, config, diag5) {
54191
54191
  switch (request.commandName) {
54192
54192
  case "Converse":
54193
- return this.requestPreSpanHookConverse(request, config, diag4);
54193
+ return this.requestPreSpanHookConverse(request, config, diag5);
54194
54194
  }
54195
54195
  return {
54196
54196
  isIncoming: false
54197
54197
  };
54198
54198
  }
54199
- requestPreSpanHookConverse(request, config, diag4) {
54199
+ requestPreSpanHookConverse(request, config, diag5) {
54200
54200
  let spanName = semconv_1.GEN_AI_OPERATION_NAME_VALUE_CHAT;
54201
54201
  const spanAttributes = {
54202
54202
  [semconv_1.ATTR_GEN_AI_SYSTEM]: semconv_1.GEN_AI_SYSTEM_VALUE_AWS_BEDROCK,
@@ -54270,7 +54270,7 @@ var require_dynamodb = __commonJS((exports) => {
54270
54270
  toArray(values) {
54271
54271
  return Array.isArray(values) ? values : [values];
54272
54272
  }
54273
- requestPreSpanHook(normalizedRequest, config, diag4) {
54273
+ requestPreSpanHook(normalizedRequest, config, diag5) {
54274
54274
  const spanKind = api_1.SpanKind.CLIENT;
54275
54275
  let spanName;
54276
54276
  const isIncoming = false;
@@ -54287,7 +54287,7 @@ var require_dynamodb = __commonJS((exports) => {
54287
54287
  spanAttributes[semantic_conventions_1.SEMATTRS_DB_STATEMENT] = sanitizedStatement;
54288
54288
  }
54289
54289
  } catch (err) {
54290
- diag4.error("failed to sanitize DynamoDB statement", err);
54290
+ diag5.error("failed to sanitize DynamoDB statement", err);
54291
54291
  }
54292
54292
  }
54293
54293
  if (normalizedRequest.commandInput?.TableName) {
@@ -54613,13 +54613,13 @@ var require_ServicesExtensions = __commonJS((exports) => {
54613
54613
  this.services.set("Kinesis", new kinesis_1.KinesisServiceExtension);
54614
54614
  this.services.set("BedrockRuntime", new bedrock_runtime_1.BedrockRuntimeServiceExtension);
54615
54615
  }
54616
- requestPreSpanHook(request, config, diag4) {
54616
+ requestPreSpanHook(request, config, diag5) {
54617
54617
  const serviceExtension = this.services.get(request.serviceName);
54618
54618
  if (!serviceExtension)
54619
54619
  return {
54620
54620
  isIncoming: false
54621
54621
  };
54622
- return serviceExtension.requestPreSpanHook(request, config, diag4);
54622
+ return serviceExtension.requestPreSpanHook(request, config, diag5);
54623
54623
  }
54624
54624
  requestPostSpanHook(request) {
54625
54625
  const serviceExtension = this.services.get(request.serviceName);
@@ -65373,16 +65373,16 @@ var require_utils33 = __commonJS((exports) => {
65373
65373
  Object.defineProperty(exports, "__esModule", { value: true });
65374
65374
  exports.getClientAttributes = undefined;
65375
65375
  var semantic_conventions_1 = require_src2();
65376
- function getClientAttributes(diag4, options) {
65376
+ function getClientAttributes(diag5, options) {
65377
65377
  return {
65378
65378
  [semantic_conventions_1.SEMATTRS_DB_SYSTEM]: semantic_conventions_1.DBSYSTEMVALUES_REDIS,
65379
65379
  [semantic_conventions_1.SEMATTRS_NET_PEER_NAME]: options?.socket?.host,
65380
65380
  [semantic_conventions_1.SEMATTRS_NET_PEER_PORT]: options?.socket?.port,
65381
- [semantic_conventions_1.SEMATTRS_DB_CONNECTION_STRING]: removeCredentialsFromDBConnectionStringAttribute(diag4, options?.url)
65381
+ [semantic_conventions_1.SEMATTRS_DB_CONNECTION_STRING]: removeCredentialsFromDBConnectionStringAttribute(diag5, options?.url)
65382
65382
  };
65383
65383
  }
65384
65384
  exports.getClientAttributes = getClientAttributes;
65385
- function removeCredentialsFromDBConnectionStringAttribute(diag4, url) {
65385
+ function removeCredentialsFromDBConnectionStringAttribute(diag5, url) {
65386
65386
  if (typeof url !== "string" || !url) {
65387
65387
  return;
65388
65388
  }
@@ -65393,7 +65393,7 @@ var require_utils33 = __commonJS((exports) => {
65393
65393
  u.password = "";
65394
65394
  return u.href;
65395
65395
  } catch (err) {
65396
- diag4.error("failed to sanitize redis connection url", err);
65396
+ diag5.error("failed to sanitize redis connection url", err);
65397
65397
  }
65398
65398
  return;
65399
65399
  }
@@ -73971,16 +73971,101 @@ class OTLPTraceExporter extends import_otlp_exporter_base.OTLPExporterBase {
73971
73971
  }), ProtobufTraceSerializer));
73972
73972
  }
73973
73973
  }
73974
- // ../../node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esm/OTLPMetricExporter.js
73975
- var import_exporter_metrics_otlp_http = __toESM(require_src22(), 1);
73974
+ // ../../node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esm/OTLPMetricExporterBase.js
73975
+ var import_core3 = __toESM(require_src3(), 1);
73976
+
73977
+ // ../../node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esm/OTLPMetricExporterOptions.js
73978
+ var AggregationTemporalityPreference;
73979
+ (function(AggregationTemporalityPreference2) {
73980
+ AggregationTemporalityPreference2[AggregationTemporalityPreference2["DELTA"] = 0] = "DELTA";
73981
+ AggregationTemporalityPreference2[AggregationTemporalityPreference2["CUMULATIVE"] = 1] = "CUMULATIVE";
73982
+ AggregationTemporalityPreference2[AggregationTemporalityPreference2["LOWMEMORY"] = 2] = "LOWMEMORY";
73983
+ })(AggregationTemporalityPreference || (AggregationTemporalityPreference = {}));
73984
+
73985
+ // ../../node_modules/@opentelemetry/exporter-metrics-otlp-http/build/esm/OTLPMetricExporterBase.js
73986
+ var import_otlp_exporter_base2 = __toESM(require_src13(), 1);
73987
+ var import_api3 = __toESM(require_src(), 1);
73988
+ var CumulativeTemporalitySelector = () => AggregationTemporality.CUMULATIVE;
73989
+ var DeltaTemporalitySelector = (instrumentType) => {
73990
+ switch (instrumentType) {
73991
+ case InstrumentType.COUNTER:
73992
+ case InstrumentType.OBSERVABLE_COUNTER:
73993
+ case InstrumentType.GAUGE:
73994
+ case InstrumentType.HISTOGRAM:
73995
+ case InstrumentType.OBSERVABLE_GAUGE:
73996
+ return AggregationTemporality.DELTA;
73997
+ case InstrumentType.UP_DOWN_COUNTER:
73998
+ case InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:
73999
+ return AggregationTemporality.CUMULATIVE;
74000
+ }
74001
+ };
74002
+ var LowMemoryTemporalitySelector = (instrumentType) => {
74003
+ switch (instrumentType) {
74004
+ case InstrumentType.COUNTER:
74005
+ case InstrumentType.HISTOGRAM:
74006
+ return AggregationTemporality.DELTA;
74007
+ case InstrumentType.GAUGE:
74008
+ case InstrumentType.UP_DOWN_COUNTER:
74009
+ case InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:
74010
+ case InstrumentType.OBSERVABLE_COUNTER:
74011
+ case InstrumentType.OBSERVABLE_GAUGE:
74012
+ return AggregationTemporality.CUMULATIVE;
74013
+ }
74014
+ };
74015
+ function chooseTemporalitySelectorFromEnvironment() {
74016
+ const configuredTemporality = (import_core3.getStringFromEnv("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE") ?? "cumulative").toLowerCase();
74017
+ if (configuredTemporality === "cumulative") {
74018
+ return CumulativeTemporalitySelector;
74019
+ }
74020
+ if (configuredTemporality === "delta") {
74021
+ return DeltaTemporalitySelector;
74022
+ }
74023
+ if (configuredTemporality === "lowmemory") {
74024
+ return LowMemoryTemporalitySelector;
74025
+ }
74026
+ import_api3.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${configuredTemporality}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`);
74027
+ return CumulativeTemporalitySelector;
74028
+ }
74029
+ function chooseTemporalitySelector(temporalityPreference) {
74030
+ if (temporalityPreference != null) {
74031
+ if (temporalityPreference === AggregationTemporalityPreference.DELTA) {
74032
+ return DeltaTemporalitySelector;
74033
+ } else if (temporalityPreference === AggregationTemporalityPreference.LOWMEMORY) {
74034
+ return LowMemoryTemporalitySelector;
74035
+ }
74036
+ return CumulativeTemporalitySelector;
74037
+ }
74038
+ return chooseTemporalitySelectorFromEnvironment();
74039
+ }
74040
+ var DEFAULT_AGGREGATION = Object.freeze({
74041
+ type: AggregationType.DEFAULT
74042
+ });
74043
+ function chooseAggregationSelector(config) {
74044
+ return config?.aggregationPreference ?? (() => DEFAULT_AGGREGATION);
74045
+ }
73976
74046
 
74047
+ class OTLPMetricExporterBase extends import_otlp_exporter_base2.OTLPExporterBase {
74048
+ _aggregationTemporalitySelector;
74049
+ _aggregationSelector;
74050
+ constructor(delegate, config) {
74051
+ super(delegate);
74052
+ this._aggregationSelector = chooseAggregationSelector(config);
74053
+ this._aggregationTemporalitySelector = chooseTemporalitySelector(config?.temporalityPreference);
74054
+ }
74055
+ selectAggregation(instrumentType) {
74056
+ return this._aggregationSelector(instrumentType);
74057
+ }
74058
+ selectAggregationTemporality(instrumentType) {
74059
+ return this._aggregationTemporalitySelector(instrumentType);
74060
+ }
74061
+ }
73977
74062
  // ../../node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esm/version.js
73978
74063
  var VERSION2 = "0.200.0";
73979
74064
 
73980
74065
  // ../../node_modules/@opentelemetry/exporter-metrics-otlp-proto/build/esm/OTLPMetricExporter.js
73981
74066
  var import_node_http2 = __toESM(require_index_node_http(), 1);
73982
74067
 
73983
- class OTLPMetricExporter extends import_exporter_metrics_otlp_http.OTLPMetricExporterBase {
74068
+ class OTLPMetricExporter extends OTLPMetricExporterBase {
73984
74069
  constructor(config) {
73985
74070
  super(import_node_http2.createOtlpHttpExportDelegate(import_node_http2.convertLegacyHttpOptions(config ?? {}, "METRICS", "v1/metrics", {
73986
74071
  "User-Agent": `OTel-OTLP-Exporter-JavaScript/${VERSION2}`,
@@ -73989,14 +74074,14 @@ class OTLPMetricExporter extends import_exporter_metrics_otlp_http.OTLPMetricExp
73989
74074
  }
73990
74075
  }
73991
74076
  // ../../node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esm/platform/node/OTLPLogExporter.js
73992
- var import_otlp_exporter_base2 = __toESM(require_src13(), 1);
74077
+ var import_otlp_exporter_base3 = __toESM(require_src13(), 1);
73993
74078
  var import_node_http3 = __toESM(require_index_node_http(), 1);
73994
74079
 
73995
74080
  // ../../node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esm/version.js
73996
74081
  var VERSION3 = "0.200.0";
73997
74082
 
73998
74083
  // ../../node_modules/@opentelemetry/exporter-logs-otlp-proto/build/esm/platform/node/OTLPLogExporter.js
73999
- class OTLPLogExporter extends import_otlp_exporter_base2.OTLPExporterBase {
74084
+ class OTLPLogExporter extends import_otlp_exporter_base3.OTLPExporterBase {
74000
74085
  constructor(config = {}) {
74001
74086
  super(import_node_http3.createOtlpHttpExportDelegate(import_node_http3.convertLegacyHttpOptions(config, "LOGS", "v1/logs", {
74002
74087
  "User-Agent": `OTel-OTLP-Exporter-JavaScript/${VERSION3}`,
@@ -74009,8 +74094,8 @@ var import_auto_instrumentations_node = __toESM(require_src83(), 1);
74009
74094
  var import_semantic_conventions = __toESM(require_src2(), 1);
74010
74095
 
74011
74096
  // ../../node_modules/@opentelemetry/sdk-trace-base/build/esm/export/BatchSpanProcessorBase.js
74012
- var import_api3 = __toESM(require_src(), 1);
74013
- var import_core3 = __toESM(require_src3(), 1);
74097
+ var import_api4 = __toESM(require_src(), 1);
74098
+ var import_core4 = __toESM(require_src3(), 1);
74014
74099
 
74015
74100
  class BatchSpanProcessorBase {
74016
74101
  _exporter;
@@ -74025,13 +74110,13 @@ class BatchSpanProcessorBase {
74025
74110
  _droppedSpansCount = 0;
74026
74111
  constructor(_exporter, config) {
74027
74112
  this._exporter = _exporter;
74028
- this._maxExportBatchSize = typeof config?.maxExportBatchSize === "number" ? config.maxExportBatchSize : import_core3.getNumberFromEnv("OTEL_BSP_MAX_EXPORT_BATCH_SIZE") ?? 512;
74029
- this._maxQueueSize = typeof config?.maxQueueSize === "number" ? config.maxQueueSize : import_core3.getNumberFromEnv("OTEL_BSP_MAX_QUEUE_SIZE") ?? 2048;
74030
- this._scheduledDelayMillis = typeof config?.scheduledDelayMillis === "number" ? config.scheduledDelayMillis : import_core3.getNumberFromEnv("OTEL_BSP_SCHEDULE_DELAY") ?? 5000;
74031
- this._exportTimeoutMillis = typeof config?.exportTimeoutMillis === "number" ? config.exportTimeoutMillis : import_core3.getNumberFromEnv("OTEL_BSP_EXPORT_TIMEOUT") ?? 30000;
74032
- this._shutdownOnce = new import_core3.BindOnceFuture(this._shutdown, this);
74113
+ this._maxExportBatchSize = typeof config?.maxExportBatchSize === "number" ? config.maxExportBatchSize : import_core4.getNumberFromEnv("OTEL_BSP_MAX_EXPORT_BATCH_SIZE") ?? 512;
74114
+ this._maxQueueSize = typeof config?.maxQueueSize === "number" ? config.maxQueueSize : import_core4.getNumberFromEnv("OTEL_BSP_MAX_QUEUE_SIZE") ?? 2048;
74115
+ this._scheduledDelayMillis = typeof config?.scheduledDelayMillis === "number" ? config.scheduledDelayMillis : import_core4.getNumberFromEnv("OTEL_BSP_SCHEDULE_DELAY") ?? 5000;
74116
+ this._exportTimeoutMillis = typeof config?.exportTimeoutMillis === "number" ? config.exportTimeoutMillis : import_core4.getNumberFromEnv("OTEL_BSP_EXPORT_TIMEOUT") ?? 30000;
74117
+ this._shutdownOnce = new import_core4.BindOnceFuture(this._shutdown, this);
74033
74118
  if (this._maxExportBatchSize > this._maxQueueSize) {
74034
- import_api3.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize");
74119
+ import_api4.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize");
74035
74120
  this._maxExportBatchSize = this._maxQueueSize;
74036
74121
  }
74037
74122
  }
@@ -74046,7 +74131,7 @@ class BatchSpanProcessorBase {
74046
74131
  if (this._shutdownOnce.isCalled) {
74047
74132
  return;
74048
74133
  }
74049
- if ((span.spanContext().traceFlags & import_api3.TraceFlags.SAMPLED) === 0) {
74134
+ if ((span.spanContext().traceFlags & import_api4.TraceFlags.SAMPLED) === 0) {
74050
74135
  return;
74051
74136
  }
74052
74137
  this._addToBuffer(span);
@@ -74066,13 +74151,13 @@ class BatchSpanProcessorBase {
74066
74151
  _addToBuffer(span) {
74067
74152
  if (this._finishedSpans.length >= this._maxQueueSize) {
74068
74153
  if (this._droppedSpansCount === 0) {
74069
- import_api3.diag.debug("maxQueueSize reached, dropping spans");
74154
+ import_api4.diag.debug("maxQueueSize reached, dropping spans");
74070
74155
  }
74071
74156
  this._droppedSpansCount++;
74072
74157
  return;
74073
74158
  }
74074
74159
  if (this._droppedSpansCount > 0) {
74075
- import_api3.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`);
74160
+ import_api4.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`);
74076
74161
  this._droppedSpansCount = 0;
74077
74162
  }
74078
74163
  this._finishedSpans.push(span);
@@ -74099,7 +74184,7 @@ class BatchSpanProcessorBase {
74099
74184
  const timer = setTimeout(() => {
74100
74185
  reject(new Error("Timeout"));
74101
74186
  }, this._exportTimeoutMillis);
74102
- import_api3.context.with(import_core3.suppressTracing(import_api3.context.active()), () => {
74187
+ import_api4.context.with(import_core4.suppressTracing(import_api4.context.active()), () => {
74103
74188
  let spans;
74104
74189
  if (this._finishedSpans.length <= this._maxExportBatchSize) {
74105
74190
  spans = this._finishedSpans;
@@ -74109,7 +74194,7 @@ class BatchSpanProcessorBase {
74109
74194
  }
74110
74195
  const doExport = () => this._exporter.export(spans, (result) => {
74111
74196
  clearTimeout(timer);
74112
- if (result.code === import_core3.ExportResultCode.SUCCESS) {
74197
+ if (result.code === import_core4.ExportResultCode.SUCCESS) {
74113
74198
  resolve();
74114
74199
  } else {
74115
74200
  reject(result.error ?? new Error("BatchSpanProcessor: span export failed"));
@@ -74127,7 +74212,7 @@ class BatchSpanProcessorBase {
74127
74212
  doExport();
74128
74213
  } else {
74129
74214
  Promise.all(pendingResources).then(doExport, (err) => {
74130
- import_core3.globalErrorHandler(err);
74215
+ import_core4.globalErrorHandler(err);
74131
74216
  reject(err);
74132
74217
  });
74133
74218
  }
@@ -74147,7 +74232,7 @@ class BatchSpanProcessorBase {
74147
74232
  }
74148
74233
  }).catch((e) => {
74149
74234
  this._isExporting = false;
74150
- import_core3.globalErrorHandler(e);
74235
+ import_core4.globalErrorHandler(e);
74151
74236
  });
74152
74237
  };
74153
74238
  if (this._finishedSpans.length >= this._maxExportBatchSize) {
@@ -74156,7 +74241,7 @@ class BatchSpanProcessorBase {
74156
74241
  if (this._timer !== undefined)
74157
74242
  return;
74158
74243
  this._timer = setTimeout(() => flush(), this._scheduledDelayMillis);
74159
- import_core3.unrefTimer(this._timer);
74244
+ import_core4.unrefTimer(this._timer);
74160
74245
  }
74161
74246
  _clearTimer() {
74162
74247
  if (this._timer !== undefined) {
@@ -74171,9 +74256,9 @@ class BatchSpanProcessor extends BatchSpanProcessorBase {
74171
74256
  onShutdown() {}
74172
74257
  }
74173
74258
  // ../../node_modules/@opentelemetry/sdk-logs/build/esm/export/BatchLogRecordProcessorBase.js
74174
- var import_core4 = __toESM(require_src3(), 1);
74175
- var import_api4 = __toESM(require_src(), 1);
74176
74259
  var import_core5 = __toESM(require_src3(), 1);
74260
+ var import_api5 = __toESM(require_src(), 1);
74261
+ var import_core6 = __toESM(require_src3(), 1);
74177
74262
 
74178
74263
  class BatchLogRecordProcessorBase {
74179
74264
  _exporter;
@@ -74186,13 +74271,13 @@ class BatchLogRecordProcessorBase {
74186
74271
  _shutdownOnce;
74187
74272
  constructor(_exporter, config) {
74188
74273
  this._exporter = _exporter;
74189
- this._maxExportBatchSize = config?.maxExportBatchSize ?? import_core4.getNumberFromEnv("OTEL_BLRP_MAX_EXPORT_BATCH_SIZE") ?? 512;
74190
- this._maxQueueSize = config?.maxQueueSize ?? import_core4.getNumberFromEnv("OTEL_BLRP_MAX_QUEUE_SIZE") ?? 2048;
74191
- this._scheduledDelayMillis = config?.scheduledDelayMillis ?? import_core4.getNumberFromEnv("OTEL_BLRP_SCHEDULE_DELAY") ?? 5000;
74192
- this._exportTimeoutMillis = config?.exportTimeoutMillis ?? import_core4.getNumberFromEnv("OTEL_BLRP_EXPORT_TIMEOUT") ?? 30000;
74193
- this._shutdownOnce = new import_core5.BindOnceFuture(this._shutdown, this);
74274
+ this._maxExportBatchSize = config?.maxExportBatchSize ?? import_core5.getNumberFromEnv("OTEL_BLRP_MAX_EXPORT_BATCH_SIZE") ?? 512;
74275
+ this._maxQueueSize = config?.maxQueueSize ?? import_core5.getNumberFromEnv("OTEL_BLRP_MAX_QUEUE_SIZE") ?? 2048;
74276
+ this._scheduledDelayMillis = config?.scheduledDelayMillis ?? import_core5.getNumberFromEnv("OTEL_BLRP_SCHEDULE_DELAY") ?? 5000;
74277
+ this._exportTimeoutMillis = config?.exportTimeoutMillis ?? import_core5.getNumberFromEnv("OTEL_BLRP_EXPORT_TIMEOUT") ?? 30000;
74278
+ this._shutdownOnce = new import_core6.BindOnceFuture(this._shutdown, this);
74194
74279
  if (this._maxExportBatchSize > this._maxQueueSize) {
74195
- import_api4.diag.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize");
74280
+ import_api5.diag.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize");
74196
74281
  this._maxExportBatchSize = this._maxQueueSize;
74197
74282
  }
74198
74283
  }
@@ -74241,7 +74326,7 @@ class BatchLogRecordProcessorBase {
74241
74326
  return Promise.resolve();
74242
74327
  }
74243
74328
  return new Promise((resolve, reject) => {
74244
- import_core5.callWithTimeout(this._export(this._finishedLogRecords.splice(0, this._maxExportBatchSize)), this._exportTimeoutMillis).then(() => resolve()).catch(reject);
74329
+ import_core6.callWithTimeout(this._export(this._finishedLogRecords.splice(0, this._maxExportBatchSize)), this._exportTimeoutMillis).then(() => resolve()).catch(reject);
74245
74330
  });
74246
74331
  }
74247
74332
  _maybeStartTimer() {
@@ -74255,10 +74340,10 @@ class BatchLogRecordProcessorBase {
74255
74340
  this._maybeStartTimer();
74256
74341
  }
74257
74342
  }).catch((e) => {
74258
- import_core5.globalErrorHandler(e);
74343
+ import_core6.globalErrorHandler(e);
74259
74344
  });
74260
74345
  }, this._scheduledDelayMillis);
74261
- import_core5.unrefTimer(this._timer);
74346
+ import_core6.unrefTimer(this._timer);
74262
74347
  }
74263
74348
  _clearTimer() {
74264
74349
  if (this._timer !== undefined) {
@@ -74267,16 +74352,16 @@ class BatchLogRecordProcessorBase {
74267
74352
  }
74268
74353
  }
74269
74354
  _export(logRecords) {
74270
- const doExport = () => import_core5.internal._export(this._exporter, logRecords).then((result) => {
74271
- if (result.code !== import_core5.ExportResultCode.SUCCESS) {
74272
- import_core5.globalErrorHandler(result.error ?? new Error(`BatchLogRecordProcessor: log record export failed (status ${result})`));
74355
+ const doExport = () => import_core6.internal._export(this._exporter, logRecords).then((result) => {
74356
+ if (result.code !== import_core6.ExportResultCode.SUCCESS) {
74357
+ import_core6.globalErrorHandler(result.error ?? new Error(`BatchLogRecordProcessor: log record export failed (status ${result})`));
74273
74358
  }
74274
- }).catch(import_core5.globalErrorHandler);
74359
+ }).catch(import_core6.globalErrorHandler);
74275
74360
  const pendingResources = logRecords.map((logRecord) => logRecord.resource).filter((resource) => resource.asyncAttributesPending);
74276
74361
  if (pendingResources.length === 0) {
74277
74362
  return doExport();
74278
74363
  } else {
74279
- return Promise.all(pendingResources.map((resource) => resource.waitForAsyncAttributes?.())).then(doExport, import_core5.globalErrorHandler);
74364
+ return Promise.all(pendingResources.map((resource) => resource.waitForAsyncAttributes?.())).then(doExport, import_core6.globalErrorHandler);
74280
74365
  }
74281
74366
  }
74282
74367
  }