Skip to content

feat(astro): Add server and client SDK init functions #9189

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

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Oct 6, 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.

Contrary to our other SDKs, we'll not hard-require users to call these functions but internally call them in the Sentry Astro integration (not to be mistaken for a Sentry SDK Integration) which users will add to their Astro config. For this internal call, we'll apply sensible defaults. Users can manually override the internal SDK init by adding sentry.(client|server).config.ts files.

ref #9182

@Lms24 Lms24 self-assigned this Oct 6, 2023
Base automatically changed from lms/astro-boilerplate-package to develop October 6, 2023 15:34
package.json Outdated
@@ -34,12 +34,13 @@
"yalc:publish": "lerna run yalc:publish"
},
"volta": {
"node": "16.19.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, thinking about this, can we do this in a separate PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this was already merged with #9187 :(
(this PR still needs a rebase)

I agree it would have been better to split this into a separate PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right, well whatever, not a big deal ;)

@Lms24 Lms24 force-pushed the lms/feat-astro-init branch from 0e4b107 to cdf46ec Compare October 9, 2023 10:56
@Lms24 Lms24 requested review from mydea and AbhiPrasad October 9, 2023 10:58
@Lms24 Lms24 merged commit 960484f into develop Oct 10, 2023
@Lms24 Lms24 deleted the lms/feat-astro-init branch October 10, 2023 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants