OpenTelemetrySample with .NET Core 3.1

This is a demo project to show how to use OpenTelemetry for tracing on .NET Core 3.1

Demo scenaio

  1. Website
  2. WebAPI
  3. Redis

image

Step 0 : Init application

docker run -d -p 9411:9411 openzipkin/zipkin

Step 1 : Run Website with as below

https://localhost:44338/api/WeatherForecast

image

Step 2 : Open zipkin url as below

http://localhost:9411/

你可以依據剛剛的請求,來看在 zipkin 中是如何呈現 trace 的內容 image