Skip to content

Commit

Permalink
Enable INP when tracing is enabled (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
amenk authored Jun 6, 2024
1 parent 9647503 commit b06606a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Block/SentryScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class SentryScript extends Template
{
const CURRENT_VERSION = '7.39.0';
const CURRENT_VERSION = '8.7.0';

/**
* SentryScript constructor.
Expand Down
4 changes: 3 additions & 1 deletion view/frontend/templates/script/sentry.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ if (typeof Sentry !== 'undefined') {
environment: '<?= $block->escapeHtml(trim($block->getEnvironment())) ?>',
integrations: [
<?php if ($block->isTracingEnabled()): ?>
new Sentry.BrowserTracing(),
Sentry.browserTracingIntegration({
enableInp: true,
}),
<?php endif ?>
<?php if ($block->useSessionReplay()): ?>
new Sentry.Replay({
Expand Down

0 comments on commit b06606a

Please sign in to comment.