This repository was archived by the owner on Sep 17, 2024. It is now read-only.
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
@sentry/profiling-node crashes vitest #228
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
7.92.0
Framework Version
vitest any
Link to Sentry event
No response
SDK Setup
import * as SentryApi from '@sentry/node';
// Edit an assertion and save to see HMR in action
import { ProfilingIntegration } from '@sentry/profiling-node';
SentryApi.init({
integrations: [new ProfilingIntegration()],
});
Steps to Reproduce
I tried to setup a minimal repro here: https://stackblitz.com/edit/vitest-dev-vitest-1gd3e9?file=src%2Fsentry.ts
but I failed, because profiling integration does not run on stackblitz.
So what you need to do:
- download from stackblitz
- extract
- pnpm i
- pnpm test
- hit enter to restart the tests for few seconds(10 times probably+-)
Expected Result
Vitest does not crash
Actual Result
vitest crashes after a few runs
Screencast from 5.1.2024 17:53:35.webm
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status