Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 06-05-2015 02:08 PM - edited on 03-27-2019 08:59 AM by Nina.Wolinsky
Updated 6/20/18
The following article is intended for users who wish to implement custom correlation between Java applications/tiers using the AppDynamics' Java App Agent version 3.8 and higher.
For information regarding the .NET Agent, see here: Custom Correlation for .NET Applications
Custom correlation enables you to configure AppDynamics to correlate transactions across tiers, or across parent-child threads in complex multithreaded applications when the default detection mechanisms are not capable of auto-correlating. To correlate a distributed invocation, the AppDynamics agent must propagate a unique correlation key by using the extension points of the distributed protocol or by decorating the payload.
The AppDynamics agent needs to know what methods to measure. Therefore, when defining a custom correlation you have to consider:
When you are monitoring applications that use unsupported frameworks and protocols, custom correlation may be the answer. Use custom correlation XML configuration to achieve business transaction correlation across tiers when the following conditions exist:
For custom correlation on communication protocols between nodes such as HTTP and JMS:
For custom correlation within a node:
To implement custom correlation, you use XML configuration to specify how to instrument the application. The primary factors governing the exact configuration are the data structures and the sequence of code execution. You can use, custom-activity-correlation.xml, the XML configuration template shipped with the APM Java Agent (found in the conf directory when you unzip your Java agent download zip file) or one of the sample XML files (described in topics linked at the bottom of this page) as a starting point.
The general steps to configure custom correlation are the following:
TIP
In general, cross-process, ID-based correlation is not supported.
Consider a scenario involving consecutive processes with a shared ID such as the following: three separate, consecutive processes are all considered to be segments of the same business transaction. The processes are sequential, but the processes can also theoretically overlap to some degree.
We do not correlate at the protocol level for Sun RMI because standard, out-of-the-box Sun RMI does not have a place to inject the transaction context in the method invocation.
Examples:
Published on 6/5/2015
Updated for 4.4 on 6/20/2018
Is there more doc on Custom Correlation on docs.appdynamics.com? Especially, how to defdine Consumer and Producer using XML document on .NET?
Hello,
Here is more information on .NET including an example XML config file:
Thanks!
Erin
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form