-
-
Notifications
You must be signed in to change notification settings - Fork 32
adding scope methods to sentry static class #179
Conversation
Codecov Report
@@ Coverage Diff @@
## master #179 +/- ##
============================================
+ Coverage 57.8% 58.11% +0.31%
- Complexity 532 552 +20
============================================
Files 73 73
Lines 2529 2617 +88
Branches 223 233 +10
============================================
+ Hits 1462 1521 +59
- Misses 958 978 +20
- Partials 109 118 +9
Continue to review full report at Codecov.
|
I'd like to record my thinking here for @fdrabek and @HazAT .
It looks even more like magic. What's happening under the hood that the ambient data propagates down? Also, not all methods are on The argument to do this in JS was that passing a cloujure was "too advance" for our users. That one never made much sense. There was no Instead of poluting the API I believe we should figure out a way to get this to work with |
True, no one requested it yet but the number of people potentially not updating because they can't simply string replace eventBuilder.withExtra(entry.getKey(), entry.getValue());
// with
Sentry.setExtra(entry.getKey(), entry.getValue()); is something that's hard to measure. Just one person writing could mean, a 100 users didn't even bother to write an issue and another 1000 users complety discarded the idea of upgrading. I agree with your side of adding more API is generally always bad I think we need to take the hit in order to make it simpler, even it's just for a few users. Also, those functions were so people don't need to even understand what a All things aside, I think it would make sense to have a general discussion about the unified API, specifically talking about what we've learned in the last 1-2 years about it. It's for sure we would make some things a bit different. |
📢 Type of change
📜 Description
adding scope methods to sentry static class
💡 Motivation and Context
making migration easier, otherwise one will need to call
Sentry.configureScope(...)
💚 How did you test it?
I'll do unit tests
📝 Checklist
🔮 Next steps