Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/platforms/javascript/common/configuration/apis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,9 @@ export const GET = wrapServerRouteWithSentry(async () => {
<PlatformSection supported={["javascript.astro"]}>
## Server Request Instrumentation

Astro server requests are automatically instrumented starting from Astro version `3.5.2`.
Astro server requests are automatically instrumented.

If you're below Astro version `3.5.2` or want to customize instrumentation, you can use `Sentry.handleRequest()` as an Astro middleware.
If you want to customize instrumentation, you can use `Sentry.handleRequest()` as an Astro middleware.

<SdkApi
name="handleRequest"
Expand All @@ -1484,7 +1484,7 @@ If you have multiple request handlers, make sure to add the Sentry middleware as

<Alert>

If you're using Astro version `>=3.5.2`, you must <PlatformLink to="/tracing/instrumentation/automatic-instrumentation/#disable-automatic-instrumentation">disable automatic instrumentation</PlatformLink> before adding this middleware manually.
You must <PlatformLink to="/tracing/instrumentation/automatic-instrumentation/#disable-automatic-instrumentation">disable automatic instrumentation</PlatformLink> before adding this middleware manually.

</Alert>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Once you enable tracing, the SDK automatically captures performance data without

## Disable Automatic Instrumentation

For Astro version `3.5.2` and up, you can optionally disable the automatic server instrumentation by turning off the `requestHandler` auto instrumentation option:
You can optionally disable the automatic server instrumentation by turning off the `requestHandler` auto instrumentation option:

```javascript {filename:astro.config.mjs}
import { defineConfig } from "astro/config";
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/astro/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You need:

- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/)
- Your application up and running
- Astro `3.0.0` or above
- Astro `4.0.0` or above
- If you're using Astro's Netlify adapter (`@astrojs/netlify`), you need version `5.0.0` or above

<Alert level="warning" title="What runtime do you use?">
Expand Down
Loading