MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / bodyReporter

Function bodyReporter

packages/astro/src/server/middleware.ts:479–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477 const body = originalBody;
478
479 async function* bodyReporter(): AsyncGenerator<string | Buffer> {
480 try {
481 for await (const chunk of body) {
482 yield chunk;
483 }
484 } catch (e) {
485 // Report stream errors coming from user code or Astro rendering.
486 sendErrorToSentry(e);
487 throw e;
488 }
489 }
490
491 try {
492 for await (const chunk of bodyReporter()) {

Callers 1

injectMetaTagsInResponseFunction · 0.70

Calls 1

sendErrorToSentryFunction · 0.70

Tested by

no test coverage detected