Skip to content

Commit

Permalink
Add Drupal 10.2 notes to Drupal and Browser monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lavarou committed Apr 30, 2024
1 parent 4eb3464 commit 1f372ea
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ Here are some basic examples.
<Callout variant="important">
In Drupal 7.15, <DoNotTranslate>**Compress cached pages**</DoNotTranslate> is turned on by default. If you also select <DoNotTranslate>**Cache pages for anonymous users**</DoNotTranslate>, the JavaScript (newrelic.js) is not inserted into the served pages for anonymous users. This is because Drupal's pages are compressed directly from the database before they are stored in the cache (with gzip), so New Relic's PHP agent does not have a chance to parse any HTML. In this situation, manual instrumentation provides a better opportunity to capture data for anonymous users.
</Callout>

<Callout variant="important">
Drupal 10.2 introduced a [new change](https://www.drupal.org/node/3298551) which causes it to set a `content-length` header.
New Relic PHP agent is unable to auto-inject the browser auto-instrumentation when the HTTP header field `Content-Length` is set.
To keep using browser monitoring, disable browser auto-instrumentation and manually insert the JavaScript header and footer into your templates.
</Callout>

</Collapser>
</CollapserGroup>

Expand Down

0 comments on commit 1f372ea

Please sign in to comment.