Coder Social home page Coder Social logo

newrelic's People

Contributors

abacaphiliac avatar al3xdm avatar bnkr avatar fabiankoestring avatar moderndeveloperllc avatar neeckeloo avatar socalnick avatar thomasvargiu avatar volkan 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

Watchers

 avatar  avatar  avatar  avatar  avatar

newrelic's Issues

Chaining methods on NewRelic\Client

allow chaining method on NewRelic\Client functions to use like

$client = $this->getServiceLocator()->get('NewRelic\Client');
$client->backgroundJob(true)->nameTransaction('my_name');

e.g.

    /**
     * {@inheritdoc}
     */
    public function nameTransaction($name)
    {
        if (!$this->extensionLoaded()) {
            return;
        }

        newrelic_name_transaction($name);

        return $this;
    }

Strict types bug

There is a bug enabling strict types:

ini_set() expects parameter 2 to be string, bool given

You should check these types and covert them to strings

Proposal: Transaction Names

Wouldnt it be better to send the real URL as a name instead of the called route? If hou have dynamic routes and you want to analyse with specific paramters you cant see which parameters have a huge load time or throughput or smth. You only see the route.

Nice Module!

Uncaught TypeError in ErrorListener.php

 Uncaught TypeError: Argument 1 passed to NewRelic\Listener\ErrorListener::createLogMessageFromException() must be an instance of Exception, instance of Error given, called in /var/www/www/vendor/neeckeloo/newrelic/src/Listener/ErrorListener.php on line 56 and defined in /var/www/www/vendor/neeckeloo/newrelic/src/Listener/ErrorListener.php:61
private function createLogMessageFromException(\Throwable $exception)
{
    return $exception->getFile()
        . ":" . $exception->getLine()
        . ": " . $exception->getMessage();
}

Should fix the error!

Module name on ignore list

include module name on ignore list

return array(
    'newrelic' => array(
        'ignored_transactions' => array(
            'module' => array(
                'Foo',
                'Bar',
                'Baz',
            ),
        ),
    ),
);

and optionally with controller/action

return array(
    'newrelic' => array(
        'ignored_transactions' => array(
            'module' => array(
                array('Foo', array('FooController', 'BarController')),
                array('Bar', array( array('BazController', array('foo', 'bar')))),
                'Baz',
            ),
        ),
    ),
);

Background Job and Route on Console Request

When using console request the route can be a invalid transaction name

  • php index.php do-stuff users
  • php index.php do-stuff places

This can lead to different controllers/action but in new relic will only show "do-stuff" on the transaction name

I´m using

$this->getServiceLocator()
->get('NewRelic\Client')
->nameTransaction('/console/[controller]/[action]');

And since is a ConsoleRequest, can it be automatically set as a background job?

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.