def check_if_trulens_span(span: ReadableSpan) -> bool:
    """
    Check if a given span is a TruLens span.
    This function checks the attributes of the provided span to determine if it
    contains a TruLens-specific attribute, identified by the presence of
    `SpanAttributes.RECORD_ID`.
    Args:
        span: The span to be checked.
    Returns:
        True if the span contains the TruLens-specific attribute, False otherwise.
    """
    if not span.attributes:
        return False
    # TODO(otel, semconv): Should have this in `span.resource.attributes`!
    app_name = span.attributes.get(ResourceAttributes.APP_NAME)
    return bool(app_name)

    Check if a given span is a TruLens span.
    This function checks the attributes of the provided span to determine if it
    contains a TruLens-specific attribute, identified by the presence of
    `SpanAttributes.RECORD_ID`.
    Args:
        span: The span to be checked.
    Returns:
        True if the span contains the TruLens-specific attribute, False otherwise.
    
src/core/trulens/experimental/otel_tracing/core/exporter/utils.py