-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
feat: Add addToTransactions to Attachment #1191
Conversation
Add extra parameter addToTransaction to attachment, which specifies if the SDK adds it to transactions or not. The default is false. Fixes GH-1185
@@ -377,6 +377,21 @@ public void captureSession(final @NotNull Session session, final @Nullable Objec | |||
return sentryId; | |||
} | |||
|
|||
private List<Attachment> filterForTransaction(List<Attachment> attachments) { |
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.
M: for nonprimitive types, lets always add final @NotNull
or final @Nullable
a linter is on its way if we work together on https://github.com/getsentry/sentry-java/pull/1137/files#r548151954 :)
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.
2 minor comments but other than that LGTM
48c50de
to
5ac3bb9
Compare
Codecov Report
@@ Coverage Diff @@
## main #1191 +/- ##
============================================
+ Coverage 74.70% 74.76% +0.06%
- Complexity 1662 1669 +7
============================================
Files 174 174
Lines 5851 5866 +15
Branches 572 574 +2
============================================
+ Hits 4371 4386 +15
Misses 1216 1216
Partials 264 264
Continue to review full report at Codecov.
|
📜 Description
Add extra parameter addToTransaction to attachment, which specifies if the SDK adds
it to transactions or not. The default is false.
💡 Motivation and Context
Fixes GH-1185
💚 How did you test it?
Unit tests.
📝 Checklist
🔮 Next steps