Download the PHP package stellarsecurity/application-insights-laravel without Composer
On this page you can find all versions of the php package stellarsecurity/application-insights-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stellarsecurity/application-insights-laravel
More information about stellarsecurity/application-insights-laravel
Files in stellarsecurity/application-insights-laravel
Package application-insights-laravel
Short Description Stellar Security - Application Insights style telemetry for Laravel (HTTP, DB, jobs, mail, dependencies).
License MIT
Informations about the package application-insights-laravel
Stellar Application Insights for Laravel
A lightweight Laravel package that sends telemetry to Azure Application Insights (requests, exceptions, and custom events).
Built by https://stellarsecurity.com
This package is designed to be safe by default:
- Telemetry must never break your application
- Queue sending is disabled by default to avoid silent data loss
- Connection String is the preferred configuration (modern App Insights)
Requirements
- PHP >= 8.1
- Laravel 10+ (also compatible with Laravel 11/12 when using matching illuminate components)
- Guzzle 7.x
Installation
Configuration
Publish the config (if your package provides a publish command). If not, create config/stellar-ai.php in your app.
Recommended: Connection String
Set one of the following in your .env:
You may also use the package-specific key:
Fallback: Instrumentation Key only
Example config (config/stellar-ai.php)
Queue mode (optional)
By default, telemetry is sent directly (HTTP) to avoid losing data if no workers are running.
If you want to use queues:
Then ensure a worker is running in production:
If you enable queue mode without a running worker, telemetry will be delayed (and may appear missing).
What is tracked
Depending on your middleware/service wiring, the package can track:
- HTTP requests
- Exceptions
- Custom events (EventData)
- Dependencies (if you emit dependency telemetry)
Viewing data in Azure
In Azure Portal → Application Insights → Logs (Analytics), run:
If you only want requests:
Common troubleshooting
I see no data at all
- Confirm your app is using the correct Application Insights resource.
- Confirm a valid instrumentation key is resolved.
- If using a connection string, it must include
InstrumentationKey=...
- If using a connection string, it must include
- If queue mode is enabled, confirm workers are running.
- Clear and rebuild config cache after changing
.env:
Azure “Search” looks empty, but Logs has data
This is usually a UI filtering issue. Use Logs (Analytics) queries to confirm ingestion.
License
MIT