Skip to content

In SSR side with Latest version (7.1.10) with tracing option is crashed #546

@buglavecz

Description

@buglavecz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions