Problem
Infrastructure resources in Boilerplate.Server.AppHost/Program.cs (Redis, databases, Minio, Keycloak) do not export OpenTelemetry traces/metrics to the Aspire dashboard. Without .WithOtlpExporter(), observability data from these containers is not visible alongside the application telemetry in the dashboard.
Solution
Add .WithOtlpExporter() to each infrastructure resource:
redis-cache and redis-persistent
sqlserver (SqlServer)
postgresserver (PostgreSQL)
mysqlserver (MySQL)
s3 (Minio)
keycloak
Files to change
src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost/Program.cs
Problem
Infrastructure resources in
Boilerplate.Server.AppHost/Program.cs(Redis, databases, Minio, Keycloak) do not export OpenTelemetry traces/metrics to the Aspire dashboard. Without.WithOtlpExporter(), observability data from these containers is not visible alongside the application telemetry in the dashboard.Solution
Add
.WithOtlpExporter()to each infrastructure resource:redis-cacheandredis-persistentsqlserver(SqlServer)postgresserver(PostgreSQL)mysqlserver(MySQL)s3(Minio)keycloakFiles to change
src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost/Program.cs