NEWRELIC Nreum 在脚本标签中包装动态 table 内容

NEWRELIC Nreum wraps dynamic table content in script tag

我无法理解新遗物在特定情况下的工作原理,以下是新遗物未按预期执行的情况。

在我的 aspx 中,单击按钮时会创建一个动态 table 按钮标签,显示为弹出窗口,但在将 newrelic 合并到应用程序中时,生成的 table 内容会出现在里面NREUM 脚本不允许 table 显示为弹出窗口。

<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info = {"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"key","applicationID":"id","transactionName":"tname","queueTime":0,"applicationTime":701,"ttGuid":"ttGuid","agent":""}*<body>
<table  border="1" style="border-color: Maroon;">
<tr><td style='font-family:Verdana; font-size:xx-small;'><table border="0">
<tr><td style='font-family:Verdana; font-size:xx-small;' colspan='3'><b>Stack</b><font color='Blue'>1</font></td></tr><tr><th></th><th style='font-family:Verdana; font-size:xx-small;text-align:left'>Overflow</th><th style='font-family:Verdana; font-size:xx-small;text-align:left'>Step Description</th><tr><td style='font-family:Verdana; font-size:xx-small;'><td style='font-family:Verdana; font-size:xx-small;'><a href='dynamic_content.aspx'>Dynamic content</a></td><td style='font-family:Verdana; font-size:xx-small;'>Dynamic Content</td></tr>
</table></td></tr>
</table>
</body>
</html></div></DIV></DIV></DIV></DIV></DIV></script>

但我希望脚本标签在 body 标签开始之前关闭。

为什么脚本会包装生成的内容?? 我应该怎么做才能解决同样的问题

New Relic 搜索 head 标签并尝试在其中注入脚本。确保您的 HTML 中有 head 标签。

<head><script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script></head>