diff --git a/Continuity.AuthServer/Program.cs b/Continuity.AuthServer/Program.cs index 39bf472..9102932 100644 --- a/Continuity.AuthServer/Program.cs +++ b/Continuity.AuthServer/Program.cs @@ -40,17 +40,15 @@ var loggerFactory = LoggerFactory.Create(loggingBuilder => loggingBuilder.AddFile("logs/Continuity.AuthServer-{Date}.log", LogLevel.Trace); loggingBuilder.AddFile("logs/Continuity.AuthServer-{Date}.json.log", LogLevel.Trace, isJson: true); loggingBuilder.AddConsole(); - loggingBuilder.AddOpenTelemetry(); + loggingBuilder.AddOpenTelemetry(logging => + { + logging.AddOtlpExporter(); + logging.IncludeFormattedMessage = true; + logging.IncludeScopes = true; + }); }); var configuration = builder.Configuration; - -builder.Logging.AddOpenTelemetry(logging => -{ - logging.IncludeFormattedMessage = true; - logging.IncludeScopes = true; -}); - builder.Services.AddOpenTelemetry() .WithMetrics(metrics => { diff --git a/docker-compose.yml b/docker-compose.yml index 44925ff..b32b8a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,7 +34,7 @@ services: db: container_name: continuity-db - image: postgres:16.1-alpine + image: postgres:16.4-alpine restart: always environment: - POSTGRES_USER=continuity @@ -52,12 +52,13 @@ services: mem_limit: 1024m aspire: - image: mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0 + image: mcr.microsoft.com/dotnet/aspire-dashboard:8.1 networks: - continuity environment: - DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true - Dashboard:Frontend:AuthMode=Unsecured + - ASPIRE_ALLOW_UNSECURED_TRANSPORT=true ports: - 18888:18888