@newrelic.agent.function_trace()
def filter_out_noinclude(src):
 if (not src):
  return ''
 doc = pq(src)
 doc.remove('*[class=noinclude]')
 return doc.html()

@ newrelic . agent . function_trace ( ) def filter_out_noinclude ( src ) : if ( not src ) : return '' doc = pq ( src ) doc . remove ( '*[class=noinclude]' ) return doc . html ( )
quick and dirty filter to remove <div class="noinclude"> blocks .