Skip to content

Allow excluding Logback MDC attributes from being copied #14925

@cfredri4

Description

@cfredri4

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

I use OpenTelemetryAppender and configure it to capture all MDC attributes since I have different MDC attributes on my many services.

But I have trace id and span id on the MDC which means they now get exported twice.

Describe the solution you'd like

E.g. OpenTelemetryAppender.setExcludeMdcAttributes("traceId,spanId")

Describe alternatives you've considered

No response

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions