otel-profiling-agent icon indicating copy to clipboard operation
otel-profiling-agent copied to clipboard

Add dynamic sampling frequency update capability

Open Haoning-Sun opened this issue 1 month ago • 4 comments

This commit adds a new interface to the tracer, which can be used to dynamically update the sampling frequency.

Haoning-Sun avatar Oct 24 '25 01:10 Haoning-Sun

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: Haoning-Sun / name: Haoning Sun (2ae65532f25e34e7a8cedadfbb63b6d3a01a298d, 327901a9e9b5ee2c419bb07f141cf13e1d0ae622, 562131b26206cca3411e316ee5c7330a6096bed3, 5d99fad06e4fae641e2aa3c4acec2bf125a27285, 6fa943c8bee8cbbbdb5a5ce9d2c08fdd29cef66e, 7a51bed8b1bb2690dec6e84c79f0a1d8ac9bf7ac, 894e4cf66b1ea6e95d0ddc991356eded82b47047, 8e8e35f71bf33dfc1562eb7b0d9aec9a06fc474d, a65bfcddc09b2acf0fcfd2b7f4c1374eb9f6fbb2, bb943e42fb9a58c15690de89734f60ad3b386ffa)

Thanks for your contribution. Do you have a particular use case for this?

We hope to change the sampling frequency without recreating the tracer.

Haoning-Sun avatar Oct 24 '25 09:10 Haoning-Sun

Please also make sure, that package reporter also updates its SamplesPerSecond and reports the correct frequency.

florianl avatar Oct 28 '25 10:10 florianl

Please also make sure, that package reporter also updates its SamplesPerSecond and reports the correct frequency.

Added it in controller and reporter.

Haoning-Sun avatar Oct 29 '25 02:10 Haoning-Sun