Skip to content

SSR tracing won't working #508

@arkhamvm

Description

@arkhamvm

What's wrong with my config?
SSR tracing won't working, so I separated DSN for easy debug.

Version

@nuxtjs/sentry: 7.0.4
nuxt: 2.15.8

Sentry configuration

  sentry: {
    dsn: true, // for canInitialize
    clientConfig: {
        dsn: process.env.SENTRY_CLIENT_DSN, // VueJS project
    },    
    serverConfig: {
      dsn: process.env.SENTRY_SERVER_DSN, // NodeJS project
      transport: makeNodeTransport,
    },
    lazy: false,
    disabled: false,
    tracing: {
      tracesSampleRate: 1.0,
      vueOptions: {
        tracing: true,
        tracingOptions: {
          hooks: ['mount', 'update'],
          timeout: 2000,
          trackComponents: true
        }
      },
      browserOptions: {}
    },
    config: {
      environment: 'codesandbox',
    },
  }

Reproduction Link

https://codesandbox.io/p/sandbox/elated-borg-9im5b7?file=%2Fnuxt.config.ts&selection=%5B%7B%22endColumn%22%3A17%2C%22endLineNumber%22%3A73%2C%22startColumn%22%3A17%2C%22startLineNumber%22%3A73%7D%5D

(I can provide access for trial sentry projects if needed)

Steps to reproduce

Load page, then move to about page

What is Expected?

Both client and server tracing is collected

What is actually happening?

Only client tracing is collected

image
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