Skip to content

Look for errors in the graphql response for metric tagging #2162

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jjacobs44
Copy link
Collaborator

@jjacobs44 jjacobs44 commented May 22, 2025

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

It's possible to manually craft a DataFetcherResult and place errors within the error field. In the previous implementation, if your datafetcher were to catch all of its own exceptions and do this manual creation of a DataFetcherResult, those requests would not properly get tagged as a request which contained an error in metrics.

This changes the implementation to inspect the actual graphql result to check if it contains errors on top of just looking for exceptions.

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.

1 participant