From 83ec28dbc2bb2aa3ce8b5ad7e8b99e519baeb186 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Tue, 30 Jun 2026 23:30:26 -0700 Subject: [PATCH] fix(selfhost): import withOtelSpan in the durable queues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pg-queue.ts and sqlite-queue.ts call withOtelSpan for the admission-deferred span (like server.ts does) but import only withReviewSpan, so tsc fails with 'Cannot find name withOtelSpan' on main — #1922 added the calls and #1986 landed close behind, green separately but broken together. Add the missing import from ./otel. Behavior-preserving (the span was already intended); unblocks CI. --- src/selfhost/pg-queue.ts | 1 + src/selfhost/sqlite-queue.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/selfhost/pg-queue.ts b/src/selfhost/pg-queue.ts index 0d7733c0d4..6074ad5fdc 100644 --- a/src/selfhost/pg-queue.ts +++ b/src/selfhost/pg-queue.ts @@ -6,6 +6,7 @@ import type { Pool } from "pg"; import { logAudit, extractPayloadType } from "./audit"; import { incr } from "./metrics"; import { withReviewSpan } from "./tracing"; +import { withOtelSpan } from "./otel"; import { captureError } from "./sentry"; import { consumingRetryDelayMs, diff --git a/src/selfhost/sqlite-queue.ts b/src/selfhost/sqlite-queue.ts index 05d800bfb3..b10dde4deb 100644 --- a/src/selfhost/sqlite-queue.ts +++ b/src/selfhost/sqlite-queue.ts @@ -7,6 +7,7 @@ import type { SqliteDriver } from "./d1-adapter"; import { logAudit, extractPayloadType } from "./audit"; import { incr } from "./metrics"; import { withReviewSpan } from "./tracing"; +import { withOtelSpan } from "./otel"; import { captureError } from "./sentry"; import { consumingRetryDelayMs,