url rewriting - Newrelic isn't recognizing my Slim PHP routes -


i have set new relic on php web app. working great except 1 thing... of transactions show going through "index.php".

the reason because i'm using slim framework (there are many alternatives for routing) url rewriting can have nice human urls "/user/settings" without folder every controller , action.

but still leaves me index.php name every new relic web transaction.

you can use hook set transaction name name or pattern of router.

here example setting pattern:

$app->hook('slim.before.dispatch', function() use ($app) {     newrelic_name_transaction($app->router()->getcurrentroute()->getpattern()); }); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -