cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

The image beacon is getting posted as an adrum.gif with no metrics. Why?

Problem: 

EUM users do not see any EUM metrics from the instrumented application on the Controller. 

 

To troubleshoot, open the EUM Processor's dropped beacon logs (located in EUM/logs/DroppedBeacon.log) which mark all dropped beacons as "invalid."

 

Next, using Chrome dev tools, under the Network tab, there will be a beacon that is posted as an image (adrum.gif) and the request URL will look similar to: '/eumcollector/adrum.gif?&&&&&&&&&ky=<APP-KEY>'

 

As the parameters in this URL are missing, the beacon does not carry any metric data that can be identified by the EUM Server, and it is dropped.

 

 

Solution:

This issue appears in applications using Prototype.JS, which interferes with the browser's native JSON.stringify method.

 

Adrum.js (the Javascript Agent) uses the browser's version of JSON.stringify. When possible, we recommend using a browser's built-in JSON.stringify instead of Prototype's toJSON.

 

Then check for the window.JSON && window.JSON.stringify and only include the json.org library (via document.createElement('script')…).

 

To resolve the incompatibilities, include the following just after prototype.js in the browser.

if(window.Prototype) {
    delete Object.prototype.toJSON;
    delete Array.prototype.toJSON;
    delete Hash.prototype.toJSON;
    delete String.prototype.toJSON;
}
Version history
Last update:
‎10-12-2018 02:30 PM
Updated by:
Labels (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos