Skip to content

test(e2e): Fix node E2E test app #11682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024
Merged

test(e2e): Fix node E2E test app #11682

merged 1 commit into from
Apr 18, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 18, 2024

While looking into how we send trace context for error events (today: We only send trace_id, span_id and parent_span_id for errors, while we send everything for transactions. In browser, we always send everything...) I noticed that we don't cover this well for express today. Digging into this, I figured the tests was actually pretty broken, because we didn't have the right import order, so instrumentation was not fully correct 😬 so I split the node-express E2E tests into multiple files, added a test to check the error event shape, and fixed the app setup.

@mydea mydea requested review from lforst, Lms24 and s1gr1d April 18, 2024 12:17
@mydea mydea self-assigned this Apr 18, 2024
.toBe(200);
});

test('Sends correct error event', async ({ baseURL }) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

this test is new

@Lms24
Copy link
Member

Lms24 commented Apr 18, 2024

Good catch!

@mydea mydea merged commit c45f82a into develop Apr 18, 2024
@mydea mydea deleted the fn/node-e2e-test-app branch April 18, 2024 12:32
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