Ensure we support browser profiling properly
Full support for UI Profiling is available from version 10.27.0. Docs are updated to include the new UI Profiling mode: https://docs.sentry.io/platforms/javascript/profiling/ The
profilesSampleRateis now deprecated in favor ofprofileSessionSampleRate. The decisions if something should be profiled or not will now be made at SDK initialization (start of a user session on page load). And then, the whole user session will be continuously profiled. InprofileLifecycle: "manual"(default), users can start and stop profiling withSentry.uiProfiler.startProfiler()and.stopProfiler(). InprofileLifecycle: "trace"the SDK automatically profiles when there is at least one active root/segment span. This is most similar to our previous transaction-based approach.
by @s1gr1d
We should probably promote (or auto-enable) profileLifecycle: "trace" when Spotlight is enabled.
We also very likely need to address #693 first.