Open
Description
A new report of this issue has been raised in Discord, converting it to an issue.
Discussed in #13514
Originally posted by JuJup August 29, 2024
Did anybody already got profiling-node
working in an Astro project (using SSR)?
Following the docs, it should be possible somehow..
I first tried the following:
import sentry from "@sentry/astro";
import * as Sentry from "@sentry/browser";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
export default defineConfig({
integrations: [
sentry({
dsn: <dsn>,
sourceMapsUploadOptions: {
project: "astro",
authToken: <auth-token>,
},
integrations: [
Sentry.browserProfilingIntegration(),
nodeProfilingIntegration(),
],
tracesSampleRate: 0.25,
profilesSampleRate: 0.5
}),
]
],
This gives me error traces, but unfortunately no profiling.
Then I tried adding an explicit sentry.server.config.js
as mentioned for manual setup in the docs with the following content:
import * as Sentry from "@sentry/astro";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
Sentry.init({
dsn: <dsn>,
integrations: [
nodeProfilingIntegration(),
],
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
});
Still no success :(
Anybody got some tips to help me getting this nice feature running?
Metadata
Metadata
Assignees
Type
Projects
Status
No status