Skip to content

Instrument Astro Server via Middleware #9444

@Lms24

Description

@Lms24

Problem Statement

Astro allows to add middleware to the server-side if the app is configured for SSR (or in a hybrid config) and an adapter (e.g. Node, vercel, etc) is used or if it's in SSG mode and static paths are supplied.

Solution Brainstorm

We should expose our own middleware to create spans/txns for incoming pageload or endpoint requests.

### Tasks
- [ ] https://github.com/getsentry/sentry-javascript/pull/9445
- [ ] https://github.com/getsentry/sentry-javascript/pull/9483
- [ ] https://github.com/getsentry/sentry-javascript/pull/9532
- [ ] https://github.com/getsentry/sentry-docs/pull/8581

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions