getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

SolidJS sample error not captured #13456

Closed xehpuk closed 1 day ago

xehpuk commented 2 months ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/solid

SDK Version

8.26.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

Sentry.init({
    dsn: "https://3815660afd47917678b56f8790bdf2d2@o4507842697691136.ingest.de.sentry.io/4507843107160144",
    integrations: [
        Sentry.browserTracingIntegration(),
        Sentry.replayIntegration(),
    ],
    // Tracing
    tracesSampleRate: 1.0,
    // Session Replay
    replaysSessionSampleRate: 1.0,
    replaysOnErrorSampleRate: 1.0,
})

Steps to Reproduce

Follow the onboarding and click on the button that throws an error:

<button
  type="button"
  onClick={() => {
    throw new Error("Sentry Frontend Error");
  }}
>
  Throw error
</button>

Expected Result

The error shows up as an issue.

Actual Result

The error does not show up as an issue.

Clicking the button multiple times results in a "Rage Click" issue, so tracking seems to work in general.

andreiborza commented 2 months ago

Hi, thanks for writing in!

Could you please set debug: true in your init and paste the logs?

xehpuk commented 2 months ago
Sentry Logger [log]: Integration installed: InboundFilters
Sentry Logger [log]: Integration installed: FunctionToString
Sentry Logger [log]: Integration installed: BrowserApiErrors
Sentry Logger [log]: Integration installed: Breadcrumbs
Sentry Logger [log]: Global Handler attached: onerror
Sentry Logger [log]: Global Handler attached: onunhandledrejection
Sentry Logger [log]: Integration installed: GlobalHandlers
Sentry Logger [log]: Integration installed: LinkedErrors
Sentry Logger [log]: Integration installed: Dedupe
Sentry Logger [log]: Integration installed: HttpContext
Sentry Logger [log]: Integration installed: BrowserTracing
Sentry Logger [log]: Integration installed: Replay
Sentry Logger [log]: [Tracing] Starting sampled root span
  op: pageload
  name: / [REDACTED]/
  ID: 90bc8822e065bdb0
Sentry Logger [log]: [Tracing] Started span is an idle span
Sentry Logger [log]: [Measurements] Adding LCP 2
Sentry Logger [log]: [Measurements] Adding TTFB
Sentry Logger [log]: [Tracing] Adding & adjusting spans using Performance API
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: unloadEvent
  ID: 9d7a61353166dd37
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "unloadEvent" with ID 9d7a61353166dd37
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: domContentLoadedEvent
  ID: bfab442d3463b6ab
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "domContentLoadedEvent" with ID bfab442d3463b6ab
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: loadEvent
  ID: bc2e9095baa50bf3
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "loadEvent" with ID bc2e9095baa50bf3
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: connect
  ID: ab2c73e9b04d56d7
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "connect" with ID ab2c73e9b04d56d7
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: TLS/SSL
  ID: 9f61f7f7b97e97db
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "TLS/SSL" with ID 9f61f7f7b97e97db
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: cache
  ID: beaa07a5690763ba
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "cache" with ID beaa07a5690763ba
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: DNS
  ID: af192b9a6eaab9c6
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "DNS" with ID af192b9a6eaab9c6
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: request
  ID: 9867392a88f64717
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "request" with ID 9867392a88f64717
Sentry Logger [log]: [Tracing] Starting sampled span
  op: browser
  name: response
  ID: acf50b8895ed42f6
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "browser" span "response" with ID acf50b8895ed42f6
Sentry Logger [log]: [Tracing] Starting sampled span
  op: resource.link
  name: / [REDACTED]/assets/index-DJ4LCujG.css
  ID: b34cc31c4324570e
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "resource.link" span "/ [REDACTED]/assets/index-DJ4LCujG.css" with ID b34cc31c4324570e
Sentry Logger [log]: [Tracing] Starting sampled span
  op: resource.script
  name: / [REDACTED]/assets/index-CxN50Kss.js
  ID: 9608e0adfb6ee649
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "resource.script" span "/ [REDACTED]/assets/index-CxN50Kss.js" with ID 9608e0adfb6ee649
Sentry Logger [log]: [Tracing] Starting sampled span
  op: resource.other
  name: /favicon.ico
  ID: 8c8a9d4c575feba4
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "resource.other" span "/favicon.ico" with ID 8c8a9d4c575feba4
Sentry Logger [log]: [Tracing] Starting sampled span
  op: paint
  name: first-contentful-paint
  ID: 980f8478381be836
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "paint" span "first-contentful-paint" with ID 980f8478381be836
Sentry Logger [log]: [Measurements] Adding FCP
Sentry Logger [log]: [Tracing] Starting sampled span
  op: mark
  name: sentry-tracing-init
  ID: 8b1c4db9bcfee64c
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "mark" span "sentry-tracing-init" with ID 8b1c4db9bcfee64c
Sentry Logger [log]: [Tracing] Starting sampled span
  op: resource.img
  name: / [REDACTED]/assets/logos-DDAhQ8yg.png
  ID: 9ffa14102aca0de4
  parent ID: 90bc8822e065bdb0
  root ID: 90bc8822e065bdb0
  root op: pageload
  root description: / [REDACTED]/
Sentry Logger [log]: [Tracing] Finishing "resource.img" span "/ [REDACTED]/assets/logos-DDAhQ8yg.png" with ID 9ffa14102aca0de4
Sentry Logger [log]: [Measurements] Adding TTFB Request Time
Sentry Logger [log]: [Tracing] Adding an event to span: lcp
Sentry Logger [log]: [Tracing] Adding an event to span: ttfb
Sentry Logger [log]: [Tracing] Adding an event to span: fcp
Sentry Logger [log]: [Tracing] Adding an event to span: ttfb.requestTime
Sentry Logger [log]: [Measurements] Adding LCP Data
Sentry Logger [log]: [Tracing] Idle span "pageload" finished
Sentry Logger [log]: [Tracing] Finishing "pageload" root span "/ [REDACTED]/" with ID 90bc8822e065bdb0
Sentry Logger [log]: [Measurements] Adding measurements to transaction event {
  "lcp": {
    "value": 446,
    "unit": "millisecond"
  },
  "ttfb": {
    "value": 86,
    "unit": "millisecond"
  },
  "fcp": {
    "value": 277,
    "unit": "millisecond"
  },
  "ttfb.requestTime": {
    "value": 20,
    "unit": "millisecond"
  }
}
Sentry Logger [log]: Flushing outcomes...
Sentry Logger [log]: No outcomes to send
andreiborza commented 2 months ago

I don't really see anything out of the ordinary here.

Could you provide a stackblitz or a repo where I could try this? I've tried in my local solid project and I did get the error showing up.

AbhiPrasad commented 1 day ago

Closing this for clean-up. Please re-open if it still applies. Thank you!