traceconfiguration
The Call Chain Collection Configuration is a functional module used to set collection rules for call chain data in the system. By configuring parameters such as collection mode, collection rate, and maximum number of collected spans, it can precisely control the collection behavior of call chain data. While ensuring the acquisition of valid call chain information for problem troubleshooting and performance analysis, it also balances system resource consumption reasonably, avoiding excessive pressure on the normal operation of the system due to over-collection.
How to Configure Call Chain Collection Rules
-
Navigate to the Deployment Configuration -> Rule Configuration -> Data Collection -> Call Chain page. The system has built-in default call chain collection rules, and these default rules support modification.

-
Click the Create button to customize call chain collection rules. Custom collection rules support filtering and matching by "service, service tag, process, process group, process group tag", etc.

-
The collection rule configuration supports setting collection mode, collection intensity, maximum number of spans collected per trace, stack collection, CPU time consumption collection, request parameters, response headers, etc.

- Threshold Mode: Collects all raw data related to call chains. After the business ends, it generates call chains from the data of all slow requests (slower requests and very slow requests determined based on the response time threshold of service interfaces) and error requests.
- Intelligent Sampling Mode: Collects call chains at the set collection rate for all requests. For probe versions of SmartAgent 8.1.2 and above, on the basis of Threshold Mode, it generates call chains from the data of healthy requests (all requests excluding slow requests and error requests) according to the collection rate.
- Intelligent Intensity Mode: Collects call chains based on collection intensity. (For each entry business, collect call chains for the first
nrequests in each 5-second collection cycle, wherencorresponds to 1, 2, and 3 for low, medium, and high intensity respectively; the default intensity is low.) - Intelligent Adaptive Mode: Under the premise of ensuring no exceeding the maximum collection limit, the collection of various businesses is allocated in a balanced manner. The specific rules are as follows:
- Maximum collection limit: Defines the upper limit of the total number of collections per minute;
- Dynamically adjust the collection ratio: Dynamically adjust the collection ratio according to the access volume of each business:
- Each type of business is collected at least once;
- Businesses with large access volumes have a relatively lower collection ratio;
- Businesses with small access volumes have a relatively higher collection ratio;
- Custom collection rules support management operations (e.g., editing, deleting).
