Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
Metadata
Metadata
Assignees
Type
Projects
Status
Status