René's URL Explorer Experiment


Title: Profiler: 4 of 9 interface methods have no call sites (v25.0 / master) · Issue #4366 · graphql-java/graphql-java · GitHub

Open Graph Title: Profiler: 4 of 9 interface methods have no call sites (v25.0 / master) · Issue #4366 · graphql-java/graphql-java

X Title: Profiler: 4 of 9 interface methods have no call sites (v25.0 / master) · Issue #4366 · graphql-java/graphql-java

Description: Describe the bug The Profiler interface declares 9 methods. In graphql-java-25.0 and on master as of today, 4 of them have zero call sites anywhere in the graphql-java codebase: Profiler.dataLoaderUsed(String) (line) Profiler.batchLoaded...

Open Graph Description: Describe the bug The Profiler interface declares 9 methods. In graphql-java-25.0 and on master as of today, 4 of them have zero call sites anywhere in the graphql-java codebase: Profiler.dataLoader...

X Description: Describe the bug The Profiler interface declares 9 methods. In graphql-java-25.0 and on master as of today, 4 of them have zero call sites anywhere in the graphql-java codebase: Profiler.dataLoader...

Opengraph URL: https://github.com/graphql-java/graphql-java/issues/4366

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Profiler: 4 of 9 interface methods have no call sites (v25.0 / master)","articleBody":"**Describe the bug**\nThe Profiler interface declares 9 methods. In graphql-java-25.0 and on master as of today, 4 of them have zero call sites anywhere in the graphql-java codebase:            \n\n- `Profiler.dataLoaderUsed(String)`  ([line](https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L26))\n- `Profiler.batchLoadedOldStrategy(String, int, int)` ([line](https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L47))\n- `Profiler.batchLoadedNewStrategy(String, Integer, int, boolean, boolean)` ([line](https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L52))\n- `Profiler.manualDispatch(String, int, int)` ([line](https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L56))\n\nThat results in Profiler not collecting data relevant to dataloaders usage and `ProfilerResult.getDataLoaderLoadInvocations` and `ProfilerResult.getDispatchEvents` always return empty result. \n\n**To Reproduce**\n\n```\n// Compile \u0026 run with graphql-java 25.0 and java-dataloader 6.0.0 on the classpath.\n// Expected output:\n//   dataLoaderChainingEnabled=true\n//   dataLoaderLoadInvocations={}      \u003c-- BUG: empty (Profiler.dataLoaderUsed never called)\n//   dispatchEvents=[]                 \u003c-- BUG: empty (batchLoadedNewStrategy/batchLoadedOldStrategy/manualDispatch never called)\n//   oldStrategyDispatchingAll=[...]   \u003c-- non-empty only if chaining=false (the one wired DataLoader-related event)\n//   fieldsFetched=[/users, /users[*]/name]   \u003c-- this works; demonstrates the Profiler is hooked up\n\nimport graphql.ExecutionInput;\nimport graphql.ExecutionResult;\nimport graphql.GraphQL;\nimport graphql.ProfilerResult;\nimport graphql.execution.instrumentation.dataloader.DataLoaderDispatchingContextKeys;\nimport graphql.schema.GraphQLSchema;\nimport graphql.schema.idl.RuntimeWiring;\nimport graphql.schema.idl.SchemaGenerator;\nimport graphql.schema.idl.SchemaParser;\nimport graphql.schema.idl.TypeDefinitionRegistry;\nimport org.dataloader.BatchLoader;\nimport org.dataloader.DataLoader;\nimport org.dataloader.DataLoaderFactory;\nimport org.dataloader.DataLoaderRegistry;\n\nimport java.util.List;\nimport java.util.concurrent.CompletableFuture;\n\npublic final class ProfilerUnwiredReproducer {\n\n    private static final String SDL = \"\"\"\n        type Query { users: [User!]! }\n        type User { id: ID!, name: String! }\n        \"\"\";\n\n    public static void main(String[] args) {\n        final boolean chaining = args.length == 0 || !args[0].equals(\"--no-chaining\");\n\n        // 1. Schema with one DataLoader-backed field.\n        final BatchLoader\u003cString, String\u003e nameLoader =\n            keys -\u003e CompletableFuture.completedFuture(keys.stream().map(k -\u003e \"name-\" + k).toList());\n\n        final RuntimeWiring wiring = RuntimeWiring.newRuntimeWiring()\n            .type(\"Query\", t -\u003e t.dataFetcher(\"users\",\n                env -\u003e List.of(new User(\"1\"), new User(\"2\"), new User(\"3\"))))\n            .type(\"User\", t -\u003e t.dataFetcher(\"name\",\n                env -\u003e env.\u003cDataLoader\u003cString, String\u003e\u003egetDataLoader(\"nameLoader\")\n                          .load(((User) env.getSource()).id)))\n            .build();\n\n        final TypeDefinitionRegistry tdr = new SchemaParser().parse(SDL);\n        final GraphQLSchema schema = new SchemaGenerator().makeExecutableSchema(tdr, wiring);\n        final GraphQL graphQL = GraphQL.newGraphQL(schema).build();\n\n        // 2. ExecutionInput with profileExecution(true) + chaining flag.\n        final DataLoaderRegistry registry = new DataLoaderRegistry();\n        registry.register(\"nameLoader\", DataLoaderFactory.newDataLoader(nameLoader));\n\n        final ExecutionInput input = ExecutionInput.newExecutionInput()\n            .query(\"{ users { id name } }\")\n            .dataLoaderRegistry(registry)\n            .profileExecution(true)\n            .graphQLContext(b -\u003e b.put(DataLoaderDispatchingContextKeys.ENABLE_DATA_LOADER_CHAINING, chaining))\n            .build();\n\n        // 3. Execute and read the ProfilerResult.\n        final ExecutionResult result = graphQL.execute(input);\n        if (!result.getErrors().isEmpty()) {\n            System.err.println(\"Query errors: \" + result.getErrors());\n            System.exit(1);\n        }\n        final ProfilerResult profile = input.getGraphQLContext().get(ProfilerResult.PROFILER_CONTEXT_KEY);\n        if (profile == null) {\n            System.err.println(\"ProfilerResult is null — profileExecution(true) was not honored\");\n            System.exit(2);\n        }\n\n        // 4. Print the four collections that demonstrate the bug.\n        System.out.println(\"dataLoaderChainingEnabled = \" + profile.isDataLoaderChainingEnabled());\n        System.out.println(\"fieldsFetched             = \" + profile.getFieldsFetched());           // populated  (fieldFetched is wired)\n        System.out.println(\"oldStrategyDispatchingAll = \" + profile.getOldStrategyDispatchingAll());// populated only when chaining=false\n        System.out.println(\"dataLoaderLoadInvocations = \" + profile.getDataLoaderLoadInvocations());// EMPTY: dataLoaderUsed has 0 call sites\n        System.out.println(\"dispatchEvents            = \" + profile.getDispatchEvents());          // EMPTY: batchLoadedOld/NewStrategy + manualDispatch all have 0 call sites\n    }\n\n    private record User(String id) {}\n}\n```","author":{"url":"https://github.com/Apelsinka223","@type":"Person","name":"Apelsinka223"},"datePublished":"2026-04-29T11:02:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4366/graphql-java/issues/4366"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e84bc491-4725-e29a-660e-8d6deafa9a87
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9604:1C41B3:913D3F:CD2628:6A62502C
html-safe-nonce14ffd8d68e0d9d97892f9dab7c98d3a0ab93c743725718e8d9199e525272a25a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjA0OjFDNDFCMzo5MTNEM0Y6Q0QyNjI4OjZBNjI1MDJDIiwidmlzaXRvcl9pZCI6IjQ3MDI0OTE0NjMyMDgzNDYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacef5a5cc807fa26475063d04ec96bfc7a28330f454a82f118ac38378f3602b285
hovercard-subject-tagissue:4349966925
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/graphql-java/graphql-java/4366/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e9d0b279c917900903121e922d6b6a1ef06fa214fd654cdf49c6ab8c6c02fb45/graphql-java/graphql-java/issues/4366
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e9d0b279c917900903121e922d6b6a1ef06fa214fd654cdf49c6ab8c6c02fb45/graphql-java/graphql-java/issues/4366
og:image:altDescribe the bug The Profiler interface declares 9 methods. In graphql-java-25.0 and on master as of today, 4 of them have zero call sites anywhere in the graphql-java codebase: Profiler.dataLoader...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameApelsinka223
hostnamegithub.com
expected-hostnamegithub.com
None77f5af7d0fa3843b1779a53f60ec016b3f962e46051fb05c2e9b608a8138eefb
turbo-cache-controlno-preview
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-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
released3ce7d369aae307e197872f810f80f3ed9051c78
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/issues/4366#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F4366
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F4366
Sign up https://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=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/issues/4366
Reloadhttps://github.com/graphql-java/graphql-java/issues/4366
Reloadhttps://github.com/graphql-java/graphql-java/issues/4366
Please reload this pagehttps://github.com/graphql-java/graphql-java/issues/4366
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 11 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Profiler: 4 of 9 interface methods have no call sites (v25.0 / master)https://github.com/graphql-java/graphql-java/issues/4366#top
Stalehttps://github.com/graphql-java/graphql-java/issues?q=state%3Aopen%20label%3A%22Stale%22
https://github.com/Apelsinka223
Apelsinka223https://github.com/Apelsinka223
on Apr 29, 2026https://github.com/graphql-java/graphql-java/issues/4366#issue-4349966925
linehttps://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L26
linehttps://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L47
linehttps://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L52
linehttps://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/Profiler.java#L56
Stalehttps://github.com/graphql-java/graphql-java/issues?q=state%3Aopen%20label%3A%22Stale%22
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

Viewport: width=device-width


URLs of crawlers that visited me.