Skip to content

Default setting for autoInstrumentation.requestHandler as true can truncate MDX output in Astro #9985

Closed
@knpwrs

Description

@knpwrs

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

7.91.0

Framework Version

Astro 4.0.7

Link to Sentry event

No response

SDK Setup

export default defineConfig({
  integrations: [
    mdx(),
    sentry({
      debug: true,
      enabled: process.env.NODE_ENV === 'production',
      dsn: '...',
      sourceMapsUploadOptions: {
        project: 'letschurch-astro',
        authToken: process.env.SENTRY_AUTH_TOKEN,
      },
      autoInstrumentation: {
        requestHandler: true,
      },
    }),
  ],
  output: 'server',
  adapter: node({
    mode: 'standalone',
  }),
});

Steps to Reproduce

I am unable to reproduce this issue in isolation and I am seeking further debugging steps.

In my project when I have autoInstrumentation.requestHandler set to true (either as above, or by not specifying autoInstrumentation at all and letting the default value take effect) mdx pages are truncated. Short pages are blank, and long pages have the end cut off.

This does not happen with md or astro pages, only mdx.

Expected Result

The following screenshots are from the end of a long mdx page when autoInstrumentation.requestHandler is set to false:

image

image

Actual Result

These screenshots are from the end of that same long mdx page when autoInstrumentation.requestHandler is set to true (or unspecified):

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: browserIssues related to the Sentry Browser SDK

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions