Skip to content

test: Add e2e test for v11 orchestrion instrumentation - #1437

Merged
timfish merged 3 commits into
masterfrom
feat/vnext-orchestrion-tests
Sep 29, 2026
Merged

timfish merged 3 commits into
masterfrom
feat/vnext-orchestrion-tests

Conversation

@timfish

@timfish timfish commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

E2E test that orchestrion diagnostics-channel injection works in the Electron main process. test-apps/other/orchestrion-graphql/ inits the SDK with graphqlIntegration(), runs an in-process graphql query and asserts the injected GraphQL query span (origin auto.graphql.diagnostic_channel). It stays CommonJS (skipEsmAutoTransform) so it can require('graphql') after init, once the hook is registered.

The Node SDK picks the loader path from the bundled Node version:

Electron Node Loader path
35-39 22.x async Module.register()
40-44 24.13+ sync Module.registerHooks()

This also bumps the Sentry SDKs to 11.1.0, which the test needed to pass on Windows. The fix landed in tracing-hooks 0.13.3 (apm-js-collab/tracing-hooks#58) and reached the SDK in 11.1.0 (getsentry/sentry-javascript#24705), so until that release the test failed on Windows with Electron 40+.

11.1.0 also adds instrumentTypeSafeClient, mcpServerIntegration and typesafeIntegration, which are now re-exported from /main and /utility.

@timfish
timfish force-pushed the feat/vnext-orchestrion-tests branch from b96d244 to a8918e8 Compare September 24, 2026 10:18
@timfish
timfish added this pull request to stack #1422 September 24, 2026 10:21
@timfish
timfish force-pushed the feat/vnext-orchestrion-tests branch 3 times, most recently from 8a76adb to 546872d Compare September 28, 2026 13:59
@timfish
timfish marked this pull request as ready for review September 28, 2026 14:03
@timfish
timfish marked this pull request as draft September 28, 2026 14:07
Base automatically changed from feat/vnext-net-http-client-spans to master September 28, 2026 15:23
@timfish
timfish force-pushed the feat/vnext-orchestrion-tests branch from 546872d to 45283f6 Compare September 28, 2026 15:23
@timfish
timfish marked this pull request as ready for review September 28, 2026 15:43
await graphql({ schema, source: '{ hello }', rootValue: { hello: () => 'world' } });
});

await flush(2000);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

q: Is this manual flush needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Will check!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You were right, not needed!

@timfish
timfish merged commit 75c5870 into master Sep 29, 2026
315 of 320 checks passed
@timfish
timfish deleted the feat/vnext-orchestrion-tests branch September 29, 2026 17:06
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.

3 participants