GitXplorerGitXplorer
l

correlation_e2e

public
0 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
3521ecc2cf67e659783da3da015fb348f136fc6b

Update README.md

committed 8 years ago
Unverified
7228da3a09a689477f18581b45086bf257060238

update AspNetCore to 2.0

committed 8 years ago
Unverified
8294c4b02ce59588ec076fb879a0626411d0ffa5

Update README.md

committed 8 years ago
Unverified
39a5e395975d4c24a330d36bd023e8fdcd59f6b3

Update README.md

committed 8 years ago
Unverified
383358f53d22c2656a85882785a13a6cd4bc8e10

Use AppInsights 2.1-beta2, remove workarounds

committed 8 years ago
Unverified
a950da63774732a8d914e048765d67d2c7f93819

one ikey for frontend and ping

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!