mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
run api ref gen
This commit is contained in:
parent
9bbca08862
commit
034fa72b9c
50 changed files with 685 additions and 469 deletions
29
docs/python-sdk/fastmcp-server-middleware-timing.mdx
Normal file
29
docs/python-sdk/fastmcp-server-middleware-timing.mdx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: timing
|
||||
sidebarTitle: timing
|
||||
---
|
||||
|
||||
# `fastmcp.server.middleware.timing`
|
||||
|
||||
|
||||
Timing middleware for measuring and logging request performance.
|
||||
|
||||
## Classes
|
||||
|
||||
### `TimingMiddleware` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/server/middleware/timing.py#L10" target="_blank">↗</a></sup>
|
||||
|
||||
|
||||
Middleware that logs the execution time of requests.
|
||||
|
||||
Only measures and logs timing for request messages (not notifications).
|
||||
Provides insights into performance characteristics of your MCP server.
|
||||
|
||||
|
||||
### `DetailedTimingMiddleware` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/server/middleware/timing.py#L60" target="_blank">↗</a></sup>
|
||||
|
||||
|
||||
Enhanced timing middleware with per-operation breakdowns.
|
||||
|
||||
Provides detailed timing information for different types of MCP operations,
|
||||
allowing you to identify performance bottlenecks in specific operations.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue