pub fn versioned_log_emitter(
        &self,
        name: impl Into<Cow<'static, str>>,
        version: Option<&'static str>,
    ) -> LogEmitter {
        let name = name.into();

        let component_name = if name.is_empty() {
            Cow::Borrowed(DEFAULT_COMPONENT_NAME)
        } else {
            name
        };

        LogEmitter::new(
            InstrumentationLibrary::new(component_name, version.map(Into::into), None),
            Arc::downgrade(&self.inner),
        )
    }
/// Create a new version `LogEmitter` instance.
Create a new version `LogEmitter` instance.
Create a new version ` LogEmitter ` instance .
pub fn versioned_log_emitter(
        &self,
        name: impl Into<Cow<'static, str>>,
        version: Option<&'static str>,
    ) -> LogEmitter {
        let name = name.into();
        let component_name = if name.is_empty() {
            Cow::Borrowed(DEFAULT_COMPONENT_NAME)
        } else {
            name
        };
        LogEmitter::new(
            InstrumentationLibrary::new(component_name, version.map(Into::into), None),
            Arc::downgrade(&self.inner),
        )
    }
pub fn versioned_log_emitter ( & self , name : impl Into < Cow < ' static , str > > , version : Option < & ' static str > , ) -> LogEmitter { let name = name . into ( ) ; let component_name = if name . is_empty ( ) { Cow :: Borrowed ( DEFAULT_COMPONENT_NAME ) } else { name } ; LogEmitter :: new ( InstrumentationLibrary :: new ( component_name , version . map ( Into :: into ) , None ) , Arc :: downgrade ( & self . inner ) , ) }
Create a new version `LogEmitter` instance.
Create a new version ` LogEmitter ` instance .
&self
name
impl Into<Cow<'static, str>>
version
Option<&'static str>
&self
name
impl Into<Cow<'static, str>>
version
Option<&'static str>