Problem/Motivation
We have enabled this module in our dev and stage servers(acquia cloud). Both are with newrelic php extension. Enabled this module and added API key of type 'user' from newrelic and doing the deployments. These deployments are success and we are able to see the deployment details at Newrelic side. But the problem is it is not forwarding the watchdog messages. We have enabled all the watchdog messages type in this module settings page.
We have added the below code in our settings.php. Verified with and with out this below code, but no luck.
ini_set('newrelic.loglevel', 'error');
ini_set('newrelic.daemon.collector_host', 'gov-collector.newrelic.com');
Are we missing anything to forward the watchdog messages to newrelic. Is it any permission issue? or do we need to install anything on servers.
Steps to reproduce
- Enabled new_relic_rpm module
- Generated API key of 'user' type in newrelic
- Enabled all watchdog message types in module settings page.
- Use deploy page by giving some version and other details.
Issue fork new_relic_rpm-3360583
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
steven jones commentedI had this issue too, and it's because the module is passing a
NULLto as the second argument tonewrelic_notice_errorwhich isn't a valid thing to do.MR on the way...
Comment #4
steven jones commentedMR is open and ready for review!
Comment #5
steven jones commentedComment #6
diego_mow commentedTested this code in our project and it works! Thank you!
RTBC
Comment #7
icurk commented@diego_mow
Where exactly in newrelic do you see logs from watchdog? Did you have to set anything else in newrelic to get this working?
Comment #8
steven jones commentedThey'll be in the standard error inbox in NewRelic APM.
Comment #9
icurk commented@steven jones
I only see errors that are thrown with an exception, but I don't see any other items from the watchdog, like items with debug or info severities.
Comment #10
steven jones commentedHave you configured the new_relic_rpm module to send relevant watchdog messages to NewRelic, and applied the patch in the Merge Request?
Comment #11
icurk commentedI did, yes.
I have:
If I try to deploy a message in the deployment tab, I see this in the errors inbox. I'm just missing the watchdog logs.
EDIT: I've changed the type of the key to INGEST - LICENSE and now I see them.
Comment #12
steven jones commentedSorry to confirm, but in your detailed steps, you didn't mention applying the code change from the merge request here, have you done that?
https://git.drupalcode.org/project/new_relic_rpm/-/merge_requests/3/diffs
Comment #14
steven jones commentedMerged, thanks everyone!