-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[mdatagen] Improve validation for attribute enabled
field
#13921
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
[mdatagen] Improve validation for attribute enabled
field
#13921
Conversation
Resource attributes now require an explicit `enabled` field in metadata.yaml files, while regular attributes are prohibited from having this field. This improves validation and prevents configuration errors.
6d92750
to
04bb6d9
Compare
Failing contrib tests catch missing enabled field on the resource attributes. I'll fix them there |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (20.00%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #13921 +/- ##
==========================================
- Coverage 91.68% 91.66% -0.02%
==========================================
Files 652 652
Lines 42506 42516 +10
==========================================
+ Hits 38972 38973 +1
- Misses 2728 2734 +6
- Partials 806 809 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
If enabled is unset in metadata.yaml it's defaulted to false. This commit doesn't change any behavior, it only unblocks the stricter validation open-telemetry/opentelemetry-collector#13921 by setting the false value explicitly Likely the enabled fields are missed by mistake here. If so, they should be explicitly fixed separately.
Submitted a PR to fix contrib tests open-telemetry/opentelemetry-collector-contrib#43085 |
If `enabled` is unset in metadata.yaml defaults to false. This commit doesn't change any behavior, it only unblocks the stricter validation open-telemetry/opentelemetry-collector#13921 by setting the false value explicitly. Likely the enabled fields are missed by mistake here. If so, they should be explicitly fixed separately, cc (code owners of the effected components) @nslaughter, @celian-garcia, @ishleenk17, @Caleb-Hurshman, @mrsillydog.
3484f81
Resource attributes now require an explicit
enabled
field in metadata.yaml files, while regular attributes are prohibited from having this field. This improves validation and prevents configuration errors.Brought from discussion in #13900
Fixes #12722