Skip to content

Custom prefix for attributes from logback MDC #9506

@SHaaD94

Description

@SHaaD94

Is your feature request related to a problem? Please describe.

Then I use MDC while sending logs, I expect to see the attributes delivered as is to the end system. Instead prefix logback.mdc. is being attached to all such keys.
image

Describe the solution you'd like

I would like to have this prefix parameterized with logback.mdc. as default value. Parameter name could be something like mdcAttributesPrefix.

Describe alternatives you've considered

I could probably drop this prefix on centralized collector side/ingesting side, but it could be done on client side

Additional context

Would be happy to raise a PR with such change.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeRequest makes sense, maintainers probably won't have time, contribution would be welcomeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions