Skip to content

Don't de-dot ecs.version #118

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

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Don't de-dot ecs.version #118

merged 2 commits into from
Jun 13, 2024

Conversation

xrmx
Copy link
Member

@xrmx xrmx commented Jun 12, 2024

While at it test on modern python versions.

Closes #88

@@ -209,7 +209,12 @@ def format_to_ecs(self, record):
continue
value = extractors[field](record)
if value is not None:
merge_dicts(de_dot(field, value), result)
# special case ecs.version that should not be de-dotted
Copy link
Member Author

@xrmx xrmx Jun 12, 2024

Choose a reason for hiding this comment

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

It looks like log.level survives de_dot without special cases apparently but I can't see where it gets a different treatment than the rest

Copy link
Contributor

Choose a reason for hiding this comment

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

weird! 🤔

@xrmx xrmx requested a review from basepi June 12, 2024 16:07
@@ -209,7 +209,12 @@ def format_to_ecs(self, record):
continue
value = extractors[field](record)
if value is not None:
merge_dicts(de_dot(field, value), result)
# special case ecs.version that should not be de-dotted
Copy link
Contributor

Choose a reason for hiding this comment

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

weird! 🤔

@xrmx xrmx merged commit e3875fc into elastic:main Jun 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update ecs.version to match spec
2 participants