-
-
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
feat(astro): Add Astro 5 support #14613
Conversation
"withastro", | ||
"astro-component", | ||
"astro-integration", | ||
"sentry", | ||
"apm" | ||
], | ||
"keywords": ["withastro", "astro-component", "astro-integration", "sentry", "apm"], | ||
"author": "Sentry", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=18.14.1" | ||
}, | ||
"type": "module", | ||
"files": [ | ||
"/build" | ||
], | ||
"files": ["/build"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are just auto-format changes
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Maybe we can delete the .vscode folder in the test though
size-limit report 📦
|
This PR adds support for Astro 5 and an E2E test app for Astro 5 with the new server islands feature.
I tested server islands and found out that we emit a new
http.server
transaction for the island-specific additional http requests. Which is generally good IMO, given that server island requests are routed to the automatically generated/_server-island/[name]
Astro endpoint.Why are island requests not trace-connected?
The unfortunate part is that the request made from the browser to the island endpoint on the server is not connected to the same trace as the previous pageload. The reason for this is that the island request is optimized by Astro to be made as early as possible:
IIUC
as="fetch"
correctly, this preloads the request and no new request is made for the actualfetch()
call. Ourpageload
transaction even includes aresource.link
span for the request. However, given thefetch()
request isn't really made, we can't attach headers or record anhttp.client
span for it.IMHO there is also a "good" part to this: Usually, Astro server islands are supposed to be used on statically rendered pages. So the traceId that is currently injected into the
<meta>
tags stays constant across all page loads. Meaning if the server endpoint requests were also connected to this trace, it would further blow up the transactions in the trace.Long term, we ideally don't add a
<meta>
tag to statically generated pages but let the pageload transaction on the client be head of trace. Then, connecting the server island requests to this pageload would be ideal, if we ever find a way to make this work.