19 karma · joined February 27, 2024
Apitally is a lightweight alternative to the large, complex monitoring platforms, built to provide focused insights for REST APIs. It supports most popular frameworks across Python, JavaScript, Go, .NET, and Java.
In addition to logging API requests, Apitally can now capture application logs and correlate them with requests, giving users more context when troubleshooting API issues.
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.
To me, privacy-focused also means to avoid collecting sensitive data in the first place. I'm hoping that mostly negates the need for self-hosting, in the spirit of keeping things simple for users.
That said, I'm definitely considering to support self-hosting in the future as well, and possibly open-sourcing the rest of the codebase.
At the top of my list are Laravel (PHP) and Spring (Java), but I’m keen to hear what other frameworks would be popular here.
Being able to instrument background tasks is a great idea that I would find useful for my own projects as well. I'll consider adding that to the roadmap!
The threading.Lock usage is a bit of a precaution that might not always be necessary. However, in cases where it's not necessary, the lock will always be uncontended and then be trivial to acquire. I'll think about whether that's worth optimizing.