pub fn sample_rate(self, sample_rate: i32) -> Self {
        Self {
            config: self.config.sample_rate(sample_rate),
            ..self
        }
    }
/// Set the Sample rate. Default value is 100.
/// # Example
/// ```ignore
/// let builder = PyroscopeAgentBuilder::new("http://localhost:8080", "my-app")
/// .sample_rate(99)
/// .build()
/// ?;
/// ```
Set the Sample rate. Default value is 100.
Set the Sample rate . Default value is 100 .
pub fn sample_rate(self, sample_rate: i32) -> Self {
        Self {
            config: self.config.sample_rate(sample_rate),
            ..self
        }
    }
pub fn sample_rate ( self , sample_rate : i32 ) -> Self { Self { config : self . config . sample_rate ( sample_rate ) , .. self } }
Set the Sample rate.
Set the Sample rate .
self
sample_rate
i32
self
sample_rate
i32
example
None