arkaitzgarro / elastic-apm-laravel

Laravel APM agent for Elastic v2 intake API
MIT License
79 stars 17 forks source link

fix: schedule task name for closures and invokable objects #172

Closed arkaitzgarro closed 2 years ago

arkaitzgarro commented 2 years ago

Our implementation to get the transaction name for Scheduled Tasks, was expecting only commands, but it should also accepts closures, invokable objects and jobs. I took the implementation that Laravel uses to print the scheduled name in the terminal.

The linter was complaining, sorry for the extra diff.

Closes https://github.com/arkaitzgarro/elastic-apm-laravel/issues/171