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

fix: block Sentry Replay for table class #2347

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

HipsterBrown
Copy link
Contributor

Description

As I was reading through the module creation docs, I noticed that switching tabs for each supported programming language has a noticeable delay. When I traced the performance of that feature using the browser devtools, much of the time is taken up by the JavaScript for the Sentry Replay monitor. This is a known issue:

There's a known performance issue that happens when replays with many DOM mutations are recorded. It generally occurs when rendering large data grids. We're working on a fix, but in the meantime we recommend you use the blocking feature to avoid recording large mutations which can degrade performance for your customers.

Following their recommendation to use the blocking feature of their SDK, I updated the configuration to block the .table class surrounding this tab nav feature.

Before:
slow-docs-tabs.webm

After:
fast-docs-tabs.webm

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Dec 20, 2023
Comment on lines +13 to +19
integrations: [
new Sentry.Replay({
block: ['.table'],
maskAllText: false,
blockAllMedia: false,
}),
],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The spacing changes and other formatting happened automatically by my editor. Let me know if you'd like me to revert those changes.

@HipsterBrown HipsterBrown force-pushed the nhehr/block-sentry-table-replay branch from 00fd82f to 4fb8a39 Compare December 20, 2023 19:24
Copy link
Collaborator

@npentrel npentrel left a comment

Choose a reason for hiding this comment

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

Thank you so much! This is great!

@viambot
Copy link
Member

viambot commented Dec 20, 2023

You can view a rendered version of the docs from this PR at https://docs-test.viam.dev/2347

@HipsterBrown HipsterBrown merged commit 5266afc into main Dec 20, 2023
11 checks passed
@HipsterBrown HipsterBrown deleted the nhehr/block-sentry-table-replay branch December 20, 2023 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to build This pull request is marked safe to build from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants