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

fix(gatsby): correct tracing for GraphQL queries #28415

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

vladar
Copy link
Contributor

@vladar vladar commented Dec 1, 2020

Description

Before this PR GraphQL Query trace was reporting incorrect numbers. It was always reporting 0-5ms because we didn't wait for the query promise to resolve. So the tracer was ending immediately after the execute() call.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 1, 2020
@vladar vladar removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 1, 2020
@vladar vladar added the topic: GraphQL Related to Gatsby's GraphQL layer label Dec 1, 2020
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

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

💥

Wanna play with tracing soon so this is great

@KyleAMathews KyleAMathews merged commit 4e50d5c into master Dec 1, 2020
@delete-merged-branch delete-merged-branch bot deleted the vladar/fix-graphql-tracing branch December 1, 2020 19:07
pieh pushed a commit that referenced this pull request Dec 4, 2020
pieh pushed a commit that referenced this pull request Dec 4, 2020
pieh pushed a commit that referenced this pull request Dec 4, 2020
(cherry picked from commit 4e50d5c)

Co-authored-by: Vladimir Razuvaev <[email protected]>
@pieh
Copy link
Contributor

pieh commented Dec 7, 2020

Published in [email protected]

pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: GraphQL Related to Gatsby's GraphQL layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants