cross-tab-worker-databus 0.20.14 → 0.20.16

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.
@@ -1910,7 +1910,7 @@ var CrossTabDataBus = class _CrossTabDataBus {
1910
1910
  const now = this.now();
1911
1911
  if (now - this.lastRecoveryAt >= _CrossTabDataBus.RECOVERY_COOLDOWN_MS) {
1912
1912
  this.lastRecoveryAt = now;
1913
- this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1 });
1913
+ this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "scheduled" });
1914
1914
  setTimeout(() => {
1915
1915
  if (this.stopping || !this.started || this.suspended) return;
1916
1916
  if (this.status !== "error") return;
@@ -2017,9 +2017,12 @@ var CrossTabDataBus = class _CrossTabDataBus {
2017
2017
  this.startPromise = opening;
2018
2018
  void opening.then(
2019
2019
  () => {
2020
+ this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "succeeded" });
2020
2021
  if (this.startPromise === opening) this.startPromise = null;
2021
2022
  },
2022
- () => void 0
2023
+ () => {
2024
+ this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "failed" });
2025
+ }
2023
2026
  );
2024
2027
  void opening.catch(() => void 0);
2025
2028
  return opening;