Skip to content

Conversation

@RulaKhaled
Copy link
Member

Automatically exclude the openai and langchain packages from webpack’s server-side bundle. This ensures the SDKs is loaded via Node.js’s native require() at runtime, enabling OpenTelemetry-based instrument

@RulaKhaled RulaKhaled marked this pull request as ready for review November 4, 2025 17:03
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Test Timers Leakage Breaks Isolation After Each

Removing vi.useRealTimers() from afterEach allows fake timers from tests (like "cleans up spans..." and "allows to configure...") to leak. This can cause test isolation issues and unpredictable test behavior.

packages/node-core/test/integration/transactions.test.ts#L8-L12

describe('Integration | Transactions', () => {
afterEach(() => {
vi.restoreAllMocks();
cleanupOtel();
});

Fix in Cursor Fix in Web


@RulaKhaled RulaKhaled marked this pull request as draft November 4, 2025 20:00
@RulaKhaled RulaKhaled changed the title fix(nextjs): Ensure AI modules remains external for correct runtime instrumentation wip fix(nextjs): Ensure AI modules remains external for correct runtime instrumentation Nov 4, 2025
@RulaKhaled RulaKhaled closed this Nov 5, 2025
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.

2 participants