pub fn new(url: impl AsRef<str>, application_name: impl AsRef<str>) -> Self {
        Self {
            backend: Arc::new(Mutex::new(Pprof::default())), // Default Backend
            config: PyroscopeConfig::new(url, application_name),
        }
    }
/// Create a new PyroscopeAgentBuilder object. url and application_name are required.
/// tags and sample_rate are optional.
///
/// # Example
/// ```ignore
/// let builder = PyroscopeAgentBuilder::new("http://localhost:8080", "my-app");
/// ```
Create a new PyroscopeAgentBuilder object. url and application_name are required.
tags and sample_rate are optional.
Create a new PyroscopeAgentBuilder object . url and application_name are required . tags and sample_rate are optional .
pub fn new(url: impl AsRef<str>, application_name: impl AsRef<str>) -> Self {
        Self {
            backend: Arc::new(Mutex::new(Pprof::default())), // Default Backend
            config: PyroscopeConfig::new(url, application_name),
        }
    }
pub fn new ( url : impl AsRef < str > , application_name : impl AsRef < str > ) -> Self { Self { backend : Arc :: new ( Mutex :: new ( Pprof :: default ( ) ) ) , // Default Backend config : PyroscopeConfig :: new ( url , application_name ) , } }
Create a new PyroscopeAgentBuilder object.
Create a new PyroscopeAgentBuilder object .
url
impl AsRef<str>
application_name
impl AsRef<str>
url
impl AsRef<str>
application_name
impl AsRef<str>
example
None