Skip to content

No automatic transactions when instrumenting Custom Remix Server #9963

Closed
@souredoutlook

Description

@souredoutlook

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/remix

SDK Version

latest

Framework Version

Remix v2

Link to Sentry event

n/a

SDK Setup

n/a

Steps to Reproduce

  1. create a Remix application with a custom express server
  2. instrument as described in manual instrumentation
  3. load the application from the browser
  4. no http.server transactions are produced

Expected Result

loading the index root should produce an http.server transaction

Actual Result

After stepping through the code it looks like we are wrapping the remix server and then not wrapping the request handler as isRequestHandlerWrapped is evaluating to true despite no transactions being produced automatically from the back-end.

(Breakpoint was set at this location here:

isRequestHandlerWrapped = true;
)

The workaround was to import Sentry in entry.server.ts from @sentry/node and call Sentry.init() as usual

Metadata

Metadata

Assignees

Labels

Package: remixIssues related to the Sentry Remix SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions