@bitfab/sdk 0.74.5 → 0.74.7

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.
@@ -3,7 +3,7 @@ import "@opentelemetry/api";
3
3
  import "@opentelemetry/core";
4
4
  import "@opentelemetry/resources";
5
5
  import "@opentelemetry/sdk-trace";
6
- import "superjson";
6
+ import superjson from "superjson";
7
7
  //#region \0rolldown/runtime.js
8
8
  var __defProp = Object.defineProperty;
9
9
  var __exportAll = (all, no_symbols) => {
@@ -139,10 +139,10 @@ const EXIT_FLUSH_TIMEOUT_MS = 5e3;
139
139
  const DEFAULT_LIFECYCLE_TIMEOUT_MS = 3e4;
140
140
  const pendingTracePromises = /* @__PURE__ */ new Set();
141
141
  const liveHttpClients = /* @__PURE__ */ new Set();
142
- async function releaseHeldExternalSpans(timeoutMs) {
142
+ async function releaseHeldSpans(timeoutMs) {
143
143
  const deadline = Date.now() + Math.max(timeoutMs, 0);
144
144
  let released = true;
145
- for (const client of [...liveHttpClients]) released = await client.releaseHeldExternalSpans?.(Math.max(0, deadline - Date.now())) !== false && released;
145
+ for (const client of [...liveHttpClients]) released = await client.releaseHeldSpans?.(Math.max(0, deadline - Date.now())) !== false && released;
146
146
  return released;
147
147
  }
148
148
  function stopSimulationPlans() {
@@ -150,9 +150,9 @@ function stopSimulationPlans() {
150
150
  }
151
151
  async function flushTraces(timeoutMs = 5e3) {
152
152
  const deadline = Date.now() + Math.max(timeoutMs, 0);
153
- const released = await releaseHeldExternalSpans(planWaitSliceMs(timeoutMs));
153
+ const released = await releaseHeldSpans(planWaitSliceMs(timeoutMs));
154
154
  const requestsFlushed = await awaitPendingRequests(Math.max(0, deadline - Date.now()));
155
- const releasedAfterDeferred = await releaseHeldExternalSpans(0);
155
+ const releasedAfterDeferred = await releaseHeldSpans(0);
156
156
  const transportsFlushed = await flushTraceTransports(Math.max(0, deadline - Date.now()));
157
157
  return released && releasedAfterDeferred && requestsFlushed && transportsFlushed;
158
158
  }
@@ -183,7 +183,7 @@ if (typeof process !== "undefined" && process.versions != null && process.versio
183
183
  };
184
184
  const deadline = setTimeout(stopFlushing, 1e4);
185
185
  unrefTimer(deadline);
186
- releaseHeldExternalSpans(planWaitMs).catch(() => {}).then(() => {
186
+ releaseHeldSpans(planWaitMs).catch(() => {}).then(() => {
187
187
  stopSimulationPlans();
188
188
  }).then(() => Promise.allSettled([...Array.from(pendingTracePromises).map((p) => p.catch(() => {})), shutdownTraceTransports(EXIT_FLUSH_TIMEOUT_MS).catch(() => false)])).then(() => {
189
189
  clearTimeout(deadline);
@@ -191,6 +191,7 @@ if (typeof process !== "undefined" && process.versions != null && process.versio
191
191
  });
192
192
  });
193
193
  }
194
+ superjson.defaultInstance;
194
195
  //#endregion
195
196
  //#region src/replayInterrupt.ts
196
197
  function describeReplayInterrupt(experimentId, markedInterrupted) {
@@ -1338,4 +1339,4 @@ function runIfEntrypoint(moduleUrl, main) {
1338
1339
  //#endregion
1339
1340
  export { runRegistryMain as a, runSeedCli as c, runIfEntrypoint as i, parseRegistryCommandArgs as n, checkReplayCliArgs as o, resolveRegistry as r, runReplayCli as s, importRegistry as t };
1340
1341
 
1341
- //# sourceMappingURL=registryCommand-Bm2-Peq8.js.map
1342
+ //# sourceMappingURL=registryCommand-DdE8cNOX.js.map