Open
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/react
SDK Version
9.33.0
Framework Version
18.3.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Sentry's official documentation mentions profilesSampler
as a config exposed in Sentry.init. However, the method doesn't work in @sentry/react
package
import * as Sentry from "@sentry/react";
Sentry.init({
dsn: "https://[email protected]/1819200",
integrations: [
// Add browser profiling integration to the list of integrations
Sentry.browserTracingIntegration(),
Sentry.browserProfilingIntegration(),
],
tracesSampleRate: 1.0,
// This function will be called for every sampled span
// to determine if it should be profiled
profilesSampler: (samplingContext) => {
return 1.0;
},
});
Expected Result
profilesSampler
should work
Actual Result
profilesSampler
does not work.
Metadata
Metadata
Assignees
Type
Projects
Status
No status