feat: switching to logging via OpenTelemetry

This commit is contained in:
2025-08-05 15:47:35 +03:00
parent 802acad570
commit 46046d589e
5 changed files with 47 additions and 32 deletions

View File

@@ -24,15 +24,16 @@ public class LoggingRequest
public string? LogFilePath { get; set; }
/// <summary>
/// Gets or sets the API key for integrating with Seq, a log aggregation service.
/// If provided, logs will be sent to a Seq server using this API key.
/// Gets or sets the endpoint URL for the OpenTelemetry Collector.
/// This property specifies the OTLP endpoint to which logs will be sent.
/// </summary>
public string? ApiKeySeq { get; set; }
public string? OpenTelemetryEndpoint { get; set; }
/// <summary>
/// Gets or sets the server URL for the Seq logging service.
/// This property specifies the Seq server endpoint to which logs will be sent.
/// If <see cref="ApiKeySeq"/> is provided, logs will be sent to this server.
/// Gets or sets the logical service name used for OpenTelemetry logging.
/// This name will be attached to log entries as the "service.name" resource attribute,
/// allowing logs to be grouped and filtered by service in backends like Loki or Grafana.
/// </summary>
public string? ApiServerSeq { get; set; }
public string? OpenTelemetryServiceName { get; set; }
}