-
Notifications
You must be signed in to change notification settings - Fork 850
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
Return AutoConfiguredOpenTelemetrySdkBuilder instead of the base type #6248
Return AutoConfiguredOpenTelemetrySdkBuilder instead of the base type #6248
Conversation
Build fails with binary incompatibility
I can't imagine why it could be binary breaking (as we return |
I believe this is a non-breaking change, because the compiler will generate the (prior) override (synthetic now) in addition to the (new) narrowed return type "override". I double checked this: before:
after:
my only hesitation looking at the above is that the (new) synthetic method doesn't contain the generic type info about the method parameter, but that should not affect method calls, only some fancy reflective metadata gathering |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6248 +/- ##
=========================================
Coverage 91.06% 91.06%
Complexity 5699 5699
=========================================
Files 621 621
Lines 16679 16679
Branches 1709 1709
=========================================
+ Hits 15188 15189 +1
Misses 998 998
+ Partials 493 492 -1 ☔ View full report in Codecov by Sentry. |
… for log processor customizer
a9210cf
to
12aee92
Compare
Thank a lot @trask for checking! I suppressed the check for this class (in the most narrow way I could come up with). LMK if there is a better way. |
Nit:
AutoConfiguredOpenTelemetrySdkBuilder.addLogRecordProcessorCustomizer
returned base typeAutoConfigurationCustomizer
instead of impl one breaking the return chaining.This PR fixes the return type.