Skip to content

Commit

Permalink
Merge pull request #1541 from DuendeSoftware/anders/indentation
Browse files Browse the repository at this point in the history
Fix identation
  • Loading branch information
josephdecock authored May 24, 2024
2 parents 5f6f98c + b63a218 commit d3d1a5a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions hosts/main/HostingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,24 @@ internal static WebApplication ConfigureServices(this WebApplicationBuilder buil
return Task.FromResult(principal);
});

var openTelemetry = builder.Services.AddOpenTelemetry();
var openTelemetry = builder.Services.AddOpenTelemetry();

openTelemetry.ConfigureResource(r => r
.AddService(builder.Environment.ApplicationName));
openTelemetry.ConfigureResource(r => r
.AddService(builder.Environment.ApplicationName));

openTelemetry.WithMetrics(m => m
.AddMeter(Telemetry.ServiceName)
.AddMeter(Pages.Telemetry.ServiceName)
.AddPrometheusExporter());
openTelemetry.WithMetrics(m => m
.AddMeter(Telemetry.ServiceName)
.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 Expand Up @@ -150,7 +150,7 @@ internal static WebApplication ConfigurePipeline(this WebApplication app)

// health checks
app.MapHealthChecks("/health");

// local API endpoints
app.MapControllers()
.RequireAuthorization(IdentityServerConstants.LocalApi.PolicyName);
Expand Down

0 comments on commit d3d1a5a

Please sign in to comment.