Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

Sentry Performance tracing does not work when lazy is set to true #590

Closed

Description

@nieyuyao

Version

@nuxtjs/sentry: 6.0.3
nuxt: 2.14.2

Sentry configuration

sentry: {
    tracesSampleRate: 0.1,
    lazy: true, //  works if set true
    vueOptions: {
      trackComponents: true,
    }

What is actually happening?

Sentry browser tracing is broken if lazy is false. But it works if lazy is true. Is this to be expected or a bug?

Activity

  1. rchl commented on Jul 4, 2023

    @rchl
    Contributor

    When using lazy, the Sentry is loaded lazily (after the main app has loaded). So I would expect that it does affect performance tracing as it will miss some early events or won't be able to hook some things. But I'm not sure myself to which extent it affects tracing.

  2. nieyuyao commented on Jul 4, 2023

    @nieyuyao
    Author

    OK. It maybe a bug in 6.x 😂. Can I use version 7.x in nuxt@2 ?

  3. rchl commented on Jul 4, 2023

    @rchl
    Contributor

    This module uses Sentry 7.x -

    "@sentry/core": "^7.52.1",
    "@sentry/integrations": "^7.52.1",
    "@sentry/node": "^7.52.1",
    "@sentry/utils": "^7.52.1",
    "@sentry/vue": "^7.52.1",

  4. locked and limited conversation to collaborators on Jul 4, 2023
  5. converted this issue into a discussion #592 on Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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