spring-projects / spring-projects/spring-data-commons
Provide simple way of capturing repository invocation and its executing target.
@christophstrobl is already working on this.
Since Aug 4, 2025.
- Dominant language
- Java
- Stars
- 838
- Forks
- 730
- PR merge metrics
- No merged PRs in 30d
Description
Currently there is no simple way for users to figure out which method is actually called via the RepositoryMethodInvoker since the class does not offer any kind of logging.
We should consider either adding straight forward logging statements (trace maybe) or enhancing RepositoryMethodInvocationListener.RepositoryMethodInvocation to include information, like the fragment type, about the target method.
The logger might be easier to understand as it does not require additional setup. RepositoryMethodInvocationListener is not well documented nor trivial to configure requiring a BeanPostProcessor.
Knowing the configuration we could also consider logging a report containing the method mappings once at startup.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.