Skip to content
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

feat(dataloader): create an example app that uses Apollo, koa, a dataloader and Mongo #68

Merged
merged 1 commit into from
May 22, 2023

Conversation

jordigh
Copy link
Contributor

@jordigh jordigh commented May 11, 2023

Except for the dataloader, these are all things we instrument, so we should be seeing spans for all of them once our instrumentation is working.

"graphql-tag": "^2.12.6",
"koa": "^2.14.2",
"koa-bodyparser": "^4.4.0",
"mongodb": "^5.5.0",
Copy link
Member

Choose a reason for hiding this comment

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

we don't support mongo v5 just yet. I would downgrade and re-test. you might be starting off with an incorrect baseline

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks.

This really should have been a WIP, as there were other problems, such as not using the ESM loader, nor the Apollo plugin. I'm just going to rebase to add those.

@jordigh jordigh force-pushed the dataloader branch 2 times, most recently from b375212 to 9dec9ec Compare May 15, 2023 15:25
@jordigh
Copy link
Contributor Author

jordigh commented May 15, 2023

This is ready for a second review. As far as I can tell, this works just fine and the DynamoDB calls are showing up fine and dandy in DT.

Screenshot 2023-05-15 at 11 28 51

…loader, and Mongo or DynamoDB

Except for the dataloader, these are all things we instrument, so we
should be seeing spans for all of them once our instrumentation is
working.

And as far as I can tell... we do.
Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

This looks good, I verified I see traces and relevant spans for dynamo/mongo when using the dataloader. I tried to revive the pared down app to see if I could see issues but I don't think it actually is using dataloader. I think this application will serve as a good talking point for users who state they have issues with dataloader

@bizob2828 bizob2828 merged commit 63c80a2 into newrelic:main May 22, 2023
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants