Skip to content

agent side percentage sampling config option #5997

Description

@Frefreak

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • Question or discussion
  • Bug
  • Requirement
  • Feature or performance improvement

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions