Skip to content

feat(nuxt): Log when adding HTML trace meta tags #16044

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Apr 14, 2025

Logging the tracing meta tags makes debugging things like this easier.

@s1gr1d s1gr1d requested review from Lms24, mydea and lforst April 14, 2025 11:38
Comment on lines 42 to 45
consoleSandbox(() => {
// eslint-disable-next-line no-console
console.log('[Sentry] Adding Sentry tracing meta tags to HTML page:', metaTags);
});
Copy link
Member

Choose a reason for hiding this comment

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

m: can we use logger instead? then we don't need to worry about the sandbox

@s1gr1d s1gr1d requested a review from Lms24 April 14, 2025 12:21
Comment on lines 41 to 43
if (debug) {
logger.log('Adding Sentry tracing meta tags to HTML page:', metaTags);
}
Copy link
Member

Choose a reason for hiding this comment

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

l: I think I caused this confusion in our offline convo: We don't even need the debug flag check here because the logger won't emit anything unless people init the SDK with debug: true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants