Add tracing requests across servers
We can create tracing across servers to ensure that your generated reports include the data that you require for analysis.
Task info
By tracing requests across servers, we can generate reports that contain inputs from multiple servers. To generate these reports, specify the log files for the client and server side of the operation to the report generator.
Procedure
- On the server side, create a servlet filter to read this HTTP header and set the parent operation ID using the following statement:
OperationMetric.setThreadParentOperationIdentifier(parentID);
- On the client side, use the servlet filter to append the current operation ID as an HTTP header to propagate the ID of the parent operations. We can execute the following code to read the current operation identifier:
final Long parentID = OperationMetric .getThreadParentOperationIdentifier();
- Include the performance logs for both the client and server in the report generation to ensure that the report can correlate the performance of an operation across servers.
Related reference
Performance measurement loggers
Adding cache measurement metric points
Adding threads and thread pools