Skip to content

Commit

Permalink
Comment out tracing from the host
Browse files Browse the repository at this point in the history
- It fills up the console, not suitable to have enabled by default
  • Loading branch information
AndersAbel committed May 23, 2024
1 parent fd3125a commit b63a218
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hosts/main/HostingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ internal static WebApplication ConfigureServices(this WebApplicationBuilder buil
.AddMeter(Pages.Telemetry.ServiceName)
.AddPrometheusExporter());

openTelemetry.WithTracing(t => t
.AddSource(IdentityServerConstants.Tracing.Basic)
.AddSource(IdentityServerConstants.Tracing.Cache)
.AddSource(IdentityServerConstants.Tracing.Services)
.AddSource(IdentityServerConstants.Tracing.Stores)
.AddSource(IdentityServerConstants.Tracing.Validation)
.AddAspNetCoreInstrumentation()
.AddConsoleExporter());
//openTelemetry.WithTracing(t => t
// .AddSource(IdentityServerConstants.Tracing.Basic)
// .AddSource(IdentityServerConstants.Tracing.Cache)
// .AddSource(IdentityServerConstants.Tracing.Services)
// .AddSource(IdentityServerConstants.Tracing.Stores)
// .AddSource(IdentityServerConstants.Tracing.Validation)
// .AddAspNetCoreInstrumentation()
// .AddConsoleExporter());

return builder.Build();
}
Expand Down

0 comments on commit b63a218

Please sign in to comment.