Skip to content

Commit

Permalink
exlude metrics endpoint from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gphorvath committed Oct 2, 2024
1 parent 6dc7fb7 commit b1a0efc
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 @@ -72,7 +72,10 @@ async def root():
Instrumentator(
excluded_handlers=["/healthz", "/metrics"],
should_group_status_codes=False,
).instrument(app).expose(app)
).instrument(app).expose(
app,
include_in_schema=False,
)


@app.exception_handler(RequestValidationError)
Expand Down

0 comments on commit b1a0efc

Please sign in to comment.