Skip to content

Commit 126a01f

Browse files
committed
fix(webapp): look up run's actual worker group, show geo region in span detail
1 parent e3524e9 commit 126a01f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

apps/webapp/app/presenters/v3/SpanPresenter.server.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,17 @@ export class SpanPresenter extends BasePresenter {
303303
location: true,
304304
},
305305
where: {
306-
masterQueue: run.region || baseWorkerQueue(run.workerQueue),
306+
// masterQueue is unique and IS the run's backing queue, so this finds
307+
// the group the run actually ran on.
308+
masterQueue: baseWorkerQueue(run.workerQueue),
307309
},
308310
});
309311

310-
region = workerGroup ?? null;
312+
// Show the stamped geo region as the name so a migrated run never reveals
313+
// its compute backing; fall back to the group name for unstamped runs.
314+
region = workerGroup
315+
? { name: run.region ?? workerGroup.name, location: workerGroup.location }
316+
: null;
311317
}
312318

313319
// Only AGENT-tagged runs (chat.agent and friends) can be session-bound,

0 commit comments

Comments
 (0)