feat(core): trace_id ContextVar и инициализация пакета elexam_core
- elexam_core стал полноценным пакетом (__init__.py вместо .gitkeep) - context.py: ContextVar trace_id для трассировки в рамках запроса
This commit is contained in:
parent
a4c5748325
commit
8b243355aa
3
src/elexam_core/context.py
Normal file
3
src/elexam_core/context.py
Normal file
@ -0,0 +1,3 @@
|
||||
from contextvars import ContextVar
|
||||
|
||||
trace_id_context: ContextVar[str | None] = ContextVar("trace_id", default=None)
|
||||
Loading…
Reference in New Issue
Block a user