-
-
Couldn't load subscription status.
- Fork 1.7k
Official Sentry Astro SDK #7378
-
https://github.com/withastro/astro
Add Sentry support for Astro -@sentry/astro
All the goodies you expect out of a Sentry SDK:
- Error monitoring and crash reporting OOB
- Performance monitoring support
- Trace propogation of sentry-trace/baggage
- Release health support
- Automatic source map uploading (using our official Vite Plugin)
All powered by our browser SDK @sentry/browser and our Node JS SDK (@sentry/node). We also need the option to use the framework specific SDKs like @sentry/react if someone is using a specific frontend framework.
Please comment/react to this post if you would like to see this - that helps us prioritize this work.
Beta Was this translation helpful? Give feedback.
All reactions
-
🚀 7 -
👀 2
Replies: 2 comments 3 replies
-
Yes! Also, I'm sure the Astro team would be interested. 🙂
(don't forget automated source map uploads)
Beta Was this translation helpful? Give feedback.
All reactions
-
Added to the list, thanks for the shout-out!
Beta Was this translation helpful? Give feedback.
All reactions
-
@AbhiPrasad Hey wait, since Astro uses Vite under the hood, wouldn't this work in Astro's config?
vite: { plugins: [ sentryVitePlugin({ org: 'xyz', project: 'abc', include: './dist', authToken: process.env.SENTRY_AUTH_TOKEN, }),
Beta Was this translation helpful? Give feedback.
All reactions
-
Yup this worked for me on my personal project, only thing you might have to fiddle around with is include if you have a more custom setup.
Beta Was this translation helpful? Give feedback.
All reactions
-
Still, might be nice to have (as a lower priority) an Astro integration to just tack on via astro.config.mjs.
export default defineConfig({ output: 'server', integrations: [sentry({ dsn: '...', /* other config settings */ })], });
In my case, I've got an Astro project with SST dropped in, so it might be more complicated where to point include. I'll have to ponder on it.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1