sentry-module: In SSR side with Latest version (7.1.10) with tracing option is crashed

Version

@nuxtjs/sentry: 7.1.10 nuxt: 2.16.3

Sentry configuration

not working:

sentry: {
        dsn: process.env.SENTRY_DSN_VUE,
        config: {
            debug: true,
            normalizeDepth: 6,
            release: `xy@${process.env.COMMIT_HASH || (process.env.NODE_ENV === 'development' ? 'local' : 'unknown')}`,
        },

        clientConfig: {
            allowUrls: ['xy.local','xy.com'],
        },
        clientIntegrations: {
            CaptureConsole: {
                levels: ['error']
            },
            ReportingObserver: {
                types: ['crash']
            }
        },
        serverIntegrations: {
            CaptureConsole: {
                levels: ['error']
            }
        },
        tracing: {
            tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.00001 : 1,
            vueOptions: {
                tracing: true,
                hooks: ['activate', 'mount', 'update'],
                timeout: 2000,
                trackComponents: true
            },
            browserTracing: {
                tracePropagationTargets: ['xy.local', 'xy.com', /^\//],
            }
        },
    },

working:

sentry: {
        dsn: process.env.SENTRY_DSN_VUE,
        config: {
            debug: true,
            normalizeDepth: 6,
            release: `xy@${process.env.COMMIT_HASH || (process.env.NODE_ENV === 'development' ? 'local' : 'unknown')}`,
        },

        clientConfig: {
            allowUrls: ['xy.local','xy.com'],
        },
        clientIntegrations: {
            CaptureConsole: {
                levels: ['error']
            },
            ReportingObserver: {
                types: ['crash']
            }
        },
        serverIntegrations: {
            CaptureConsole: {
                levels: ['error']
            }
        },
       /* tracing: {
            tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.00001 : 1,
            vueOptions: {
                tracing: true,
                hooks: ['activate', 'mount', 'update'],
                timeout: 2000,
                trackComponents: true
            },
            browserTracing: {
                tracePropagationTargets: ['xy.local', 'xy.com', /^\//],
            }
        },*/
    },

Reproduction Link

Steps to reproduce

What is Expected?

no error

What is actually happening?

image

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 34 (13 by maintainers)

Most upvoted comments

Thanks for helping find out what the issue is.

Released in https://github.com/nuxt-community/sentry-module/releases/tag/v7.1.11

yess. 🎉 working fine. the aliases is already good console.info result:

    '~@sentry/utils': 'C:/projects/xxx/client/node_modules/@sentry/utils/esm/index.js',
    '~@sentry/vue': 'C:/projects/xxx/client/node_modules/@sentry/vue/esm/index.js',
    '~@sentry/tracing': 'C:/projects/xxx/client/node_modules/@sentry/tracing/esm/index.js'

In production the project run under docker container, there is no pick up, because there in upper level node_modules folder is “not exists”. This is the reason, that in prod mode workink fine. I think…