-
Notifications
You must be signed in to change notification settings - Fork 941
make getInstrumentationConfig non-null #7954
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
make getInstrumentationConfig non-null #7954
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7954 +/- ##
============================================
- Coverage 90.11% 90.10% -0.01%
+ Complexity 7463 7462 -1
============================================
Files 834 834
Lines 22586 22585 -1
Branches 2240 2239 -1
============================================
- Hits 20353 20351 -2
Misses 1532 1532
- Partials 701 702 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jkwatson
left a comment
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.
👍🏽
|
As @trask mentioned in a duplicate PR, this is against the spec. However, as this comment mentioned, we're ok with this because its an incubating module. Should reconcile the spec or the code before stabilizing. Tracking in #7958 |
Fixes open-telemetry/opentelemetry-java#7958 ## Changes While working on Java, it has turned out to be more convenient to work with empty config objects rather than null/nil. - null requires an explicit if, making the code more verbose - it doesn't matter if the `.instrumentation` is missing or is empty, which is a different question than "is declarative config used") * [x] Related issues: open-telemetry/opentelemetry-java#7927 (comment) * [ ] Related [OTEP(s)](https://github.com/open-telemetry/oteps) # * [x] Links to the prototypes (when adding or changing features): open-telemetry/opentelemetry-java#7954 * [ ] [`CHANGELOG.md`](https://github.com/open-telemetry/opentelemetry-specification/blob/main/CHANGELOG.md) file updated for non-trivial changes * [ ] [Spec compliance matrix](https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix/template.yaml) updated if necessary --------- Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com> Co-authored-by: Jack Berg <34418638+jack-berg@users.noreply.github.com> Co-authored-by: Carlos Alberto Cortez <calberto.cortez@gmail.com>
See #7927 (comment)
Spec PR: open-telemetry/opentelemetry-specification#4817