pub async fn write_histogram(
        &mut self,
        tag: impl ToString,
        event_meta: impl Into<EventMeta>,
        histogram: impl IntoHistogram,
    ) -> Result<()> {
        let summary = Summary::from_histogram(tag, histogram)?;
        let event = event_meta.into().build_with_summary(summary);
        self.events_writer.send(event).await?;
        if self.auto_flush {
            self.events_writer.flush().await?;
        }
        Ok(())
    }
/// Write a histogram summary asynchronously.
Write a histogram summary asynchronously.
Write a histogram summary asynchronously .
pub async fn write_histogram(
        &mut self,
        tag: impl ToString,
        event_meta: impl Into<EventMeta>,
        histogram: impl IntoHistogram,
    ) -> Result<()> {
        let summary = Summary::from_histogram(tag, histogram)?;
        let event = event_meta.into().build_with_summary(summary);
        self.events_writer.send(event).await?;
        if self.auto_flush {
            self.events_writer.flush().await?;
        }
        Ok(())
    }
pub async fn write_histogram ( & mut self , tag : impl ToString , event_meta : impl Into < EventMeta > , histogram : impl IntoHistogram , ) -> Result < ( ) > { let summary = Summary :: from_histogram ( tag , histogram ) ? ; let event = event_meta . into ( ) . build_with_summary ( summary ) ; self . events_writer . send ( event ) . await ? ; if self . auto_flush { self . events_writer . flush ( ) . await ? ; } Ok ( ( ) ) }
Write a histogram summary asynchronously.
Write a histogram summary asynchronously .
&mut self
tag
impl ToString
event_meta
impl Into<EventMeta>
histogram
impl IntoHistogram
&mut self
tag
impl ToString
event_meta
impl Into<EventMeta>
histogram
impl IntoHistogram