jippi / cakephp-newrelic Goto Github PK
View Code? Open in Web Editor NEWcakephp <3 newrelic
cakephp <3 newrelic
For security standpoint, no logger should collect information that is being sent by POST request, or data saved in the COOKIES.
As a solution you could instead only collect the keys but not the values of the forms.
Make it configurable to change what info should be used.
Currently it's Auth->user('id')
& Auth->user('email')
https://github.com/jippi/cakephp-newrelic/blob/master/Controller/Component/NewRelicComponent.php#L28
[root@dev app]# composer require jippi/cakephp-newrelic
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Using version dev-master for jippi/cakephp-newrelic
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing composer/installers (v1.0.25)
Downloading: 100%
- Installing jippi/cakephp-newrelic (dev-master bcb4c51)
Cloning bcb4c51931e90ab7a078d1f7b40ed6b176a53d65
Writing lock file
Generating autoload files
Warning: Ambiguous class resolution, "lessc" was found in both "/var/www/html/inv/html/app/vendor/leafo/lessphp/lessc.inc.php" and "/var/www/html/inv/html/app/vendor/oyejorge/less.php/lessc.inc.php", the first will be used.
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
Script Cake\Composer\Installer\PluginInstaller::postAutoloadDump handling the post-autoload-dump event terminated with an exception
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Unable to get primary namespace for package jippi/cakephp-newrelic.
Ensure you have added proper 'autoload' section to your plugin's config as stated in README on https://github.com/cakephp/plugin-installer
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
What would cause this? Is there a workaround?
In NewRelic for PHP configuration file you can define the app name and should not be overridden by the Plugin.
If it's not defined then you could try to fetch it from the INI value newrelic.appname
like this:
$newrelic_app_name = ini_get("newrelic.appname");
if (!empty($newrelic_app_name)) {
defined('NEW_RELIC_APP_NAME') or define('NEW_RELIC_APP_NAME', $newrelic_app_name);
}
Hey!
Do you plan on migrating this for Cake3? ๐
I am seeing some of the instructions to implement this in cake do not apply to cake3.
Are there any instructions on how to do so?
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.