scoutapp / scout-apm-laravel

ScoutAPM PHP Agent for the Laravel Framework
MIT License
22 stars 12 forks source link

In DB query listener, capture the code location in a generic way #13

Closed asgrim closed 2 years ago

asgrim commented 5 years ago

Replacing todo in code with an issue:

// TODO: figure out how to capture code location in a generic way (also specifically for db calls)
// From Laravel DebugBar - https://github.com/barryvdh/laravel-debugbar/blob/master/src/DataCollector/QueryCollector.php#L193
cschneid commented 5 years ago

After I wrote that we did implement the backtrace capture code, although it's not fully tested/tweaked yet to work well. The big thing we want is to capture the user's code location, not a trace into the internal of Laravel.

asgrim commented 5 years ago

In that case: this depends on scoutapp/scout-apm-php#61