---
title: "FetchStreamPerformance"
description: "Measure how long streamed fetch response bodies take to finish."
url: https://docs.sentry.io/platforms/javascript/guides/astro/configuration/integrations/fetchstreamperformance/
---

# FetchStreamPerformance for Astro

This integration only works inside a browser environment. Requires JavaScript SDK version 11 or later.

*Import name: `Sentry.fetchStreamPerformanceIntegration`*

The FetchStreamPerformance integration measures how long streamed fetch responses take to finish. It captures spans from when response headers arrive until the body finishes, up to 90 seconds.

Use it with [BrowserTracing](https://docs.sentry.io/platforms/javascript/guides/astro/configuration/integrations/browsertracing.md) or your framework's routing integration.

```javascript
Sentry.init({
  integrations: [
    Sentry.browserTracingIntegration(),
    Sentry.fetchStreamPerformanceIntegration(),
  ],
});
```

Responses are tracked when they have no `content-length` header and their `content-type` starts with one of these values:

* `text/event-stream`
* `application/x-ndjson`
* `application/stream+json`

This integration has no configuration options.

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
