@scalebun/react-native 1.2.2-beta.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7499,13 +7499,13 @@ var init_AppLaunchCollector = __esm({
7499
7499
  try {
7500
7500
  const perfModule = getNativePerformanceModule();
7501
7501
  if (!perfModule?.getAppStartInfo) {
7502
- logger.warn("[perf.trace] AppLaunchCollector: native perf module unavailable \u2014 no app_launch");
7502
+ logger.debug("[perf.trace] AppLaunchCollector: native perf module unavailable \u2014 no app_launch");
7503
7503
  return;
7504
7504
  }
7505
7505
  const jsReadyTimestamp = Date.now();
7506
7506
  const info = await perfModule.getAppStartInfo();
7507
7507
  if (!info || typeof info.durationMs !== "number") {
7508
- logger.warn("[perf.trace] AppLaunchCollector: getAppStartInfo returned no usable duration \u2014 no app_launch", {
7508
+ logger.debug("[perf.trace] AppLaunchCollector: getAppStartInfo returned no usable duration \u2014 no app_launch", {
7509
7509
  hasInfo: !!info,
7510
7510
  durationType: typeof info?.durationMs
7511
7511
  });
@@ -7555,13 +7555,13 @@ var init_AppLaunchCollector = __esm({
7555
7555
  breakdown: hasBreakdown ? breakdown : void 0,
7556
7556
  phaseLabels: hasBreakdown ? phaseLabels : void 0
7557
7557
  };
7558
- logger.warn("[perf.trace] AppLaunchCollector: app_launch built, invoking handler", {
7558
+ logger.debug("[perf.trace] AppLaunchCollector: app_launch built, invoking handler", {
7559
7559
  durationMs: event.durationMs,
7560
7560
  launchType: event.launchType
7561
7561
  });
7562
7562
  this.onLaunch(event);
7563
7563
  } catch (e) {
7564
- logger.warn("[perf.trace] AppLaunchCollector: collect() threw", {
7564
+ logger.debug("[perf.trace] AppLaunchCollector: collect() threw", {
7565
7565
  message: e?.message
7566
7566
  });
7567
7567
  }
@@ -8761,7 +8761,7 @@ var init_PerformanceFeature = __esm({
8761
8761
  _forwardMetricToBackend(metric) {
8762
8762
  const sm = SessionManager.getExistingInstance();
8763
8763
  const backendTransport = sm?.getBackendTransport();
8764
- logger.warn("[perf.trace] forwardMetricToBackend", {
8764
+ logger.debug("[perf.trace] forwardMetricToBackend", {
8765
8765
  type: metric.type,
8766
8766
  hasSessionManager: !!sm,
8767
8767
  hasBackendTransport: !!backendTransport,
@@ -8786,7 +8786,7 @@ var init_PerformanceFeature = __esm({
8786
8786
  for (const metric of buffered) {
8787
8787
  backendTransport.queuePerformanceMetric(metric);
8788
8788
  }
8789
- logger.warn("[perf.trace] drained buffered metrics to backend", {
8789
+ logger.debug("[perf.trace] drained buffered metrics to backend", {
8790
8790
  count: buffered.length
8791
8791
  });
8792
8792
  this._clearBackendDrainTimer();
@@ -15796,7 +15796,7 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
15796
15796
  clientId: this._clientId(),
15797
15797
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
15798
15798
  });
15799
- logger.warn("[perf.trace] queue enqueued performance metric", {
15799
+ logger.debug("[perf.trace] queue enqueued performance metric", {
15800
15800
  type: data.type,
15801
15801
  pending: this.pendingPerformanceMetrics.length
15802
15802
  });
@@ -16368,7 +16368,7 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
16368
16368
  async _flushPerformance() {
16369
16369
  if (this.pendingPerformanceMetrics.length === 0) return;
16370
16370
  if (!this.currentSessionId || !this.config.clientKey) {
16371
- logger.warn("[perf.trace] flush waiting \u2014 not deliverable yet", {
16371
+ logger.debug("[perf.trace] flush waiting \u2014 not deliverable yet", {
16372
16372
  pending: this.pendingPerformanceMetrics.length,
16373
16373
  hasSession: !!this.currentSessionId,
16374
16374
  hasClientKey: !!this.config.clientKey
@@ -16378,13 +16378,13 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
16378
16378
  const batch = this.pendingPerformanceMetrics.splice(0, 50);
16379
16379
  try {
16380
16380
  if (await this._enqueueNative("performance", batch)) {
16381
- logger.warn("[perf.trace] flush handed to native outbox", {
16381
+ logger.debug("[perf.trace] flush handed to native outbox", {
16382
16382
  count: batch.length
16383
16383
  });
16384
16384
  return;
16385
16385
  }
16386
16386
  if (!this._sessionRowReady()) {
16387
- logger.warn("[perf.trace] flush session row not ready \u2014 re-buffering", {
16387
+ logger.debug("[perf.trace] flush session row not ready \u2014 re-buffering", {
16388
16388
  count: batch.length
16389
16389
  });
16390
16390
  this.pendingPerformanceMetrics.unshift(...batch);
@@ -16393,7 +16393,7 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
16393
16393
  await this._post(ENDPOINTS.INGESTION_PERFORMANCE(this.currentSessionId), {
16394
16394
  metrics: batch
16395
16395
  });
16396
- logger.warn("[perf.trace] flush POST performance metrics ok", {
16396
+ logger.debug("[perf.trace] flush POST performance metrics ok", {
16397
16397
  count: batch.length
16398
16398
  });
16399
16399
  } catch (err) {