Skip to content

Add WithOtlpExporter() to infrastructure resources in Boilerplate AppHost #12336

@yasmoradi

Description

@yasmoradi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions