FetchStreamPerformance for Svelte

Measure how long streamed fetch response bodies take to finish.

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 or your framework's routing integration.

Copied
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.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").