File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
packages/nuxt/src/runtime Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments