Please answer these questions before submitting your issue.
Question
- What do you want to know?
For sampling, it seems currently (v8.2.0/v8.3.0) there are primarily 2 ways to control trace sampling. One is in server side using sampleRate but the bandwidth is still wasted and may not be very flexible if has many multiple sources of agent. The other is via agent side agent.sample_n_per_3_secs option but the use case is kind of counter-intuitive. In many scenarios one may want a percentage sampling rate option in agent side. What's the reason of not providing that but using a "traces in 3 seconds" mechanism instead? This looks a bit odd and from looking at the SamplingService code a percentage way would not be difficult to implement.
Bug
- Which version of SkyWalking, OS and JRE?
v8.2.0
openjdk version "1.8.0_265"
Requirement or improvement
- provide an agent config similar to
agent.sample_n_per_3_secs but in percentage (like 10 in every 10000). We can try to implement this and open a PR if that's OK.
Please answer these questions before submitting your issue.
Question
For sampling, it seems currently (v8.2.0/v8.3.0) there are primarily 2 ways to control trace sampling. One is in server side using
sampleRatebut the bandwidth is still wasted and may not be very flexible if has many multiple sources of agent. The other is via agent sideagent.sample_n_per_3_secsoption but the use case is kind of counter-intuitive. In many scenarios one may want a percentage sampling rate option in agent side. What's the reason of not providing that but using a "traces in 3 seconds" mechanism instead? This looks a bit odd and from looking at theSamplingServicecode a percentage way would not be difficult to implement.Bug
v8.2.0
openjdk version "1.8.0_265"
Requirement or improvement
agent.sample_n_per_3_secsbut in percentage (like 10 in every 10000). We can try to implement this and open a PR if that's OK.