No profiling data found #238
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/profiling-node/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/profiling-node/releases
How do you use Sentry?
Self-hosted/on-premise
SDK Version
1.3.5
Link to Sentry event
No response
What environment is your node script running in?
$ node -v
v20.11.0
Running a node.js backend written in typescript that uses, amongst other things, type-graphql and apollo server. I have instrumentation set up and working.
The self hosted sentry instance is currently running 23.11.0
, and profiling is enabled in sentry.conf.py
.
How is your code deployed and bundled?
Currently just trying to get it to work locally, so it's just running tsc and then node. For production, we're creating a Docker image from the Node 20 base image.
Steps to Reproduce
Sentry init code:
Sentry.init({
dsn: "http://<snip>",
release: process.env.VERSION,
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
environment: process.env.SENTRY_ENVIRONMENT ?? "local",
integrations: [new ProfilingIntegration()],
});
Each incoming request starts instrumentation like this:
const transaction = Sentry.startTransaction({
name: ctx.request.operationName ?? "graphql.request",
op: "graphql",
});
Sentry.getCurrentScope().setSpan(transaction);
And ends like this:
return {
willSendResponse: async (ctx) => {
const ret = await ClearContainerCallback(ctx);
transaction.end();
return ret;
},
};
And this is definitely working, because I can see much useful data in the performance tab.
I've double checked and precompiled binaries do seem to be present:
Confirmed (I think) by the check-build
script:
$ node ./node_modules/@sentry/profiling-node/scripts/check-build.mjs
@sentry/profiling-node: Precompiled binary found, attempting to load <snip>/node_modules/@sentry/profiling-node/lib/sentry_cpu_profiler-darwin-arm64-115.node
@sentry/profiling-node: Precompiled binary found, skipping build from source.
Expected Result
Some profiling results to show up in the profiling tab...
Actual Result
No profiling results in the tab.
I'm at a bit of a loss as to how to debug this, so any suggestions would be welcome.