Skip to content

Commit

Permalink
justbetter#135 Update Browser SDK to 8.7.0 and enable INP, when traci…
Browse files Browse the repository at this point in the history
…ng is enabled
  • Loading branch information
amenk committed Jun 4, 2024
1 parent 9647503 commit 6b27130
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 6b27130

Please sign in to comment.