Skip to content

test(nextjs): Add zero-infra orchestrion instrumentations to e2e app#22507

Draft
chargome wants to merge 2 commits into
developfrom
test/nextjs-orchestrion-zero-infra-instrumentations
Draft

test(nextjs): Add zero-infra orchestrion instrumentations to e2e app#22507
chargome wants to merge 2 commits into
developfrom
test/nextjs-orchestrion-zero-infra-instrumentations

Conversation

@chargome

Copy link
Copy Markdown
Member

Adds e2e coverage for generic-pool, lru-memoizer, dataloader and knex orchestrion instrumentations in the nextjs-16-orchestrion app. No new infra — knex reuses the existing Postgres container, the rest are pure-JS. dataloader and knex are opt-in, so they're added explicitly in the server config.

Closes #22504

Add e2e coverage for generic-pool, lru-memoizer, dataloader and knex orchestrion
instrumentations in the nextjs-16-orchestrion app. None require new infra: knex reuses
the existing Postgres container, the rest are pure-JS. dataloader and knex are opt-in
integrations, so they are added explicitly in the server config.

Fixes #22504
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chargome chargome self-assigned this Jul 22, 2026
@chargome

chargome commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

buglitzer run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3d0e11c. Configure here.

…tore

The load callback was fired inside the startSpan callback, so the memoized callback could see
the check span through normal async context propagation — the assertion passed even when
orchestrion's context restore was broken. Fire the load after startSpan returns (outside the
span's active context) so only the restore can make the callback observe the span, matching the
node lru-memoizer integration test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add zero-infra orchestrion instrumentations to nextjs-16-orchestrion

1 participant