app-insights-php/client
PHP wrapper for microsoft/application-insights that provides a configurable telemetry client for Microsoft App Insights. Simplifies integration (incl. bundle use) and validates telemetry against the 64KB size limit, throwing exceptions when exceeded.
ServiceProvider, Facade) remain.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Deprecated Package | High | Fork/maintain or migrate to official Azure Monitor PHP SDK. |
| Azure Dependency | Medium | Validate Azure backend (App Insights/Log Analytics) health. |
| Cold Start Latency | Low | Use auto-instrumentation for critical paths. |
| Data Privacy | Medium | Mask PII via App Insights filtering rules. |
| PHP 8.2+ Compatibility | Resolved | Test thoroughly; no major breaking changes reported. |
composer require app-insights-php/client:^0.3.0)..env:
APP_INSIGHTS_INSTRUMENTATION_KEY=your_key_here
TelemetryClient.| Component | Compatibility | Notes |
|---|---|---|
| Laravel 9/10 | High | PHP 8.2 support added; test thoroughly. |
| Monolog | High | Uses Monolog handlers for logs. |
| Guzzle HTTP | High | For HTTP dependency tracking. |
| Queue Workers | Low | Manual instrumentation needed. |
| Horizon | Low | No native support. |
| Azure AD Auth | Medium | Requires additional setup. |
| Failure Scenario | Impact | Recovery Strategy |
|---|---|---|
| Package breaks in future PHP versions | Deployment blocker | Fork/patch or switch to official SDK. |
| Azure outage | No telemetry ingestion | Fallback to local logging (Monolog). |
| Instrumentation key misconfiguration | No data sent | Validate .env and Azure backend. |
| High telemetry volume | Cost overruns | Adjust sampling or retention policies. |
| Distributed tracing failures | Incomplete traces | Verify context propagation in microservices. |
How can I help you explore Laravel packages today?