FetchStreamPerformance for Remix
Measure how long streamed fetch response bodies take to finish.
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 or your framework's routing integration.
Copied
Sentry.init({
integrations: [
Sentry.browserTracingIntegration(),
Sentry.fetchStreamPerformanceIntegration(),
],
});
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-streamapplication/x-ndjsonapplication/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").
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").