Monitor and observe your SDK.
What is application performance monitoring?
Using an Application Performance Monitoring (APM) service provides you with insights into how well your web application performs. An APM can show which parts of the application are running within their bounds and expectations, as well as which parts you could optimize. This allows you to proactively make changes to your web application if performance degrades.
How are SDKs monitored?
commercetools SDKs use a middleware approach for creating API clients. You can stack middleware to modify the request or response based on your requirements.
This approach makes it possible to collect metrics or details about each request. The middleware gives an entry point before sending the request, and right after receiving the response.