René's URL Explorer Experiment


Title: GraphQL ignored-error-types should not rely only on ErrorClassification.toString() · Issue #6020 · getsentry/sentry-java · GitHub

Open Graph Title: GraphQL ignored-error-types should not rely only on ErrorClassification.toString() · Issue #6020 · getsentry/sentry-java

X Title: GraphQL ignored-error-types should not rely only on ErrorClassification.toString() · Issue #6020 · getsentry/sentry-java

Description: Problem Statement I am using the GraphQL integration with: io.sentry:sentry-spring-boot-4 io.sentry:sentry-graphql-22 Sentry Java SDK 8.42.0 com.graphql-java:graphql-java-extended-validation:24.0 I want to ignore expected GraphQL validat...

Open Graph Description: Problem Statement I am using the GraphQL integration with: io.sentry:sentry-spring-boot-4 io.sentry:sentry-graphql-22 Sentry Java SDK 8.42.0 com.graphql-java:graphql-java-extended-validation:24.0 I...

X Description: Problem Statement I am using the GraphQL integration with: io.sentry:sentry-spring-boot-4 io.sentry:sentry-graphql-22 Sentry Java SDK 8.42.0 com.graphql-java:graphql-java-extended-validation:24.0 I...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/6020

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GraphQL ignored-error-types should not rely only on ErrorClassification.toString()","articleBody":"### Problem Statement\n\nI am using the GraphQL integration with:\n\n- `io.sentry:sentry-spring-boot-4`\n- `io.sentry:sentry-graphql-22`\n- Sentry Java SDK `8.42.0`\n- `com.graphql-java:graphql-java-extended-validation:24.0`\n\nI want to ignore expected GraphQL validation errors produced by `graphql-java-extended-validation`.\n\nThe configuration looks like this:\n\n```yaml\nsentry.graphql.ignored-error-types:\n  - BAD_REQUEST\n  - UNAUTHORIZED\n  - FORBIDDEN\n  - NOT_FOUND\n  - ExtendedValidationError\n```\n\nThis works well for enum-like ErrorClassification values, but it does not work reliably for errors from graphql-java-extended-validation.\nFrom what I can see, SentryGraphqlInstrumentation currently resolves the error type with:\n\n```java\nerror.getErrorType().toString()\n```\n\nand then compares that string with ignoredErrorTypes.\nThe problem is that graphql-java-extended-validation uses a private ResourceBundleMessageInterpolator.ValidationErrorType class. It does not expose a stable enum-like value via toString(). The semantic classification is exposed through ErrorClassification.toSpecification(...), which returns a map like:\n\n```java\n{\n  \"type\": \"ExtendedValidationError\",\n  \"validatedPath\": [...],\n  \"constraint\": \"@...\"\n}\n```\n\nBecause of this, I currently have to work around the issue by replacing the extended-validation MessageInterpolator and returning a custom ErrorClassification whose toString() returns ExtendedValidationError only when called from Sentry:\n\n```java\noverride fun toString(): String {\n    if (stackWalker.callerClass == SentryGraphqlInstrumentation::class.java) {\n        return \"ExtendedValidationError\"\n    }\n\n    return super.toString()\n}\n```\n\nThat workaround is brittle and depends on Sentry internals.\nThis looks related to #2899, which added easier GraphQL error filtering. The current string-based filtering solves enum-like classifications, but it is hard to use with custom ErrorClassification implementations where toSpecification(...) carries the meaningful classification.\n\n\n### Solution Brainstorm\n\nCould Sentry support a more robust way to classify ignored GraphQL errors?\n\nA few possible approaches:\n\n1. When `error.getErrorType()` is present, call `errorType.toSpecification(error)` and, if it returns a map containing a `type` field, allow `ignored-error-types` to match that value.\n\n2. Add a callback/predicate for GraphQL errors. This would allow applications to inspect GraphQLError, ErrorClassification, extensions, path, etc.\n3. Pass the GraphQLError and/or ErrorClassification through the Sentry Hint, as mentioned in #2899, so users can filter these events in beforeSend without replacing the whole GraphQL instrumentation.\n\nMy preference would be option 1 for configuration compatibility, possibly combined with option 3 for advanced filtering.\n\nThis would also make the Sentry GraphQL integration work out of the box with `graphql-java-extended-validation`, which is an official companion library from the `graphql-java` project. Since Sentry Java already integrates with `graphql-java`, it would be helpful if expected validation errors from this commonly used library could be ignored without replacing the message interpolator or depending on `ErrorClassification.toString()`.","author":{"url":"https://github.com/arturs678","@type":"Person","name":"arturs678"},"datePublished":"2026-08-27T13:04:05Z","url":"https://github.com/getsentry/sentry-java/issues/6020"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aab875c3-9f11-a347-72d2-6085290ba3c6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB264:14AF70:C717B:110A7A:6B046374
html-safe-noncee9c15c18679b90e8374efa2818b7f84b9391b9a18ace979af4af2b7a13f7e12a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjY0OjE0QUY3MDpDNzE3QjoxMTBBN0E6NkIwNDYzNzQiLCJ2aXNpdG9yX2lkIjoiMTgyNzg0Njk2NTI0MTg2NTA3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac588eea4e4a47372bae2423db9bc56803603828c65ceda27b5d6a001da2677ff2
hovercard-subject-tagissue:5267836640
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6020/issue_layout
twitter:imagehttps://opengraph.githubassets.com/10b801b587db27fb43cab0dd3b8fbb952111dc9fbf734ccb60a9513059ed0701/getsentry/sentry-java/issues/6020
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10b801b587db27fb43cab0dd3b8fbb952111dc9fbf734ccb60a9513059ed0701/getsentry/sentry-java/issues/6020
og:image:altProblem Statement I am using the GraphQL integration with: io.sentry:sentry-spring-boot-4 io.sentry:sentry-graphql-22 Sentry Java SDK 8.42.0 com.graphql-java:graphql-java-extended-validation:24.0 I...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearturs678
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/6020#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6020
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6020
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/6020
Reloadhttps://github.com/getsentry/sentry-java/issues/6020
Reloadhttps://github.com/getsentry/sentry-java/issues/6020
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests57 (57)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6020
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6020
#6092https://github.com/getsentry/sentry-java/pull/6092
GraphQL ignored-error-types should not rely only on ErrorClassification.toString()https://github.com/getsentry/sentry-java/issues/6020#top
#6092https://github.com/getsentry/sentry-java/pull/6092
FeatureIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Feature%22
JavaSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Java%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com/arturs678
arturs678https://github.com/arturs678
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020#issue-5267836640
#2899https://github.com/getsentry/sentry-java/issues/2899
Easier way of filtering errors for GraphQL #2899https://github.com/getsentry/sentry-java/issues/2899
arturs678https://github.com/arturs678
FeatureIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Feature%22
JavaSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Java%22
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020#event-30105029130
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020#event-30105030387
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020#event-30105066137
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020#issuecomment-5439540487
Linear Codehttps://linear.app
JAVA-713https://linear.app/getsentry/issue/JAVA-713
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Aug 27, 2026https://github.com/getsentry/sentry-java/issues/6020#event-30105037448
https://github.com/adinauer
adinauerhttps://github.com/adinauer
on Sep 1, 2026https://github.com/getsentry/sentry-java/issues/6020#issuecomment-5492006307
@arturs678https://github.com/arturs678
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Sep 1, 2026https://github.com/getsentry/sentry-java/issues/6020#event-30336377997
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Sep 1, 2026https://github.com/getsentry/sentry-java/issues/6020
adinauerhttps://github.com/adinauer
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6092https://github.com/getsentry/sentry-java/pull/6092
on Nov 9, 2026https://github.com/getsentry/sentry-java/issues/6020#event-35536195810
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 11, 2026https://github.com/getsentry/sentry-java/issues/6020#issuecomment-6801920736
GitHub Actionshttps://help.github.com/en/actions
#6092https://github.com/getsentry/sentry-java/pull/6092
8.64.0 releasehttps://github.com/getsentry/sentry-java/releases/tag/8.64.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/6020
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6020
FeatureIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Feature%22
JavaSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Java%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.