pub fn child(&self) -> Self {
        let mut rng = rand::thread_rng();

        Self {
            id: rng.gen(),
            version: self.version,
            trace_id: self.trace_id,
            parent_id: Some(self.id),
            flags: self.flags,
        }
    }
/// Generate a child of the current TraceContext and return it.
///
/// The child will have a new randomly genrated `id` and its `parent_id` will be set to the
/// `id` of this TraceContext.
Generate a child of the current TraceContext and return it.
Generate a child of the current TraceContext and return it .
pub fn child(&self) -> Self {
        let mut rng = rand::thread_rng();
        Self {
            id: rng.gen(),
            version: self.version,
            trace_id: self.trace_id,
            parent_id: Some(self.id),
            flags: self.flags,
        }
    }
pub fn child ( & self ) -> Self { let mut rng = rand :: thread_rng ( ) ; Self { id : rng . gen ( ) , version : self . version , trace_id : self . trace_id , parent_id : Some ( self . id ) , flags : self . flags , } }
Generate a child of the current TraceContext and return it.
Generate a child of the current TraceContext and return it .
&self
&self