Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
add excluded handlers and ungroup status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
gphorvath committed Sep 30, 2024
1 parent 455048f commit e85a9fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/leapfrogai_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ async def lifespan(app: FastAPI):

app = FastAPI(lifespan=lifespan)

Instrumentator().instrument(app).expose(app)
Instrumentator(
excluded_handlers=["/healthz", "/metrics"],
should_group_status_codes=False,
).instrument(app).expose(app)


@app.exception_handler(RequestValidationError)
Expand Down

0 comments on commit e85a9fd

Please sign in to comment.