Skip to content

aimenux/OpenTelemetryWebApiDemo

Repository files navigation

.NET

OpenTelemetryWebApiDemo

Using OpenTelemetry with webapi applications

In this demo, i m using OpenTelemetry in order to build instrumentation within a webapi application.

🚀 To run code, follow these steps :

  • Type dotnet dev-certs https --clean to clean local certificates

  • Type dotnet dev-certs https --trust -ep $env:USERPROFILE\.aspnet\https\aspnetapp.pfx -p LOCALDEVPASS

  • Type docker-compose -f "docker-compose.debug.yml" up -d

  • Open zipkin url and swagger in your browser

  • Type docker compose down

References :

Hosting ASP.NET Core images with Docker Compose over HTTPS

How to run ASP.NET Core 3.1 over HTTPS in Docker using Linux Containers

OpenTelemetryWebApiDemo

Tools : vs22, net 6.0, ef, docker, opentelemetry, zipkin