-
-
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
Improve start transaction overloads #2964
Conversation
@@ -793,15 +780,16 @@ public static void endSession() { | |||
* @param name the transaction name | |||
* @param operation the operation | |||
* @param description the description | |||
* @param bindToScope if transaction should be bound to scope | |||
* @param transactionOptions options for the transaction | |||
* @return created transaction | |||
*/ | |||
public static @NotNull ITransaction startTransaction( | |||
final @NotNull String name, | |||
final @NotNull String operation, | |||
final @Nullable String description, |
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.
Do we wanna keep this overload that allows passing in a description
?
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.
yep, I think I'd keep it as description is quite popular to set, and we also use it for indexing spans in starfish, so it's an important field
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Improve start transaction overloads ([#2964](https://github.com/getsentry/sentry-java/pull/2964)) If none of the above apply, you can opt out of this check by adding |
Not quite sure we wanna take on |
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.
LGTM, thanks! still needs a changelog entry though
yeah, I think it's fine to skip this one, it's also just 5 overloads there, not that bad |
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
ff784c6 | 388.51 ms | 461.90 ms | 73.39 ms |
6684058 | 414.76 ms | 511.46 ms | 96.70 ms |
db8763d | 386.60 ms | 453.66 ms | 67.06 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
ff784c6 | 1.72 MiB | 2.26 MiB | 550.22 KiB |
6684058 | 1.72 MiB | 2.26 MiB | 550.19 KiB |
db8763d | 1.72 MiB | 2.26 MiB | 550.22 KiB |
Codecov ReportAll modified lines are covered by tests ✅
... and 1 file with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
📜 Description
Remove
startTransaction
overloads that can be replaced by passingTransactionOptions
.💡 Motivation and Context
Closes #2754
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps