This repository allows to visualize traces, logs, and metrics all in one in the new .NET Aspire dashboard tool.
- Net 8 installled.
- Docker Desktop installed.
-
Clone o download this repository:
git clone https://github.com/camiloJaramillo5/aspire-opentelemetry/
-
Download the docker image
docker run --rm -it -p 18888:18888 -p 4317:18889 -d --name aspire-dashboard -e DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS='true' mcr.microsoft.com/dotnet/nightly/aspire-dashboard:8.0.0-preview.6
-
Build and run the web API project.
-
Hit the endpoint repeatedly and wait some time for OTEL to collect and export the data.
-
Verify in the URL http://localhost:18888/ the results. You should see similar results as these: