Skip to content

instrument.server.mjs not included after automatic configuration #14143

@enure

Description

@enure

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

latest

Framework Version

Remix 8.35.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Use "Automatic Configuration" command

Expected Result

The changes would include the following code included in the manual setup documentation:

NODE_OPTIONS='--import=./instrument.server.mjs' remix-serve build
# or
NODE_OPTIONS='--require=./instrument.server.cjs' remix-serve build

or...

The "Automatic Configuration" docs would say if you should include these changes in your project.

It's not clear to me if I need to prefix my build commands with the code above, but it looks like I should.

Actual Result

From what I can tell, the instrument.server.mjs file is not imported/used if you only use the automatic configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions