Skip to content

Easier way of filtering errors for GraphQL #2899

Closed

Description

@adinauer

Discussed in #2897

We could add a List<ErrorClassification> of ignored errors, e.g. as constructor parameter for SentryInstrumentation.

An additional thing to do might be to pass the ErrorClassification in Hint for people not wanting to manually configure SentryInstrumentation when using spring-graphql where we offer auto configuration. This way it might be easier to filter using beforeSend etc.

Activity

  1. adinauer commented on Sep 29, 2023

    @adinauer
    MemberAuthor

    When implementing also consider feedback in #2953

  2. self-assigned this
    on Oct 4, 2023
  3. adinauer commented on Oct 13, 2023

    @adinauer
    MemberAuthor

    @ptrnk91 @SalyczeQ 6.31.0 has just been released and allows filtering GraphQL errors.

    You can now set a List<String> directly when calling the constructor of SentryInstrumentation. For Spring Boot it can also be set in application.properties as sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions