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

Add OpenTelemetry support #836

Merged
merged 6 commits into from
Jun 28, 2021
Merged

Add OpenTelemetry support #836

merged 6 commits into from
Jun 28, 2021

Conversation

BrynCooke
Copy link
Contributor

This PR adds instrumentation to emit the following spans:

federation.request - total time to server a request.
federation.validate - time to validate the federated query.
federation.plan - time to plan the federated query.
federation.execute - the total time executing query.
federation.fetch - time fetching data from a subgraph.
federation.postprocessing - time to render the response from all the subgraph data.
The instrumentation looks a little messy due to the requirement to set error status on spans on exception, but also if errors are added to the response.

It is a reissue of the following PRs
#803
#828

@BrynCooke BrynCooke requested a review from trevor-scheer June 25, 2021 07:41
@BrynCooke BrynCooke force-pushed the otel-1.0.0 branch 5 times, most recently from 66b711d to ab8cfc9 Compare June 25, 2021 07:50
This PR adds instrumentation to emit the following spans:

federation.request - total time to server a request.
federation.validate - time to validate the federated query.
federation.plan - time to plan the federated query.
federation.execute - the total time executing query.
federation.fetch - time fetching data from a subgraph.
federation.postprocessing - time to render the response from all the subgraph data.
The instrumentation looks a little messy due to the requirement to set error status on spans on exception, but also if errors are added to the response.

It is a reissue of the following PRs
#803
#828
@BrynCooke BrynCooke merged this pull request into release-gateway-0.31.0 Jun 28, 2021
@BrynCooke BrynCooke deleted the otel-1.0.0 branch June 28, 2021 20:09
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