pub fn new(url: impl AsRef<str>, application_name: impl AsRef<str>) -> Self {
        Self {
            url: url.as_ref().to_owned(),
            application_name: application_name.as_ref().to_owned(),
            tags: HashMap::new(),
            sample_rate: 100i32,
        }
    }
/// Create a new PyroscopeConfig object. url and application_name are required.
/// tags and sample_rate are optional. If sample_rate is not specified, it will default to 100.
/// # Example
/// ```ignore
/// let config = PyroscopeConfig::new("http://localhost:8080", "my-app");
/// ```
Create a new PyroscopeConfig object. url and application_name are required.
tags and sample_rate are optional. If sample_rate is not specified, it will default to 100.
Create a new PyroscopeConfig object . url and application_name are required . tags and sample_rate are optional . If sample_rate is not specified it will default to 100 .
pub fn new(url: impl AsRef<str>, application_name: impl AsRef<str>) -> Self {
        Self {
            url: url.as_ref().to_owned(),
            application_name: application_name.as_ref().to_owned(),
            tags: HashMap::new(),
            sample_rate: 100i32,
        }
    }
pub fn new ( url : impl AsRef < str > , application_name : impl AsRef < str > ) -> Self { Self { url : url . as_ref ( ) . to_owned ( ) , application_name : application_name . as_ref ( ) . to_owned ( ) , tags : HashMap :: new ( ) , sample_rate : 100i32 , } }
Create a new PyroscopeConfig object.
Create a new PyroscopeConfig object .
url
impl AsRef<str>
application_name
impl AsRef<str>
url
impl AsRef<str>
application_name
impl AsRef<str>
example
None