def _set_metadata_attributes(span: Span, metadata: Dict[str, Any]) -> None:
    """Set metadata attributes on a span.

    Args:
        span: Span to set attributes on.
        metadata: Metadata to extract attributes from.
    """
    for k, v in metadata.items():
        set_span_attribute_safely(
            span, f"{SpanAttributes.EVAL.METADATA}.{k}", v
        )
        if k in _EXPLANATION_KEYS:
            set_span_attribute_safely(span, SpanAttributes.EVAL.EXPLANATION, v)
Set metadata attributes on a span.

    Args:
        span: Span to set attributes on.
        metadata: Metadata to extract attributes from.
    
src/feedback/trulens/feedback/computer.py