Skip to content

Be able to add more ERROR_TYPES_HANDLED_BY_DATA_FETCHERS for GraphQL #2953

Closed

Description

@SalyczeQ

Problem Statement

Hello,
sometimes you have your own inner graphQL errors which you want to ignore (something like access denied) and don't re-throw them as another runtime exception and log them.

Solution Brainstorm

It would be nice to be able to add more ignored errors to ERROR_TYPES_HANDLED_BY_DATA_FETCHERS for GraphQL. It's in SentryInstrumentation class.

What do you think?

Best regards,
Dusan

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Sep 25, 2023
  2. adinauer commented on Sep 26, 2023

    @adinauer
    Member

    Hello @SalyczeQ I assume you've seen #2899 as you've upvoted there. I'd like to close this issue as a duplicate in favor of the other one. Would you agree that would solve your needs as well? Would you prefer ignored types to be set as a List<String> instead of List<ErrorClassification>?

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Sep 26, 2023
  4. SalyczeQ commented on Sep 28, 2023

    @SalyczeQ
    Author

    Hello @adinauer, I double check the issue which I am hading and #2899 would really solve the issue. Now I hot fix the issue with remapping error type to graphql.ErrorType.DataFetchingException, which is already statically ignored.

    I think that List<String> give you more freedom. But more type strict List<ErrorClassification> would be still enough also for my case. 👍

  5. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Sep 28, 2023
  6. adinauer commented on Sep 29, 2023

    @adinauer
    Member

    Closing this in favor of #2899 . Added a link to this issue on #2899 so we keep this feedback in mind - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions