Skip to content

Commit 5136d1d

Browse files
committed
remove debug check
1 parent c523b21 commit 5136d1d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/nuxt/src/runtime/plugins/sentry.server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export default defineNitroPlugin(nitroApp => {
5757

5858
// @ts-expect-error - 'render:html' is a valid hook name in the Nuxt context
5959
nitroApp.hooks.hook('render:html', (html: NuxtRenderHTMLContext) => {
60-
const sentryClient = SentryNode.getClient();
61-
addSentryTracingMetaTags(html.head, sentryClient?.getOptions().debug);
60+
addSentryTracingMetaTags(html.head);
6261
});
6362
});
6463

packages/nuxt/src/runtime/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ export function extractErrorContext(errorContext: CapturedErrorContext | undefin
3434
*
3535
* Exported only for testing
3636
*/
37-
export function addSentryTracingMetaTags(head: NuxtRenderHTMLContext['head'], debug?: boolean): void {
37+
export function addSentryTracingMetaTags(head: NuxtRenderHTMLContext['head']): void {
3838
const metaTags = getTraceMetaTags();
3939

4040
if (metaTags) {
41-
if (debug) {
42-
logger.log('Adding Sentry tracing meta tags to HTML page:', metaTags);
43-
}
41+
logger.log('Adding Sentry tracing meta tags to HTML page:', metaTags);
4442
head.push(metaTags);
4543
}
4644
}

0 commit comments

Comments
 (0)