fix(auth): otel export logging
This commit is contained in:
parent
50caf0464b
commit
66ca9c6fa9
2 changed files with 9 additions and 10 deletions
|
@ -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 =>
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue