GitXplorerGitXplorer
l

correlation_e2e

public
0 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
f89cac0aa848671253c9aa8c38b1b777bfca4083

cleanup

committed 8 years ago
Unverified
8baa583ab770f0a9ebf9bbcdad44416ed6e55f37

Add errors

committed 8 years ago
Unverified
da089bcd09afeca9ed3f7eea0a5765a7e0f9576b

Update README.md

committed 8 years ago
Unverified
f28632c273df1c1b47f29afd511e5c09a973cecc

Update README.md

committed 8 years ago
Unverified
5cb887c7cbd3740fc3c85c621ea0e60874d78cc1

Update README.md

committed 8 years ago
Unverified
6e7ff4b5992cd38ec156edf99d6d5a170a16d590

update packages

committed 8 years ago

README

The README file for this repository.

Correlation End-to-End Demo

This repo demonstrates AppInsights prototype with Activity (correlation) support and gives instruction on how to use it in client application. You may create your own services from the template or use samples.

Prerequisites

Creating an application

  1. Clone this repo. It contains template project that is configured to run on .NET core 2.0 and simulates correlation support in ASP.NET Core. It is self-contained and could be deployed as Azure Web App. It also has AppInsights prototype with correlation support pre-installed.

  2. Create back-end service from the template; sample: ping service

  • Configure AppInsights: add instrumentation key to appsettings.json
  "ApplicationInsights": {
    "InstrumentationKey": "**your app insights instrumentation key**"
  }
  • Publish it to Azure WebApp or run locally
  1. Create front-end service from the tempate; sample front-end service
  • Configure AppInsights similarly to front-end service.
  • Call backend service on incoming request:
 app.Run(async (context) =>
 {
     var response = await client.GetAsync("http://<your back end url>/");
     await context.Response.WriteAsync("Hello World!");
 });
  • Publish it or run locally

Sample services

You can play with sample services

Please let @lmolkova know if you want to access AppInsights resources in the portal, I'll give you access.

Demo

1. Call front-end service from the browser

2. Go to front-end Application Insights resource in http://ms.portal.azure.com/

  • Open Search blade, wait for the events to appear

  • Click on any event: blade with event description opens, select "All available telemetry for this root operation"

Note:

  • there is one request event from frontend (request from backend appears in backend AppInsights resource).
  • there is dependency event for backend call
  • traces also share the same operation Id and could be correlated.

3. Search by Request-Id

4. Analytics (Kusto)

union requests, dependencies, traces | where operation_Id == "RD0003FF21406D-18b39d3-1"

Known Issues

None!