SAP / SAP/cf-java-logging-support
TenantId not taken from Request
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 82
- Forks
- 52
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 17
Description
we want to use the field tenant_id in the MDC properties to add our tenant id to the logger. So far we set the tenant id to the MDC properties by ourselves in a own servlet filter. Would it be possible to add the tenant id automatically to the MDC properties from the Request, like it is already done for the correlation id? This would be very helpful for our applications
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.
Research direction
Start by locating the request-handling entry point that already copies the correlation id from the Request into MDC, then inspect how the servlet filter and MDC properties are wired. The change is complete when tenant_id is populated automatically from the Request in the same flow and the relevant behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100