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 user interaction tracing #2753

Closed
krystofwoldrich opened this issue Jan 16, 2023 · 3 comments · Fixed by #2865
Closed

Add user interaction tracing #2753

krystofwoldrich opened this issue Jan 16, 2023 · 3 comments · Fixed by #2865

Comments

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Jan 16, 2023

Description

In a similar way to the sentry-cocoa the RN SDK could create spans/transactions for user interactions.

For basic touch/click we can use the already existing implementation for collection touch breadcrumbs.

This might not be useful at the moment if we want only interactions that course some API calls, and changes in the app. We can make use of the gesture responder system of RN. It doesn't resolve the gestures, but gives back raw information about the number of touches, and generates touch id, position, velocity etc.

  • onStartShouldSetResponder
  • onMoveShouldSetResponder

To recognize gestures such as pinch-to-zoom, swipe left, right... we would need to use native implementation or integrate with a library.

@AbhiPrasad
Copy link
Member

@marandaneto marandaneto moved this from Needs Discussion to Backlog in Mobile & Cross Platform SDK Jan 27, 2023
@krystofwoldrich
Copy link
Member Author

@AbhiPrasad Does the browser SDK send the user interaction transaction even if no spans are attached?
https://github.com/getsentry/sentry-javascript/blob/21ab26bd2b93e6ea700f668375c39c473aba755c/packages/tracing/src/browser/browsertracing.ts#L341

The mobile SDKs are only sending the user interaction transactions when spans are attached.

@AbhiPrasad
Copy link
Member

The user interaction transactions for browser are still experimental, so there's some behavior that needs to be fixed.

I think there's some more work that needs to be done so that the browser UI transactions follow https://develop.sentry.dev/sdk/performance/ui-event-transactions/.

@0Calories is leading work into INP/user interaction transactions - maybe he can help with the convos here

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

Successfully merging a pull request may close this issue.

3 participants