newrelic: insert browser timing header manually.
Insert the <script> tag that monitors browser timing into the <head>
manually. This is to avoid this error:
Skipping RUM instrumentation. Unable to find <body> tag in first 50000 bytes of document.
See also https://docs.newrelic.com/docs/agents/ruby-agent/features/new-relic-browser-ruby-agent/#manual_instrumentation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<%= NewRelic::Agent.browser_timing_header rescue "" %>
|
||||
<meta charset="utf-8">
|
||||
<title><%= page_title %></title>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<%= NewRelic::Agent.browser_timing_header rescue "" %>
|
||||
<meta charset="utf-8">
|
||||
<title><%= page_title %></title>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user