filter out noisy sentry (#3191)

This commit is contained in:
Kian Jones
2025-07-07 11:38:07 -07:00
committed by GitHub
parent 0312ee05bc
commit ad67ed761d

View File

@@ -163,7 +163,8 @@ async def lifespan(app_: FastAPI):
# TODO: Make this more robust
def filter_out_sentry_errors(event, hint):
if (
"Fiel processing Failed" in str(event.get("exception"))
"File processing failed" in str(event.get("exception"))
or "Default chunking also failed for" in str(event.get("exception"))
or "Failed to embed batch of size 32" in str(event.get("exception"))
or "`inputs` must have less than 512 tokens" in str(event.get("exception"))
):