Skip to content

profilingNode does not include prebuilt binaries for Node 23 #14475

@damianobarbati

Description

@damianobarbati

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Inside a node:23.2-alpine image I can't run my node --import sentry.ts index.ts:

import * as Sentry from '@sentry/node';
import { nodeProfilingIntegration } from '@sentry/profiling-node';
import commonSentryConfig from 'common/commonSentryConfig.ts';
import ENV from '#api/env.ts';

Sentry.init({
    dsn: ENV.SENTRY_DSN,
    environment: ENV.APP_ENV,
    integrations: [nodeProfilingIntegration()],
    tracesSampleRate: 1.0,
    profilesSampleRate: 1.0,
  });

  Sentry.setTag('application', 'api');
}

I get a:

Error: Cannot find module '/mnt/node_modules/.pnpm/@[email protected]/node_modules/@sentry/profiling-node/lib/sentry_cpu_profiler-linux-x64-musl-131.node'

@JonasBa I see something similar recently happened and it was fixed here => #12169

Should some binary be released to support node v23 on alpine?

Expected Result

Initializing Sentry should not raise an exception due to a missing binary.

Actual Result

Initializing Sentry throws an error.

Product Area

Profiling

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: profiling-nodeIssues related to the Sentry Profiling Node SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions