feat: 初始化 Gateway 仓库

This commit is contained in:
root
2026-01-29 05:25:02 +00:00
commit 2b6402058d
10 changed files with 437 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
namespace TakeoutSaaS.ApiGateway.Configuration;
/// <summary>
/// 网关 OpenTelemetry 导出配置。
/// </summary>
public class GatewayOpenTelemetryOptions
{
/// <summary>
/// 是否启用 OpenTelemetry。
/// </summary>
public bool Enabled { get; set; } = true;
/// <summary>
/// 服务名称,用于 Resource 标识。
/// </summary>
public string ServiceName { get; set; } = "TakeoutSaaS.ApiGateway";
/// <summary>
/// OTLP 导出端点http/https
/// </summary>
public string? OtlpEndpoint { get; set; }
}