microsoft / ApplicationInsights-PHP

Azure Application Insights SDK for PHP
https://azure.microsoft.com/services/application-insights/
Other
108 stars 92 forks source link

Use batching and retries when sending to backend (was: 503 Service Unavailable) #50

Open rogerywoo opened 6 years ago

rogerywoo commented 6 years ago

I often get 503 Service Unavailable from Microsoft ApplicationInsight. So, you should send the telemetry data asynchronously. To get around it I am using Laravel's queues.

Also from Microsoft:

"Officially supported SDKs have retry mechanism, and proper back-off logic, which would mitigate the impact on the app and ingestion issues. "

SergeyKanzhelev commented 6 years ago

PHP SDK is not officially supported. We definitely need to add retry mechanism. Marking as an enhancement. I'd be happy to assist and accept PR if you are willing to contribute