ModelGlue and coldfusoin monitor

7 views
Skip to first unread message

Douglas Trojanwoski

unread,
Oct 15, 2013, 10:43:07 AM10/15/13
to model...@googlegroups.com
So like most frameworks i use i notice that almost all pages that get monitored fusebox/modelglue its always D:\websites\site1\index.cfm is the only page monitored. Which makes sense since the framework puts the path in a url variable.

My question is with modelglue is there a way that i can truely get server monitor in coldfusion to know that index.cfm?event=some.page.this is actually a page?

Thanks

Chris Blackwell

unread,
Oct 15, 2013, 11:02:51 AM10/15/13
to model-glue
On my current project we use fw/1, which is a front-controller framework just like modelglue, with New Relic monitoring.  

in Application.cfc we manually set the uri for the current transaction, like this

var nr = application.NewRelic;
nr.setTransactionName( nullValue(), "/#getFullyQualifiedAction()#");


Sean Corfield has a blog post about it here, we've also integrated error reporting so we get our custom cfml types rather than the java error type which doesn't tell you much

function onError(rc) {
try {
var re = request.exception;
var cause = re.getRootCause();
var params = {
error_id = rc.errorid,
type: re.type ?: '',
message: re.message ?: '',
detail: re.detail ?: '',
};
NewRelic.noticeError(cause, params); 
}
catch(any e) {
log("error", "Error creating NewRelic error report. #e.message#");
}
// other error handling here
}



--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages