The JavaScript Agent appends the ADRUM header with isAjax: true for the business transaction correlation. However, in some scenarios, you might require to remove the ADRUM header from the requests. For example, the API requests are redirected to a third-party server.

You can disable the ADRUM header in the following ways:

  • Boolean (disableAdrumHeader: true)
  • UrlAndMethodFilter
  • An array of UrlAndMethodFilter

The following is an example structure to filter objects:

{
  "urls": [
    {
      "pattern": ".*foo.*"
    },
    {
      "pattern": ".*bar.*"
    }
  ],
  "method": "GET"
} 
CODE