-
Notifications
You must be signed in to change notification settings - Fork 168
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
Prepared queries when using Doctrine DBAL are not instrumented #544
Comments
It is already included, the same way it is for |
Initial data: I've created a test command with the following code
UserFetcher.php::all
Executed command with bin/console test The transaction was sent to sentry and I see the following So as you can see there is only sql.conn.prepare time. I want to know how to add there time for select itself, not only the prepare |
if I'm right the issue is in https://github.com/doctrine/dbal/blob/2.13.x/lib/Doctrine/DBAL/Connection.php#L1283 But after that the $stmt->execute is called and it is not covered by tracing driver Please correct me if I'm wrong |
That is indeed the culprit of the issue, nice catch! I will open a PR soon to fix it |
I'm using bundle 4.2.0 and using tracing for sentry.
When some SQL is used for selecting some data in sentry I see only a trace for sql.conn.prepare. But this does not show the time spent for selecting data itself.
Maybe there is a way to include such information in trace too? I want to see in trace how much time was spent for getting data from db
Thank you.
The text was updated successfully, but these errors were encountered: