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>
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ if Danbooru.config.new_relic_license_key.present?
|
||||
log_level: Danbooru.config.debug_mode ? "debug" : "error",
|
||||
#log: Rails.logger,
|
||||
"rake.tasks": ["maintenance:.*"],
|
||||
"browser_monitoring.auto_instrument": false,
|
||||
config: Rails.application.config,
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user