--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/953935DD-696D-4CD3-8316-B70BBB6FE8E4%40corfield.org.
For more options, visit https://groups.google.com/d/optout.
Hi Andrew,
we've used New relic in our apps in the past. to make error reporting more useful you have to trap the errors in your code and then send them to NR.
We don't use it any more for error reporting as we have a ELK setup now, but we still use NR's free tier to do some basic hardware monitoring.
when I get into the office ill find some code to share.
chris
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG1WijUGsnS5xEn8RU98iaOBud%3DFYfQRWq5zQzcJku-ek57Mcw%40mail.gmail.com.
Hi Andrew,Here's a few snippets that might help you outIn Application.onRequestStart()// have new relic report per cfml application, rather than treating the whole// lucee instance as a single appgetPageContext().getRequest().getOriginalRequest().setAttribute("com.newrelic.agent.APPLICATION_NAME", this.name);var nr = createObject( "java", "com.newrelic.api.agent.NewRelic" );nr.setTransactionName( nullValue(), cgi.script_name & cgi.path_info);nr.addCustomParameter( "session_id", session.sessionid );nr.addCustomParameter( "request_id", request.unique_id);...nr.addCustomParameter( "whatever", more.is.betterer);
Then in your error handler / logger
// we found this was needed to get at the real exception,
// otherwise you get a generic cfml runtime error iirc
var cause = exception.getRootCause(); var params = { error_id = some_unique_id, type: exception.type ?: 'unknown.error', message: exception.message ?: '', detail: exception.detail ?: '', }; NewRelic.noticeError(cause, params);
Hope that helps
Cheers, Chris
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAB%3DtfTrGbmBYWGTVPQzm265orBZc-Q5pa2hZ2PxmxwvTHKaECw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/800e228e-53c9-4764-aac9-98fa3ee68107%40googlegroups.com.
Check out https://dripstat.comkind of a new relic clone, but more affordable.we have been using it on our old railo servers.putting it on our lucee servers now.
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/fb6e742c-5db7-4569-b389-e36c0faf3255%40googlegroups.com.