Skip to content

V8 Integrations are broken #12582

Closed
Closed
@depsimon

Description

@depsimon

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

8.10.0

Framework Version

Remix 2.9.2

Link to Sentry event

No response

SDK Setup

// apps/project/app/modules/sentry/monitoring.server.ts
import { nodeProfilingIntegration } from "@sentry/profiling-node";
import * as Sentry from "@sentry/remix";

export function init() {
  Sentry.init({
    dsn: import.meta.env.VITE_SENTRY_DSN,
    environment: import.meta.env.VITE_ENVIRONMENT,
    debug: true,
    autoInstrumentRemix: true,

    // Set tracesSampleRate to 1.0 to capture 100%
    // of transactions for performance monitoring.
    // We recommend adjusting this value in production
    tracesSampleRate: 1.0,
    profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate

    denyUrls: [
      /\/healthcheck/,
      // TODO: be smarter about the public assets...
      /\/build\//,
      /\/favicons\//,
      /\/images\//,
      /\/fonts\//,
      /\/apple-touch-.*/,
      /\/robots.txt/,
      /\/favicon.ico/,
      /\/site\.webmanifest/,
    ],

    integrations: [
      // Temporary disabling this because of https://github.com/getsentry/sentry-javascript/issues/12568
      // nodeProfilingIntegration(),
      // Add profiling integration to list of integrations
      Sentry.nativeNodeFetchIntegration(),
      Sentry.httpIntegration(),
      Sentry.httpClientIntegration(),
    ],

    beforeSendTransaction(event) {
      // ignore all healthcheck related transactions
      if (event.request?.headers?.["X-Healthcheck"] === "true") return null;

      return event;
    },
  });
}
// apps/project/app/entry.server.tsx

if (import.meta.env.VITE_SENTRY_DSN) {
  await import("./modules/sentry/monitoring.server.ts");
}

Steps to Reproduce

  1. Launch remix app with remix vite:build
  2. Open app in browser
  3. An Internal server error occurs
__vite_ssr_import_0__.nativeNodeFetchIntegration is not a function
    at eval (/Users/simon/Code/Project/monorepo/apps/project/app/modules/sentry/monitoring.server.ts:32:27)
    at async instantiateModule (file:///Users/simon/Code/Project/monorepo/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:9

Expected Result

Integrations being added.

Actual Result

Integrations are not recognized and break the app.

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