Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): detach immortal parent spans from idle background work #9824

Closedlnieuwenhuis(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/9824/headopened View on GitHub

Showing 5 changed files with 50 additions and 6 deletions (loading 2).

x
0 of 5 viewed, 5 left
1 addition and 1 deletionapps/server/src/auth/ServerSecretStore.tsModified
View file
@@ -182,7 +182,7 @@
}),
- Effect.withSpan("ServerSecretStore.get"),
+ Effect.withTracerEnabled(false),
​
const set: ServerSecretStore["Service"]["set"] = (name, value) => {
38 additions and 0 deletionsapps/server/src/preview/PortScanner.test.tsModified
View file
@@ -18,6 +18,7 @@
import * as PlatformError from "effect/PlatformError";
import * as Scope from "effect/Scope";
import * as TestClock from "effect/testing/TestClock";
+import * as Tracer from "effect/Tracer";
import { expect } from "vite-plus/test";
import { FetchHttpClient } from "effect/unstable/http";
​
@@ -665,3 +666,40 @@
}),
+​
+effectIt.effect("idle poll ticks create no spans under the ambient parent", () => {
+ const spanNames: Array<string> = [];
+ const tracer = Tracer.make({