[feat] add observability config

This commit is contained in:
Azamat 2026-03-20 21:38:28 +03:00
parent a930185754
commit cb4560db5c
4 changed files with 268 additions and 71 deletions

View file

@ -16,6 +16,19 @@ class HttpConfig:
@dataclass(frozen=True, slots=True)
class LoggingConfig:
level: str
output: str
format: str
file_path: str | None
@dataclass(frozen=True, slots=True)
class MetricsConfig:
enabled: bool
@dataclass(frozen=True, slots=True)
class TracingConfig:
enabled: bool
@dataclass(frozen=True, slots=True)
@ -39,5 +52,7 @@ class AppConfig:
app: AppSectionConfig
http: HttpConfig
logging: LoggingConfig
metrics: MetricsConfig
tracing: TracingConfig
otel: OtelConfig
security: SecurityConfig