when i set profiler.sampling.enable=true and profiler.sampling.rate=1 or 5 or 10 or 20. Ten transactions were sent, and only one transaction be sampled.

profiler.sampling.rate=: 1=100% 2 = 50% 4 = 25% 10 =10% 20 = 5%
Change the "sampling.rate" in the two configuration files respectively and recomplile. The two configuration files are as follows: “pinpoint-env.config” in “profiles\release” and “rofiles\local”.
https://github.com/naver/pinpoint/blob/master/agent/src/main/resources/profiles/local/pinpoint.config#L60
https://github.com/naver/pinpoint/blob/master/agent/src/main/resources/profiles/release/pinpoint.config#L60
profiler.sampling.rate=: 1=100% 2 = 50% 4 = 25% 10 =10% 20 = 5%
Change the "sampling.rate" in the two configuration files respectively and recomplile. The two configuration files are as follows: “pinpoint-env.config” in “profiles\release” and “rofiles\local”.
https://github.com/naver/pinpoint/blob/master/agent/src/main/resources/profiles/local/pinpoint.config#L60
https://github.com/naver/pinpoint/blob/master/agent/src/main/resources/profiles/release/pinpoint.config#L60
Now the configuration works. And I hava anther question: the sever map is:App1->App2->App3. If i Set App1's profiler.sampling.rate=1. Set the App2's profiler.sampling.rate=1 or 20, and my test result is that App2‘s sampling rate is the same。
hi @caicha
According to the transaction tracking policy, if there is a trace that already traced, the request would be traced.
For above reason, if front application sampling policy is 100%, then all applications that receive requests from it would all track down request.
thanks :)
hi @caicha
According to the transaction tracking policy, if there is a trace that already traced, the request would be traced.
For above reason, if front application sampling policy is 100%, then all applications that receive requests from it would all track down request.thanks :)
Thank you very much!
This issue/proposal has been automatically marked as stale because it hasn't had any recent activity. It will automatically be closed if no further activity occurs for 20days. If you think this should still be open, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. Thank you for your interest and contribution to the Pinpoint Community.
Most helpful comment
profiler.sampling.rate=: 1=100% 2 = 50% 4 = 25% 10 =10% 20 = 5%
Change the "sampling.rate" in the two configuration files respectively and recomplile. The two configuration files are as follows: “pinpoint-env.config” in “profiles\release” and “rofiles\local”.
https://github.com/naver/pinpoint/blob/master/agent/src/main/resources/profiles/local/pinpoint.config#L60
https://github.com/naver/pinpoint/blob/master/agent/src/main/resources/profiles/release/pinpoint.config#L60