-
-
Notifications
You must be signed in to change notification settings - Fork 444
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
Add an overload for startTransaction
that sets the created transaction to the Scope
#1313
Conversation
…ion to the Scope Fixes #1252
The number of |
Codecov Report
@@ Coverage Diff @@
## main #1313 +/- ##
=========================================
Coverage 75.81% 75.82%
- Complexity 1796 1803 +7
=========================================
Files 183 183
Lines 6227 6233 +6
Branches 622 623 +1
=========================================
+ Hits 4721 4726 +5
- Misses 1227 1229 +2
+ Partials 279 278 -1
Continue to review full report at Codecov.
|
@Override | ||
public @NotNull ITransaction startTransaction( | ||
final @NotNull TransactionContext transactionContext, | ||
final @Nullable CustomSamplingContext customSamplingContext) { | ||
final @Nullable CustomSamplingContext customSamplingContext, | ||
final boolean setOnScope) { |
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.
we always use the wording "bound to the scope" or "bind it to the scope", because of that, should we we call it bindToScope
or smt similar? maybe @bruno-garcia has opinions
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.
bindToScope
sounds good. Thanks for suggestion!
I'd love Kotlin default params here, I generally agree but I don't see any more field coming to play, I'd merge as it is right now and if we get to add more, then yeah. |
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.
left a comment about the param naming, other than that, LGTM
@maciejwalkowiak too late but I guess we could have migrated the Android bits too, using |
📜 Description
Add an overload for
startTransaction
that sets the created transaction to the Scope💡 Motivation and Context
Fixes #1252
💚 How did you test it?
Unit tests.
📝 Checklist
Breaking change: methods that previously did not set transaction on the scope, now do.