1
0
Форкнуть 0
ASP.NET Core web applications monitoring
Перейти к файлу
Sergey Kanzhelev cf631db1cb Merge pull request #70 from Microsoft/sergkanz/htmlhelpter
use htmlhelpter in cshtml
2015-05-08 10:13:55 -07:00
src/Microsoft.ApplicationInsights.AspNet fix the comment after modifying integration point 2015-05-08 10:12:14 -07:00
test use htmlhelpter in cshtml 2015-05-08 10:02:33 -07:00
.gitattributes PerfTest solution 2015-04-17 14:15:21 -07:00
.gitignore add wwwroot/lib into .gitignore 2015-04-25 16:33:31 -07:00
ApplicationInsights.AspNet.sln - Add Common.targets to all projects in the solution to enable automatic restore of NuGet, NPM and Bower packages during build. 2015-04-30 16:43:14 -07:00
Common.targets - Add Common.targets to all projects in the solution to enable automatic restore of NuGet, NPM and Bower packages during build. 2015-04-30 16:43:14 -07:00
LICENSE Initial commit 2015-03-17 12:39:40 -07:00
NuGet.config fix project file and remove custom nuget server 2015-04-20 15:53:35 -07:00
Readme.md edit readme.md - remove getting started and add release notes 2015-04-27 10:12:41 -07:00
global.json Move to RC - first set of changes for getting build to work 2015-04-16 16:23:54 -07:00

Readme.md

Microsoft Application Insights for Asp.Net vNext applications

This repository has a code for Application Insights monitoring of Asp.Net vNext applications. Read about contribution policies on Application Insights Home repository

Getting Started

Application Insights monitoring is a service that allows you to collect monitoring and diagnostics information about your application. Getting started guide shows how you can onboard your Asp.Net v5 web application to use Application Insights SDK.

Application Insights collects lots of out-of-the-box information like requests, exceptions and usage. It also allows to configure additional data collection. Configure guide demonstrates the most common tasks you may want to do.

Release notes

[0.30.0.1-beta](https://github.com/Microsoft/ApplicationInsights-aspnetv5/releases/tag/v0.30.0.1-beta)

Preview of Application Insights. Works only with full framework. Will compile for Core framework, but will not work for it.

Repository structure

root\
    ApplicationInsights.AspNet.sln - Main Solution

    src\
        ApplicationInsights.AspNet - Application Insights package

    test\
        ApplicationInsights.AspNet.Tests - Unit tests
        FunctionalTestUtils - test utilities for functional tests
        Mvc6Framework45.FunctionalTests - functional tests for MVC application
        WebApiShimFw46.FunctionalTests - functional tests for Web API application
        PerfTest - performance test

Developing

  1. Repository: https://github.com/microsoft/AppInsights-aspnetv5
  2. Asp.Net information: https://github.com/aspnet/home
  3. SDK is build with beta4 asp.net nuget packages so it cannot run with Visual Studio 2015 CTP6. You'll need to use dnx directly like explained in this article. Please note, that recently "k" was renamed to "dnx" - you'll need to adjust instructions accordingly.

Development is in develop branch. Master branch has latest stable release.

Running and writing tests

There are two sets of tests unit tests and functional tests. Please use unit tests for all features testing. The purpose of functional tests is just end-to-end validation of functionality on sample applications.

Functional tests Functional tests are regular web applications with unit tests integrated into them. Application can be compiled as a regular web application as well as set of tests. Typical functional test will do the following:

  1. Host the current project in In-Proc server.
  2. Initialize application insights telemetry channel.
  3. Initiate request to self hosted web application using HttpClient.
  4. Check data received in telemetry channel.

Those are modifications made for regular web application to make it work this way:

Add dependencies to project.json:

"FunctionalTestUtils": "1.0.0-*",
"xunit.runner.aspnet": "2.0.0-aspnet-beta5-*",

and test command:

"test": "xunit.runner.aspnet"

Add this initialization logic to Startup.cs:

services.AddFunctionalTestTelemetryChannel();

Running Tests Open a developer command prompt, navigate to project folder and run:

dnx . test