What are names of the headers used for cross correlation traces?

Document ID : KB000119935
Last Modified Date : 05/11/2018
Show Technical Document Details
Introduction:
This is the first document on this topic. Look at CorProcessData for the GUID that shares data across the transaction trace wedding cake.
Question:
What are the actual names of the headers are for cross correlation between JVM's? I see the header decorator in the agent profile talks about the x-wily-info parameter to enable correlation between Introscope and CEM. Is this the same GUID that is being used between JVM's or is there something different? 
Environment:
Supported APM Releases
Answer:

A user transaction traverses multiple JVM processes/threads. For each JVM process/thread, APM creates a transaction trace "wedding cake". These sets of "wedding cakes" all share the same GUID called as "CorProcessData"  When looking at the properties of a Transaction Trace, all the ones that start with the prefix "Cor" are used to stitch Transaction Traces together. All the other ones are either not related or more cosmetic.

 In the transaction trace, the GUID is called CorProcessData. The HTTP header that is transmitted over the wire is called CorID and includes a lot more, e.g. the sequence number.

Format: CorID = <GUID>,<sequenceID>,<propagation flag>,<dep propagation flag>, <outgoingCallerNodeID>,<outgoingCallerNodeType>,<optionalParams>

  • GUID (CorCrossProcessData): The GUID that defines which traces are related to each other. Defines the set of traces that are part of the same user transaction.

  • sequenceId: obsolete field
  • propagation flag: The flag is used to instruct the downstream agents whether they have to also send a trace or not. e.g. a filter session is active on a upstream agent and traces were matched in upstream agent, hence we could set this flag to 1 to trigger trace from downstream agents automatically
  • dep propagation flag: The flag is used for SPM dependency map (now obsolete)
  • outgoingCallerNodeID: fully qualified name of the component/node that made the outgoing cross process call
  • outgoingCallerNodeType: type of the  component/node that made the outgoing cross process call (type = 2, indicated client node)
  • optionalParams: encoded set of key/value pairs coming from a hashmap. Some of the key fields include 
    • TxnTraceID: TxnTraceId and CallerTxnTraceId are other GUIDs that help to identify the caller-callee relationship between the wedding cake traces. All these guids are sent on the cross-process correlation headers  
    • CallerTxnTraceId: see the note for TxnTraceID
    • CallerTimestamp: When the client made a outgoing client socket call, it denotes the timestamp of the component

Example:

GET /MathProxy/rest/hello/mathcomplex?operation=mean&values=1,2,3,4,5,6 HTTP/1.1

CorID: B63D31070A82B2D560A6C783C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