Skip to content

test(node): Add basic integration tests for Express. #4817

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 4 commits into from
Mar 31, 2022

Conversation

onurtemizkan
Copy link
Collaborator

Part of: #4762

These tests are very basic and roughly check if error handling and transactions are not broken on Express.

@onurtemizkan onurtemizkan force-pushed the onur/add-basic-express-int-tests branch from 72267bb to 62a5f44 Compare March 29, 2022 18:44
Sentry.init({
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
integrations: [new Sentry.Integrations.Http({ tracing: true }), new Tracing.Integrations.Express({ app })],
Copy link
Member

Choose a reason for hiding this comment

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

Can we also check if outgoing requests get the sentry trace header attached? Would also like to see the opposite, an incoming request get a transaction created based on the incoming sentry-trace header.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@AbhiPrasad, I added the tests. Kind of hacky though.

Copy link
Member

Choose a reason for hiding this comment

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

This is fine as a starting point, we can always improve afterwards

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) March 31, 2022 16:21
@AbhiPrasad AbhiPrasad merged commit 2934a73 into master Mar 31, 2022
@AbhiPrasad AbhiPrasad deleted the onur/add-basic-express-int-tests branch March 31, 2022 16:51
@AbhiPrasad AbhiPrasad mentioned this pull request Mar 31, 2022
19 tasks
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