jackwh / laravel-new-relic Goto Github PK
View Code? Open in Web Editor NEWMonitor your Laravel application performance with New Relic
License: MIT License
Monitor your Laravel application performance with New Relic
License: MIT License
Some of our "massive" applications still run on Laravel 8.
As far as I can see there is no reason to only support Laravel 9.
Would adding Laravel 8 support be a possibility?
Thanks!
It's possible to set scheduled task as callable class inside \App\Console\Kernel
, like this:
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->call(new NotificationTask())->everyMinute();
}
in this case calling artisan schedule:run
fails with the error
2023-07-06 10:43:26 Running [Callback] .......................................... 0ms FAIL
TypeError
JackWH\LaravelNewRelic\NewRelicTransactionHandler::parseTaskCommand(): Argument #1 ($taskCommand) must be of type string, null given, called in /application/vendor/jackwh/laravel-new-relic/src/NewRelicTransactionHandler.php on line 205
at vendor/jackwh/laravel-new-relic/src/NewRelicTransactionHandler.php:269
265▕
266▕ /**
267▕ * Parse a command string for a scheduled task, returning it in a simplified format.
268▕ */
➜ 269▕ protected function parseTaskCommand(string $taskCommand): string
270▕ {
271▕ $formattedCommand = Str::of($taskCommand)
272▕ ->afterLast("'artisan' ")
273▕ ->afterLast("artisan ")
+20 vendor frames
21 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
HI, This is awesome package for connect with new relic service. many thanks for the providing this package. pardon me, is that possible to just send logs to the new relic?. In my scenario, I don't want log route requests, just need to log errors and exceptions. like, if i call
logger('newrelic')->error("test error");
the value need send to the new relic service . without assigning middleware to the http route
thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.