docs/migration/continuous-profiling.md
The continuous profiling API has been redesigned to give developers more explicit control over profiling sessions while maintaining ease of use. This guide outlines the key changes.
We've introduced a new profileLifecycle option that allows you to explicitly set how profiling sessions are managed:
manual (default) - You control profiling sessions using the API methodstrace - Profiling sessions are automatically tied to tracesPreviously, the profiling mode was implicitly determined by initialization options. Now you can clearly specify your intended behavior.
We've introduced profileSessionSampleRate to control what percentage of SDK instances will collect profiles. This is evaluated once during SDK initialization. This is particularly useful for:
The profilesSampleRate option has been deprecated in favor of the new sampling controls.
The profilesSampler option hsa been deprecated in favor of manual profiler control.