feat: Implemented observability layer and benchmarking

This commit is contained in:
2026-07-03 11:20:23 +05:30
parent 9713a12591
commit c9ec297a5f
7 changed files with 202 additions and 101 deletions

View File

@@ -4,9 +4,12 @@ from datetime import datetime
from typing import Any, Dict, List
from app.core.exceptions import InvalidCSVException
from app.core.observability import time_it
REQUIRED_COLUMNS = {"txn_id", "date", "merchant", "amount"}
@time_it("Parse and Validate CSV")
def parse_and_validate_csv(content: bytes) -> List[Dict[str, Any]]:
"""
Parses CSV content from bytes, validates headers, and checks field types.