tencent cloud

All product documents
Tencent Cloud Observability Platform
Configuring Java Application Data Collection with SkyWalking
Last updated: 2024-11-01 17:19:46
Configuring Java Application Data Collection with SkyWalking
Last updated: 2024-11-01 17:19:46
This document describes how to configure Java application data collection with SkyWalking.

Overview

When the number of access requests is high, reporting all trace data may greatly increase APM fees. In this case, data sampling is often used.
Note:
In sampling, certain data is sampled from all the collected trace data for analysis, which reduces the span volume and trace storage fees.

Prerequisites

Directions

1. Open the agent/config/agent.config file and find the agent.sample_n_per_3_secs=${SW_AGENT_SAMPLE:-1} configuration item.


2. Modify the sample rate. agent.sample_n_per_3_secs indicates the volume of trace data (TraceSegment) that can be collected every three seconds. If it is negative or 0, all traces are collected, which is the default option.
Example:
To collect 1,500 TraceSegments in three seconds, set as follows:
agent.sample_n_per_3_secs=${SW_AGENT_SAMPLE:1500}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon