-
Notifications
You must be signed in to change notification settings - Fork 368
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
Remove use
alias for instrument
#3403
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.0 #3403 +/- ##
==========================================
+ Coverage 98.11% 98.12% +0.01%
==========================================
Files 1250 1243 -7
Lines 72401 72013 -388
Branches 3391 3376 -15
==========================================
- Hits 71033 70661 -372
+ Misses 1368 1352 -16 ☔ View full report in Codecov by Sentry. |
Can we consider leaving this one in? The maintenance cost seems to be very low -- it's one line, and I'm wondering if having this one line is the difference between a lot of customers smooth no-changes-needed upgrade from 1.x to 2.x? So it seems like a nice win, even if it's slightly "ugly" to keep both. |
@ivoanjo , I believe the alias was introduced for backward compatibility at 1.x for 0.x. and I think it is fair to consider keeping this considered the maintenance cost is low. However, I prefer to remove it because I believe it is also fairly easy to change them in user's configuration. |
I'll say that in my opinion no changes > easy changes ;) |
If people actually use |
I'm in favor of moving forward with this change. It may seem insignificant, but it does make our public interface and docs less confusing.
Users have to opt-in to a major release and will need to follow the upgrade guide. This change, along with all the other breaking changes shouldn't really surprise anyone. That being said, we should reasonably do what we can to ease the transition.
If it is relatively easy to tell if a customer is using the alias, I think this is a good idea. |
PR for the logging deprecation warning: #3438 |
889182b
to
4d40b2f
Compare
7bd0ddc
to
73902cd
Compare
2.0 Upgrade Guide notes
🚨 Breaking change: Remove
use
method for configuration, replace withinstrument
.For example
to