- 
                Notifications
    You must be signed in to change notification settings 
- Fork 326
Set service.version in ECS-reformatting #2603
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
Conversation
| 👋 @tobiasstadler Thanks a lot for your contribution! It may take some time before we review a PR, so even if you don’t see activity for some time, it does not mean that we have forgotten about it. Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming milestone. The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
See the NOTE in #2597 - your new code is currently not tested because we set the service.version through additional fileds.
Part of this PR should be to replace the service.version in theses custom fields with another field and test that both custom fields are added.
The validation already tests that service.version is set, so existing tests should still pass, but my JUL ECS-reformatting PR would fail, as it should, until I fix it.
| 
 Done 
 Done | 
| * This may mismatch automatically-discovered service version (if not configured). However, we only set it | ||
| * once when configuring our appender, so we can have only one service version. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because the auto-detection for different web apps happens after their logging setup is initialized, right?
[minor, feel free to ignore] I think the auto-detected version from a standalone jar (META-INF/MANIFEST.mf) would still be applied, right? Therefore, the variable configuredServiceVersion may be misleading as it could also be auto-discovered. Maybe rename to globalServiceVersion. But I see the same also applies to configuredServiceName so probably out of scope for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I agree. IIRC, it was really only the configured value when added and changed later to globally-auto-detected.
I'll change.
| run elasticsearch-ci/docs | 
| Thank You! | 
What does this PR do?
Fixes #2597
Checklist