Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt SDK - nothing sent to sentry, using startSpan don't send to "performance" #13523

Open
3 tasks done
samulefevre opened this issue Aug 29, 2024 · 1 comment
Open
3 tasks done
Assignees
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK

Comments

@samulefevre
Copy link

samulefevre commented Aug 29, 2024

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

8.27.0

Framework Version

Nuxt 3.13.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

(I use tracesSampleRate: 1.0)
Don't send anythings to sentry, startSpan and captureException. I use debug, no errors.

// public/instrument.server.mjs
import * as Sentry from "@sentry/nuxt";

Sentry.init({
  dsn: process.env.NUXT_PUBLIC_SENTRY_DSN,
  enabled: true,
  debug: true,
  tracesSampleRate: 1,
  environment: process.env.NODE_ENV,
});

I use in cloudflare workers, maybe it is the problem (don't know if this version is edge compatible). I use it in this project : https://github.com/samulefevre/nuxthub-starter

Have used this for setup: https://docs.sentry.io/platforms/javascript/guides/nuxt

Steps to Reproduce

return await startSpan(
    {
      name: 'updateAvatar Controller',
    },
    async () => {
// code here
})

Expected Result

Send to sentry dashboard in Performance tabs

Actual Result

No result in "Performance"

@github-actions github-actions bot added the Package: nuxt Issues related to the Sentry Nuxt SDK label Aug 29, 2024
@samulefevre samulefevre changed the title Nuxt SDK - using startSpan don't send to "performance" Nuxt SDK - nothing sent to sentry, using startSpan don't send to "performance" Aug 29, 2024
@Lms24
Copy link
Member

Lms24 commented Aug 30, 2024

HI @samulefevre thanks for writing in! Cloudflare workers might be the problem here, you're right. @sentry/nuxt is still in alpha so it's likely that there are issues. Generally, cloudflare in combination with meta framework SDKs is something we're still working on figuring out. Gonna cc @s1gr1d when she's back to take a quick look.

@s1gr1d s1gr1d self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK
Projects
Status: No status
Development

No branches or pull requests

3 participants