Skip to content

Conversation

@k-fish
Copy link
Member

@k-fish k-fish commented Dec 12, 2022

Summary

This adds the 'interactions' to our frontend automatically on click. This will help capture a lot of performance behaviour in SPA's that currently isn't covered, but can be a core part of user journeys (eg. settings modals, paywalls etc. are all on-page examples of what might get captured by click interactions).

Caveats:

  • For now our idleTimeout of 5000ms will also apply so for the first interactions we may capture more spans than we should to cover an interaction, as well as the fact that other user behaviour (eg. scroll) isn't currently captured, but can create spans and reset the idleTimeout.
  • We probably want to add click-targets for click interactions to the interaction themselves to help identify the source of the click.

Other:

  • Sets the rate at 1/100th our sample rate (1% right now) for interactions to keep it low, we can always bump or trend down the number later.

This adds the 'interactions' to our frontend automatically on click.
This will help capture a lot of performance behaviour in SPA's that
currently isn't covered, but can be a core part of user journies (eg.
settings modals, paywalls etc. are all on-page examples of what might
get captured by click interactions).

Caveats:
- For now our idleTimeout of 5000ms will also apply so for the first interactions we may capture more spans than we should to cover an interaction, as well as the fact that other user behaviour (eg. scroll) isn't currently captured, but can create spans and reset the idleTimeout.
- We probably want to add click-targets for click interactions to the interaction themselves to help identify the source of the click.

Other:
- Sets the rate at 1/100th our sample rate (1% right now) for interactions to keep it low, we can always bump or trend down the number later.
Copy link
Contributor

@0Calories 0Calories left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👌

@AbhiPrasad
Copy link
Member

Sets the rate at 1/100th our sample rate (1% right now) for interactions to keep it low, we can always bump or trend down the number later.

I just realized, this might cause issues since we are applying dynamic sampling anyway, should we slightly bump it up?

@k-fish
Copy link
Member Author

k-fish commented Dec 14, 2022

@AbhiPrasad I'd rather keep it on the low end for now in case there are any problems, we can always bump it in another PR.

@k-fish k-fish merged commit 2586399 into master Dec 14, 2022
@k-fish k-fish deleted the ref/perf-add-interaction-transactions branch December 14, 2022 14:51
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants