def _convert_events_to_otel_spans(events_df: pd.DataFrame) -> List[OtelSpan]:
    """Convert a DataFrame of Event ORM table rows to a list of OtelSpans.

    Args:
        events_df: DataFrame containing Event ORM table rows

    Returns:
        A list of OtelSpans for all successfully converted events
    """
    serializable_spans: List[OtelSpan] = []

    for _, row in events_df.iterrows():
        if span := _map_event_to_otel_span(row):
            serializable_spans.append(span)

    return serializable_spans
Convert a DataFrame of Event ORM table rows to a list of OtelSpans.

    Args:
        events_df: DataFrame containing Event ORM table rows

    Returns:
        A list of OtelSpans for all successfully converted events
    
src/dashboard/trulens/dashboard/utils/dashboard_utils.py