-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(performance): create Interaction standalone spans on inp events #10709
feat(performance): create Interaction standalone spans on inp events #10709
Conversation
…hub.com:getsentry/sentry-javascript into egou/v7/feat/add-span-envelope-and-datacategory
…ns' of github.com:getsentry/sentry-javascript into egou/v7/feat/add-span-envelope-and-datacategory
startTimestamp: startTime, | ||
endTimestamp: startTime + duration, | ||
op: 'ui.interaction.click', | ||
name: entry.target?.nodeName, |
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.
I don't think nodeName
is correct. Need to update this to get some identifier for the target interaction element
}, | ||
release, | ||
environment, | ||
transaction: routeName, |
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.
Passing the origin route name of the interaction as transaction
…/v7/feat/create-interaction-spans-on-inp
…:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
…ns' of github.com:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
…hub.com:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
….com:getsentry/sentry-javascript into egou/v7/feat/add-sampling-rate-to-inp-spans
…hub.com:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
….com:getsentry/sentry-javascript into egou/v7/feat/add-sampling-rate-to-inp-spans
size-limit report 📦
|
…/v7/feat/create-interaction-spans-on-inp
…ns' of github.com:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
…ns' of github.com:getsentry/sentry-javascript into egou/v7/feat/create-interaction-spans-on-inp
….com:getsentry/sentry-javascript into egou/v7/feat/add-sampling-rate-to-inp-spans
…/v7/feat/create-interaction-spans-on-inp
…com:getsentry/sentry-javascript into egou/v7/profile-replay-and-user-for-inp
…P spans (#10849) Adds profile id, replay id, and user to standalone INP spans. User comes from the current scope. Replay Id is retrieved from the relay integration module and calling getReplayId(). Profile Id is retrieved from getting the active transaction at the time of the interaction Since profile id isn't added to the transaction until the transaction ends, we need to hold onto a reference to the transaction instead of trying to grab the profile id right away
…, profile id, and user. Updates INP spans to check for sampling rate, similar to transactions. Also Adds profile id, replay id, and user to standalone INP spans. User comes from the current scope. Replay Id is retrieved from the relay integration module and calling getReplayId(). Profile Id is retrieved from getting the active transaction at the time of the interaction Since profile id isn't added to the transaction until the transaction ends, we need to hold onto a reference to the transaction instead of trying to grab the profile id right away
…/v7/feat/create-interaction-spans-on-inp
small note for the next time, please make sure to squash and merge! (we sadly cannot disallow merge commits for now because we need it for gitflow 😬 ) |
Creates standalone span when
onINP
is triggered, and sends the span to sentry. AnInteractionRouteNameMapping
is maintained to get the origin route name of the candidate INP span. The mapping is capped at 10 entries to minimize memory.Requires the following PRs
#10702
#10704
#10706