Skip to content

Extended attributes support for log4j-appender-2.17 #13836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

fandreuz
Copy link

Fixes #8354

@fandreuz fandreuz requested a review from a team as a code owner May 10, 2025 10:59
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label May 10, 2025
ExtendedAttributesBuilder nestedAttribute = ExtendedAttributes.builder();
Map<?, ?> nestedMap = (Map<?, ?>) value;
consumeAttributes(
consumer -> nestedMap.forEach((k, v) -> consumer.accept(k.toString(), v)),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I convert keys of nested maps to string via toString. What should we do if the key is not a string? Is this fine, or should we throw an exception?

@fandreuz
Copy link
Author

Waiting for #13834 to fix all build errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenTelemetry Log4j appender does not handle non string values
1 participant