Download the PHP package halloverden/azure-application-insights without Composer
On this page you can find all versions of the php package halloverden/azure-application-insights. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download halloverden/azure-application-insights
More information about halloverden/azure-application-insights
Files in halloverden/azure-application-insights
Package azure-application-insights
Short Description This project extends the Application Insights API surface to support PHP.
License MIT
Homepage https://github.com/Microsoft/ApplicationInsights-PHP
Informations about the package azure-application-insights
Azure Application Insights
This project was forked from and builds upon the official php sdk from windows, which is no longer mantained. As of now, it only supports exception logging.
About:
- Azure Application Insights
- Official Github Repository From Microsoft
- Supported SDKs
- GitHub Announcements
Status
This SDK is NOT maintained or supported by Microsoft even though they've contributed to it in the past. Note that Azure Monitor only provides support when using supported SDKs.
Requirements
- PHP version ^7.1
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute:
Usage
Once installed, you can send exception telemetry to Application Insights. Here are a few samples.
Note: before you can send data to you will need an instrumentation key. Please see the Getting an Application Insights Instrumentation Key section for more information.
Initializing the client and setting the instrumentation key and other optional configurations
Setup Operation context
For correct Application Insights reporting you need to setup Operation Context, reference to Request