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 may need to be optimized. This allows you to proactively make changes to your web application if performance degrades.
How can SDKs be monitored?
commercetools SDKs use a middleware approach for creating an API client. You can stack middleware together to modify the request or response based on your requirements.
This approach makes it possible to collect metrics or details about each request as the middleware gives an entry point before the request is sent and right after the response is returned.