spring-projects / spring-projects/spring-modulith
[Feature request] Expose DefaultModulithObservationConvention
@odrotbohm is already working on this.
Since Feb 18, 2026.
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 222
- PR merge metrics
- No merged PRs in 30d
Description
I would like to add two more high-cardinality tags: bean name and class name of the invoked methods. I can see that Modulith has a package-private implementation: DefaultModulithObservationConvention which seems like something I want to extend.
This would make tracing a little bit easier at cost of these 2 new tags.
The default implementation has EventListener specific tag logic I would like to keep. If I define my own ModulithObservationConvention, I would have to copy/paste the default behavior in order to add my 2 new tags.
Would it be possible to make DefaultModulithObservationConvention public so users can extend it and add tags on top of the default behavior instead of replacing it or is there already a better way to add new tags on top of the existing ones?
StackOverflow thread: https://stackoverflow.com/questions/79800345/expanding-spring-modulith-tracing-tags/
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.