Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
@sentry/* - 7.68.0, @sentry/profiling-node - 1.2.1
Works fine with versions 7.67.0
Framework Version
Node 18.12.1 Nest.js 10.1.17
Link to Sentry event
No response
SDK Setup
import * as Sentry from '@sentry/node';
import * as Tracing from '@sentry/tracing';
import { RewriteFrames } from '@sentry/integrations';
import { ProfilingIntegration } from '@sentry/profiling-node';
Sentry.init({
dsn: '...',
environment: '...',
integrations: [
new RewriteFrames({
root: '/app',
}),
new Sentry.Integrations.Http({ tracing: true }),
new Tracing.Integrations.Express({
app: httpAdapter.getInstance(),
}),
new ProfilingIntegration(),
],
tracesSampler: (samplingContext) => {
if (samplingContext.request?.url?.includes('/health')) {
return 0;
}
return 0.2;
},
profilesSampleRate: 1.0,
});
Steps to Reproduce
- install latest @sentry versions
- integrate
@sentry/profiling-node
- build
Expected Result
build successfully :)
Actual Result
Error thrown during nest build:
Type 'ProfilingIntegration' is not assignable to type 'Integration'.
Types of property 'setupOnce' are incompatible.
Works fine with versions 7.67.0
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
@sentry/* - 7.68.0, @sentry/profiling-node - 1.2.1
Works fine with versions
7.67.0Framework Version
Node 18.12.1 Nest.js 10.1.17
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
@sentry/profiling-nodeExpected Result
build successfully :)
Actual Result
Error thrown during
nest build:Works fine with versions
7.67.0