import json


def read_runtime_stats(stats_filepath):
    """Read from a file runtime statistics used for generating spans."""
    with open(stats_filepath) as json_file:
        return json.load(json_file)