import json


def get_span_json(filename: str) -> str:
    with open(f"tests/fixtures/spans/{filename}.json") as f:
        return f.read()


def get_otlp_wire_payload(filename: str) -> dict:
    """Load an OTLP wire format payload as a dict."""
    with open(f"tests/fixtures/spans/{filename}.json") as f:
        return json.load(f)


__all__ = ["get_otlp_wire_payload", "get_span_json"]
