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

Allow profiler to start before SDK and transaction is initialized

Open stayallive opened this issue 1 year ago • 0 comments

In plain PHP this is less interesting but in frameworks it can be very.

This allow you to drop a \Sentry\Profiling\Profiler::startProfiling() right after the composer autoloader which enable you to start profiling as early as possible capturing the bootstrap of the framework too.

If we later know we are going to discard the transaction we discard the profiling data, if we are sampling the transaction we continue to use the already started (excimer) profiler as normal.

CI failure because: #1777

stayallive avatar Sep 05 '24 00:09 stayallive