-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
4.0.0 GA - Performance Monitoring #1151
Comments
The proposal for this API: Sentry.runTransaction("name", tx -> {
// some code
}); Where public static void runTransaction(String transactionName, Consumer<ITransaction> runnable) {
ITransaction transaction = startTransaction(transactionName);
try {
runnable.accept(transaction);
transaction.setStatus(SpanStatus.OK);
} catch (Throwable e) {
transaction.setThrowable(e);
transaction.setStatus(SpanStatus.INTERNAL_ERROR);
} finally {
transaction.finish();
}
} With such simple API we don't give a an option to set different status on error, but it can be a good enough tradeoff. |
Do we bind the transaction to the scope to integrations can find it? Seems like that could be done here, if we push a scope in there so it has its own isolated scope. That would work on Java but not on Android (global hub mode). We can add an overload that takes a configuration object later if we want to extend this API but I think by default we should push a scope and bind the transaction to it. Which remind me that we bind it automatically and that needs to be removed, or at least configurable, and default false. |
Please elaborate. Currently when |
@bruno-garcia can we close #1130 and use only this one? checkbox items will keep out of sync, I prefer a single source of truth. Or to remove the Android items from here |
Oh I just did it but realized that was for an alpha. @marandaneto I'll just add the 2 points from that issue in here with a note (for the alpha) so we can focus on those for the next milestone (Android Performance Alpha release) |
urgh, yeah also missed the alpha subtitle, thx |
@bruno-garcia what do you mean by |
@marandaneto I reworded it: Let's turn performance monitoring on on all our samples in this repo? |
Is there anything more we should clarify? |
Checked the check box 🥳 we're close eh |
We've GA'ed and everything that was required is done. Follow up tasks linked can be done on their own now. |
4.0.0 will GA the Java Performance API. That means both Android and Spring will have it, but spring includes also auto instrumentation.
Java main API:
Android:
1.0
.Spring:
Discussions
The text was updated successfully, but these errors were encountered: