/// Record OpenTelemetry [`attributes`] for the given values.
///
/// [`attributes`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/tracer/struct.SpanBuilder.html#structfield.attributes
Record OpenTelemetry [`attributes`] for the given values.
Record OpenTelemetry [ ` attributes ` ] for the given values .
fn on_record(&self, id: &Id, values: &Record<'_>, ctx: Context<'_, S>) {
        let span = ctx.span(id).expect("Span not found, this is a bug");
        let mut extensions = span.extensions_mut();
        if let Some(builder) = extensions.get_mut::<api::SpanBuilder>() {
            values.record(&mut SpanAttributeVisitor(builder));
        }
    }
fn on_record ( & self , id : & Id , values : & Record < ' _ > , ctx : Context < ' _ , S > ) { let span = ctx . span ( id ) . expect ( " " ) ; let mut extensions = span . extensions_mut ( ) ; if let Some ( builder ) = extensions . get_mut :: < api :: SpanBuilder > ( ) { values . record ( & mut SpanAttributeVisitor ( builder ) ) ; } }
Record OpenTelemetry [`attributes`] for the given values.
Record OpenTelemetry [ ` attributes ` ] for the given values .
&self
id
&Id
values
&Record<'_>
ctx
Context<'_, S>