Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): stop tracing per-event live coalescer work #29758

Mergedonlydole(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/29758/headmerged by maria-rcks View on GitHub

Showing 1 changed file with 4 additions and 5 deletions.

x
0 of 1 viewed, 1 left
4 additions and 5 deletionsapps/server/src/orchestration-v2/ThreadLiveEventCoalescer.tsModified
View file
@@ -95,7 +95,8 @@
let windowFiber: Fiber.Fiber<void, never> | null = null;
let closed = false;
​
- const cancelWindow = Effect.fn("ThreadLiveEventCoalescer.cancelWindow")(function* () {
+ // cancelWindow/flushPending/offerAll run per live event or batch; sub-ms spans here would flood the rotating trace.
+ const cancelWindow = Effect.fnUntraced(function* () {
const fiber = windowFiber;
if (!fiber) {
return;
@@ -104,7 +105,7 @@
yield* Fiber.interrupt(fiber);
});
​
- const flushPending = Effect.fn("ThreadLiveEventCoalescer.flushPending")(function* () {
+ const flushPending = Effect.fnUntraced(function* () {
if (pendingUpdates.length === 0) {
return;
@@ -135,9 +136,7 @@
​
// Keep each source batch together so a synchronization marker cannot pass
// events already pulled from PubSub but still being coalesced.
- const offerAll = Effect.fn("ThreadLiveEventCoalescer.offerAll")(function* (
- inputs: ReadonlyArray<ThreadLiveInput>,
- ) {
+ const offerAll = Effect.fnUntraced(function* (inputs: ReadonlyArray<ThreadLiveInput>) {
yield* mutex.withPermits(1)(