sentry-php icon indicating copy to clipboard operation
sentry-php copied to clipboard

Continuous Profiling

Open cleptric opened this issue 5 months ago • 0 comments

Adding support for Continuous Profiling. The 30 second limit does no longer apply. For now, we have a simple profiles aggregator, similar to logs, which we can later make smarter to support the agent.

profiler()->start();

// your code

profiler()->stop();
profiler()->flush();

Develop Docs https://develop.sentry.dev/sdk/telemetry/profiles/sample-format-v2/

  • [ ] Add missing SDK options (docs are missing, tbd profiling team)
  • [ ] Toggle between the legacy and continuous profiler based on SDK options
  • [ ] Add debug logs
  • [ ] Add support for starting the profiler prior SDK init
  • [ ] Check if we need to validate the sample count

cleptric avatar Jun 08 '25 05:06 cleptric