@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.
@@ -10628,13 +10628,13 @@ var AppLaunchCollector = class {
10628
10628
  try {
10629
10629
  const perfModule = getNativePerformanceModule();
10630
10630
  if (!perfModule?.getAppStartInfo) {
10631
- logger.warn("[perf.trace] AppLaunchCollector: native perf module unavailable \u2014 no app_launch");
10631
+ logger.debug("[perf.trace] AppLaunchCollector: native perf module unavailable \u2014 no app_launch");
10632
10632
  return;
10633
10633
  }
10634
10634
  const jsReadyTimestamp = Date.now();
10635
10635
  const info = await perfModule.getAppStartInfo();
10636
10636
  if (!info || typeof info.durationMs !== "number") {
10637
- logger.warn("[perf.trace] AppLaunchCollector: getAppStartInfo returned no usable duration \u2014 no app_launch", {
10637
+ logger.debug("[perf.trace] AppLaunchCollector: getAppStartInfo returned no usable duration \u2014 no app_launch", {
10638
10638
  hasInfo: !!info,
10639
10639
  durationType: typeof info?.durationMs
10640
10640
  });
@@ -10684,13 +10684,13 @@ var AppLaunchCollector = class {
10684
10684
  breakdown: hasBreakdown ? breakdown : void 0,
10685
10685
  phaseLabels: hasBreakdown ? phaseLabels : void 0
10686
10686
  };
10687
- logger.warn("[perf.trace] AppLaunchCollector: app_launch built, invoking handler", {
10687
+ logger.debug("[perf.trace] AppLaunchCollector: app_launch built, invoking handler", {
10688
10688
  durationMs: event.durationMs,
10689
10689
  launchType: event.launchType
10690
10690
  });
10691
10691
  this.onLaunch(event);
10692
10692
  } catch (e) {
10693
- logger.warn("[perf.trace] AppLaunchCollector: collect() threw", {
10693
+ logger.debug("[perf.trace] AppLaunchCollector: collect() threw", {
10694
10694
  message: e?.message
10695
10695
  });
10696
10696
  }
@@ -11815,7 +11815,7 @@ var PerformanceFeature = class _PerformanceFeature {
11815
11815
  _forwardMetricToBackend(metric) {
11816
11816
  const sm = SessionManager.getExistingInstance();
11817
11817
  const backendTransport = sm?.getBackendTransport();
11818
- logger.warn("[perf.trace] forwardMetricToBackend", {
11818
+ logger.debug("[perf.trace] forwardMetricToBackend", {
11819
11819
  type: metric.type,
11820
11820
  hasSessionManager: !!sm,
11821
11821
  hasBackendTransport: !!backendTransport,
@@ -11840,7 +11840,7 @@ var PerformanceFeature = class _PerformanceFeature {
11840
11840
  for (const metric of buffered) {
11841
11841
  backendTransport.queuePerformanceMetric(metric);
11842
11842
  }
11843
- logger.warn("[perf.trace] drained buffered metrics to backend", {
11843
+ logger.debug("[perf.trace] drained buffered metrics to backend", {
11844
11844
  count: buffered.length
11845
11845
  });
11846
11846
  this._clearBackendDrainTimer();
@@ -12595,7 +12595,7 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
12595
12595
  clientId: this._clientId(),
12596
12596
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
12597
12597
  });
12598
- logger.warn("[perf.trace] queue enqueued performance metric", {
12598
+ logger.debug("[perf.trace] queue enqueued performance metric", {
12599
12599
  type: data.type,
12600
12600
  pending: this.pendingPerformanceMetrics.length
12601
12601
  });
@@ -13167,7 +13167,7 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
13167
13167
  async _flushPerformance() {
13168
13168
  if (this.pendingPerformanceMetrics.length === 0) return;
13169
13169
  if (!this.currentSessionId || !this.config.clientKey) {
13170
- logger.warn("[perf.trace] flush waiting \u2014 not deliverable yet", {
13170
+ logger.debug("[perf.trace] flush waiting \u2014 not deliverable yet", {
13171
13171
  pending: this.pendingPerformanceMetrics.length,
13172
13172
  hasSession: !!this.currentSessionId,
13173
13173
  hasClientKey: !!this.config.clientKey
@@ -13177,13 +13177,13 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
13177
13177
  const batch = this.pendingPerformanceMetrics.splice(0, 50);
13178
13178
  try {
13179
13179
  if (await this._enqueueNative("performance", batch)) {
13180
- logger.warn("[perf.trace] flush handed to native outbox", {
13180
+ logger.debug("[perf.trace] flush handed to native outbox", {
13181
13181
  count: batch.length
13182
13182
  });
13183
13183
  return;
13184
13184
  }
13185
13185
  if (!this._sessionRowReady()) {
13186
- logger.warn("[perf.trace] flush session row not ready \u2014 re-buffering", {
13186
+ logger.debug("[perf.trace] flush session row not ready \u2014 re-buffering", {
13187
13187
  count: batch.length
13188
13188
  });
13189
13189
  this.pendingPerformanceMetrics.unshift(...batch);
@@ -13192,7 +13192,7 @@ var BackendSessionAdapter = class _BackendSessionAdapter {
13192
13192
  await this._post(ENDPOINTS.INGESTION_PERFORMANCE(this.currentSessionId), {
13193
13193
  metrics: batch
13194
13194
  });
13195
- logger.warn("[perf.trace] flush POST performance metrics ok", {
13195
+ logger.debug("[perf.trace] flush POST performance metrics ok", {
13196
13196
  count: batch.length
13197
13197
  });
13198
13198
  } catch (err) {