# |
Mar 7th 2018, 23:37 |
meder |
there are also 30-40 plugins with routes - is it pulling from all the config/routes.php within each plugin? |
# |
Mar 7th 2018, 23:37 |
meder |
i profiled on xdebug and it reported krsort() stemming from Cake\Routing\Routing\RouteCollection::add, i'm dealing with an app that i'm not familiar with but the route collection has hundreds of routes. is there a way to see if it gets dynamically generated? |
# |
Mar 7th 2018, 23:34 |
davinci |
thanks |
# |
Mar 7th 2018, 23:32 |
neothermic |
also if you're not getting *any* data, consider checking the NR logs |
# |
Mar 7th 2018, 23:30 |
davinci |
but I appreciate the pointer |
# |
Mar 7th 2018, 23:30 |
davinci |
I'd be happy getting anything at all for now |
# |
Mar 7th 2018, 23:29 |
neothermic |
lets you get transaction traces from your shells |
# |
Mar 7th 2018, 23:29 |
neothermic |
eh, IMO, don't set background job to true on shells, but consider running them under a different app name |
# |
Mar 7th 2018, 23:28 |
neothermic |
as for the shells, we just name each in the shell in question |
# |
Mar 7th 2018, 23:28 |
davinci |
File uploaded https://cakesf.slack.com/files/U3J95PPD5/F9M7EVANA/-.txt / https://slack-files.com/T053DPNCM-F9M7EVANA-4edeb7f52c - This is in my bin/cake.php file |
# |
Mar 7th 2018, 23:28 |
neothermic |
(obviously you'll need to adjust that slightly for cake3) |
# |
Mar 7th 2018, 23:26 |
neothermic |
sure, it's dirty editing core, but it works :P |
# |
Mar 7th 2018, 23:25 |
neothermic |
to the invokeAction command :P |
# |
Mar 7th 2018, 23:25 |
neothermic |
``` $controller = $this->name . 'Controller'; $action = $request->params['action']; newrelic_name_transaction($controller.'/'.$action); ``` |
# |
Mar 7th 2018, 23:25 |
neothermic |
``` |
# |
Mar 7th 2018, 23:25 |
neothermic |
see, I just added uh.. |
# |
Mar 7th 2018, 23:23 |
davinci |
So something's wrong. And their answer of "oh well, we don't support it" isn't right |
# |
Mar 7th 2018, 23:23 |
davinci |
that's what I would have thought. |
# |
Mar 7th 2018, 23:22 |
davinci |
per instruction from this plugin: https://github.com/jippi/cakephp-newrelic |
# |
Mar 7th 2018, 23:22 |
dereuromark |
davinci: exactly, any php code just works with the right lines of code added |
# |
Mar 7th 2018, 23:22 |
neothermic |
also remember that NR data is ~3 mins delayed :slightly_smiling_face: |
# |
Mar 7th 2018, 23:22 |
davinci |
right - all added |
# |
Mar 7th 2018, 23:20 |
neothermic |
If it's anything like cake2, you'll need to consider adding a few lines into core to really get it to log properly |
# |
Mar 7th 2018, 23:20 |
davinci |
Ive installed one, and followed the instructions. I'm getting some data, as if it kind of works, but it's very consistent and doesn't spike in any way even when I run a load test on the server |
# |
Mar 7th 2018, 23:19 |
davinci |
The response I got from their support team is "We don't support CakePHP 3", yet there are cakephp3+newrelic plugins |
# |
Mar 7th 2018, 23:18 |
davinci |
has anyone had success with CakePHP 3 and NewRelic? |
# |
Mar 7th 2018, 18:42 |
lorenzo |
cool! |
# |
Mar 7th 2018, 18:42 |
rafael.junqueira.sant |
thank you, @lorenzo, that led me to the solution. |
# |
Mar 7th 2018, 18:41 |
savant |
I might spend some time looking at the error pages in cake to implement the above stuff :slightly_smiling_face: |
# |
Mar 7th 2018, 18:40 |
rafael.junqueira.sant |
there is this small "toggle arguments" anchor |
# |
Mar 7th 2018, 18:40 |
savant |
i just pm’d you a link to it |
# |
Mar 7th 2018, 18:40 |
savant |
and I get log breadcrumbs too on the sentry page - that would be a nice touch for errors… |
# |
Mar 7th 2018, 18:39 |
savant |
this works really nicely for seamstress |
# |
Mar 7th 2018, 18:39 |
savant |
@lorenzo I think some integrations at $WORK aren’t setup right |
# |
Mar 7th 2018, 18:39 |
rafael.junqueira.sant |
it actually shows, found it |
# |
Mar 7th 2018, 18:39 |
lorenzo |
somehow what they show was not clear at all to me :) |
# |
Mar 7th 2018, 18:39 |
rafael.junqueira.sant |
ohhh |
# |
Mar 7th 2018, 18:39 |
lorenzo |
funny that you show me that it does savant, I’ve been complaining about the lack of those in sentry |
# |
Mar 7th 2018, 18:39 |
savant |
bbl |
# |
Mar 7th 2018, 18:39 |
savant |
plus it shows the code by default |
# |
Mar 7th 2018, 18:39 |
rafael.junqueira.sant |
@lorenzo unfortunately, when I click the frames they only show code, not the arguments passed |