Skip to content
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 Automatic Instrumentation - User Interaction Instrumentation #65

Open
Tracked by #63
sdzhong opened this issue Jul 25, 2023 · 1 comment
Open
Tracked by #63

Add Automatic Instrumentation - User Interaction Instrumentation #65

sdzhong opened this issue Jul 25, 2023 · 1 comment

Comments

@sdzhong
Copy link
Contributor

sdzhong commented Jul 25, 2023

Enable Automatic Instrumentation > User Interaction Instrumentation to avoid needing to manually instrument the checkout [android] transaction with ITransaction checkoutTransaction (ref: app/src/main/java/com/example/vu/android/empowerplant/MainFragment.java):

    public void checkout() {
        selectedStoreItems = this.adapter.getSelectedStoreItems();
        ITransaction checkoutTransaction = Sentry.startTransaction("checkout [android]", "http.client");
        checkoutTransaction.setOperation("http");
        Sentry.configureScope(scope -> scope.setTransaction(checkoutTransaction));

This presumes that the click on the checkout button begins a transaction as per the docs:

The UI instrumentation, once enabled, captures transactions for a set of different user interactions, which include clicks, scrolls, and swipes.

The transaction generated by the User Interaction Instrumentation should be comparable to the manually generated checkout [android] transaction, which includes a trace of 2 transactions and 3 issues, each of which should not be regressed. This transaction and its associated events are a way to demonstrate Distributed Tracing.

@sdzhong sdzhong mentioned this issue Jul 20, 2023
11 tasks
@stefanosiano
Copy link
Collaborator

stefanosiano commented Aug 2, 2023

the checkout() function is called in a menu of the activity. This is not supported by our instrumentation, yet.
There is an issue to track it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants