-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Sentry Astro SDK #9182
Labels
Package: astro
Issues related to the Sentry Astro SDK
Comments
Lms24
added
Package: astro
Issues related to the Sentry Astro SDK
and removed
Type: Improvement
labels
Oct 5, 2023
Closed
See #7378 |
This was referenced Oct 6, 2023
Lms24
added a commit
that referenced
this issue
Oct 6, 2023
Add the boilerplate files for the new `@sentry/astro` package. Amongst the usual files, some noteworthy things include: * Bumped the Volta Node version from 16 to 18 for the entire monorepo. * Using Vitest instead of Jest, like we do in SvelteKit. ref #9182
Lms24
added a commit
that referenced
this issue
Oct 10, 2023
Adds `init` functions for the server and client side of the Astro SDK with tests. For now, most of what these functions do is set the SDK metadata. On the client side, we add BrowserTracing, similarly to Next/SvelteKit. ref #9182
This was referenced Oct 10, 2023
Lms24
added a commit
that referenced
this issue
Oct 13, 2023
This PR adds the `@sentry/astro` NPM publishing target so that we can publish the SDK with the next release. ref #9182
Lms24
added a commit
that referenced
this issue
Oct 13, 2023
Adding [specific keywords](https://docs.astro.build/en/reference/publish-to-npm/#integrations-library) to an NPM package makes them show up in [Astro's integration library page](https://astro.build/integrations/). This PR adds them to the Astro package.json. ref #9182
This was referenced Oct 13, 2023
Closing this as the initial alpha release is complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Statement
We're going to build an SDK for Astro! This is necessary to make Spotlight work properly with Astro and it will make Sentry compatible to be used within Astro projects.
Solution Brainstorm
The details remain TBD as we work through things but here's a rough outline of the necessary tasks:
Initial Tasks
@sentry/astro
package #9187sentryAstro
integration #9218As for publishing, we will publish the SDK as alpha/beta first, leaving us a bit of headroom to change public API if necessary and eventually promote it to stable.
Adding Astro as a Sentry Platform
@sentry/astro
SDK to release registry sentry-release-registry#128Stretch Goals / open ends
If we have time/feel it's necessary or nice to have for an SDK:
How to deal with other UI frameworks?
Given that Astro supports building UIs with a number of frontend frameworks (React, Svelte, Vue, etc), we might want to consider adding our respective UI framework SDKs to the project. However, I'd argue that this only makes sense in islands. For them, we can direct users in docs to use the respective Sentry SDK to unlock framework-specifc features. For example, component tracking or error handlers/boundaries. (Great timing: We just decoupled SDK intialization and Vue-specific instrumentation in #9180)
The text was updated successfully, but these errors were encountered: