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

Tracy doesn't show any SQL queries in bar #82

Open
petrparolek opened this issue Feb 6, 2024 · 2 comments
Open

Tracy doesn't show any SQL queries in bar #82

petrparolek opened this issue Feb 6, 2024 · 2 comments

Comments

@petrparolek
Copy link
Contributor

Version: master 26b53be

Bug Description

Tracy doesn't show any SQL queries in bar

obrazek

Steps To Reproduce

Run sqls with doctrine

Expected Behavior

showing every queries

Possible Solution

N/A

@Rixafy
Copy link
Contributor

Rixafy commented Apr 1, 2024

I tried dev-master and I have the same problem, looks like it's wasn't implemented

https://github.com/contributte/doctrine-dbal/blob/master/src/Logger/SnapshotLogger.php#L32

after refactoring loggers 3645013

I have dumped SnapshotLogger snapshot item, and it doesn't look like we can get timings queries from the data that are in snapshots array.

["level"] => string(5) "debug"
["message"] => string(65) "Executing statement: {sql} (parameters: {params}, types: {types})"
["context"] =>
  array(3) {
	["sql"]=>
	string(41) "SELECT data FROM `session` WHERE hash = ?"
	["params"]=>
	array(1) {
		[1]=> string(26) "123456"
	}
	["types"]=>
	array(1) {
		[1]=> int(2)
	}
  }
["timestamp"] => int(1711987812)

cc @f3l1x

@f3l1x
Copy link
Member

f3l1x commented Apr 1, 2024

Yep, I need to rewrite it using middlewares.

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

No branches or pull requests

3 participants