Certain URLs not showing in Business Segment metrics reported by Logstash DxC Agent

book

Article ID: 8570

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

An application is configured with the snippet to report data to the Experience Collector, also known as DxC.

Some URLs do report Business Segment metrics but others do not.

 

This error can be seen in the ExperienceCollector logs, along with the JSON payload

ERROR c.c.a.c.p.h.e.RestResponseEntityExceptionHandler - error caught: Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token

 

 

 

Cause

The issue is caused by a conflict of our Javascript and any other Javascript framework deployed in the monitored application.

In particular that both our monitoring and the monitored framework are making similar API calls, and the framework in the application can override the JSON API we use.

This leads to creation of unnecessary escape characters in the JSON payload, you would see something like this in the log error:

"[{\\\"id\\\": \\\"6a1df92274bf4766b065cc8e95125b6d\\\

Environment

APM 10.5.1 Enterprise Manager and Experience Collector

Resolution

This has been fixed in APM 10.5.2 Experience Collector with updated Javascript files