f94f0bb385
Added Result code to dependency telemetry (ajax) |
||
---|---|---|
JavaScript | ||
dist | ||
.gitattributes | ||
.gitignore | ||
API-reference.md | ||
Common.props | ||
EnlistmentRoot.marker | ||
Global.props | ||
LICENSE | ||
NuGet.config | ||
NuGet.exe | ||
NuGet.targets | ||
Package.targets | ||
PostTestScript.cmd | ||
PushNugetPackages.cmd | ||
README.md | ||
RunTestsInBrowser.ps1 | ||
ThirdPartyNotices.txt | ||
bower.json | ||
package.json | ||
runAllTests.cmd |
README.md
Microsoft Application Insights JavaScript SDK
Application Insights tells you about your app's performance and usage. By adding a few lines of code to your web pages, you get data about how many users you have, which pages are most popular, how fast pages load, whether they throw exceptions, and more. And you can add code to track more detailed user activity.
Try Application Insights with JavaScript SDK - no Azure subscription required
If you don't have an Azure subscription and would like to try Application Insights on one of your own web pages, visit Try Application Insights Now.
Get started
To use this SDK, you'll need a subscription to Microsoft Azure. (There's a free package.)
In the Azure Preview Portal, open an Application Insights resource.
Get "code to monitor my web pages" from the Quick Start page, and insert it in the head of your web pages.
Use your web pages, and then look for user and page view results in the Application Insights resource.
API reference
Data on users, page views, and exceptions are provided out of the box. You can write your own code to track specific events and metrics.
See:
To build:
- Visual Studio 2013 Ultimate with Update 4 or later
- Clone the Git repository
- Open Visual Studio solution (devenv JavaScript\Microsoft.ApplicationInsights.JavaScript.sln)
- Build solution in Visual Studio
To run check-in tests
powershell "& .\RunTestsInBrowser.ps1"
to runTests.html
in a browser (you might need to call Set-ExecutionPolicy to be able to execute the script)- Don't forget to build the solution after changing TypeScript files
- Refresh Tests.html in the browser to re-run tests
Check out the Wiki for other useful info
https://github.com/Microsoft/ApplicationInsights-JS/wiki
Contributing
We strongly welcome and encourage contributions to this project. Please read the [contributor's guide][ContribGuide] located in the ApplicationInsights-Home repository. If making a large change we request that you open an [issue][GitHubIssue] first. We follow the [Git Flow][GitFlow] approach to branching.