spring-projects / spring-projects/spring-boot

Allow structured 'json.context.prefix' to apply to MDC and not key/value pairs

Open
#45,641 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: pending-design-work type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

See https://github.com/spring-projects/spring-boot/issues/45218#issuecomment-2898258549

Offering a general purpose property is a little tricky since Logback and Log4J2 have different feature sets.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked issue and referenced comment to understand the intended behavior for structured json.context.prefix. Trace the relevant Spring Boot logging configuration entry points for MDC and key/value pairs, and compare the available behavior in Logback and Log4J2. Done means the prefix applies to MDC without incorrectly applying to key/value pairs, with behavior documented or tested for both implementations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.