Sentry for error tracing

Sentry for error tracing

weebySagar
Shopify Partner
24 1 5

Hello , I want to add sentry for error tracing in shopify remix , has anyone done it ?
I have configured according to the sentry docs but still its not working

Replies 4 (4)

MB-Law
Shopify Partner
5 0 2

Same issue here.

UncleBabyKern
Shopify Partner
7 0 4

If I recall correctly, error tracing was configured automatically for me via the sentry wizard, following the Sentry-Remix Guide. Having said that, I'm not sure what configuration I had to customize without digging into my commit history.

If you're still working on it, I'd be curious to see  Sentry code snippets you do have in your app. 

 

Though I have error tracing, I've had other issues specifically related to the remix app being embedded in an iframe in the Shopify admin.

There is a trail of discussion, open issues, and pending PRs but it seems that full support isn't yet available for things like session replay and user feedback failures in context to the iframe embed. For anyone curious about those threads, see Support recording content from cross-origin iframes #11858 and Allow manual screenshot upload in User Feedback widget #12938 on the sentry-javascript repository.

 

 

 

 

j-riv
Shopify Partner
12 1 0

Hey, I was wondering about your Hydrogen / Sentry setup.

 

When I initially setup Sentry I followed the same Sentry-Remix Guide you posted above, and it all worked. After upgrading to 2025.1.1 and adding Vite, I can no longer successfully deploy. I followed this Shopify Hydrogen Guide which uses the @sentry/cloudflare package on the server.

 

it works in dev, and it also builds fine. It just fails to deploy, also previewing locally will fail.

UncleBabyKern
Shopify Partner
7 0 4

Unfortunately, my app does not utilize Hydrogen, so I don't think my setup will be so relevant. Sorry, mate.