Skip to content

Error not being shown in my dashboard on https://sentry.io #67630

Closed
@flazouh

Description

@flazouh

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

create a chrome extension and do this code in your content.js:

import * as Sentry from '@sentry/browser'

window.onload = async () => {
  Sentry.init({
    dsn: 'https://1ae31a2cb3cc2c9061c68e9757945511@o4506972859072512.ingest.us.sentry.io/4506972863725568',
    integrations: [
      Sentry.browserTracingIntegration(),
      Sentry.replayIntegration({
        maskAllText: false,
        blockAllMedia: false,
      }),
    ],
    // Performance Monitoring
    tracesSampleRate: 1.0, //  Capture 100% of the transactions
    // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
    tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
    // Session Replay
    replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
    replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
  })
}

Then throw an error manually with

<button
          type="button"
          onClick={() => {
            throw new Error('Sentry Test Error')
          }}
        >
          Break the world
</button>

Expected Result

see the error logged in the dashboard

Actual Result

Here is the jam where you can check the network tab, as you can see, the request are being sent to my sentry project.

https://jam.dev/c/96f0a77e-b565-4a88-a86d-cf81a8fc049c

Product Area

Issues

Link

https://sentry.io/organizations/fluent-pj/issues/

DSN

https://1ae31a2cb3cc2c9061c68e9757945511@o4506972859072512.ingest.us.sentry.io/4506972863725568

Version

No response

EDIT: one error randomly popped in the dashboard, but i've sent multiples

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions