Skip to content
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.

No profiling data found #238

Open
Open
@TreeOfLearning

Description

@TreeOfLearning

Is there an existing issue for this?

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:
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions