sentry-php
sentry-php copied to clipboard
Continuous Profiling
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