Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow profiler to start before SDK and transaction is initialized #1778

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stayallive
Copy link
Collaborator

@stayallive stayallive commented Sep 5, 2024

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

Copy link
Member

@cleptric cleptric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With continues profiling now being in beta, let's talk about how we implement this in PHP first, as this has some overlap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants