sentry-php
sentry-php copied to clipboard
Allow profiler to start before SDK and transaction is initialized
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