I have a Laravel app connected to a APM Server with the following route to test it connection:
use Elastic\Apm\ElasticApm;
Route::get('/test', function () {
$transaction = ElasticApm::beginCurrentTransaction(
'HomeController@index',
'request'
);
$transaction->end();
return view('welcome');
});
In app terminal I'm getting this message:
[beginTransactionWithBuilder] Received request to begin a new current transaction even though there is a current transaction that is still not ended
I'm following every step of elastic APM Agent for PHP
Basically I want to finish every running transaction, but didn't found any method to do it