[feat] setup master from fork with fastapi + otel

This commit is contained in:
Azamat 2026-03-26 21:29:41 +03:00
parent 597eae9b97
commit 1fbf77f879
8 changed files with 310 additions and 1 deletions

View file

@ -0,0 +1,16 @@
# 002 Config From YAML and Env
Context
- The service needs readable project configuration and safe handling of sensitive values.
- The final configuration object should be easy to inject and test.
Decision
- Keep non-sensitive defaults in YAML files under `config/`.
- Read sensitive values only from environment variables.
- Merge YAML and env sources into one `AppConfig` dataclass tree in `adapter/config/`.
- Keep configuration parsing and validation outside `domain/` and `usecase/`.
Consequences
- Local configuration remains simple to inspect and version.
- Secrets stay out of committed files.
- Inner layers depend on typed config data, not on env or YAML readers.