Skip to content

Instantly share code, notes, and snippets.

@meonkeys
Created July 9, 2013 17:39
Show Gist options
  • Save meonkeys/5959455 to your computer and use it in GitHub Desktop.
Save meonkeys/5959455 to your computer and use it in GitHub Desktop.
JavaScript snippet/bookmarklet to transform a New Relic stack trace into something you can easily cut and paste. Use in conjunction with https://gist.github.com/meonkeys/5959547 .
javascript:(function(){$(".application_stack_trace").find("span.directory").each(function() {x = $(this);x.replaceWith(x.attr("data-tip").replace(/<wbr \/>/g, "").replace(/^.* called at /, '').replace(/(.*)\/\S+\.php $/, "$1/"))})})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment