|
|
|
|
|
by anandnair
491 days ago
|
|
This looks cool. My concern about adding such a middleware to the API routes is the potential performance hit. Assuming this middleware would call your APIs to track metrics, wouldn't it degrade the performance of the existing system by consuming some CPU power? |
|
Anecdotally, I noticed zero increase in CPU usage when I added the Apitally SDK to a FastAPI app that handles ~100 req/s. In comparison, adding OpenTelemetry was very noticeable, at least doubling the CPU usage.