Giter Club home page Giter Club logo

laravel-new-relic's People

Contributors

crishoj avatar dependabot[bot] avatar github-actions[bot] avatar jackwh avatar ksimenic avatar rbiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-new-relic's Issues

Feature request: Laravel 8 support.

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!

Callback scheduled task causes fatal error

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))

How to send just error logs, not by route request?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.