Compare commits
2 Commits
64dc595a7a
...
2d18ae7505
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d18ae7505 | ||
|
|
5761400b0d |
@ -1,11 +1,10 @@
|
||||
from typing import MutableMapping, Any
|
||||
import structlog
|
||||
from structlog.typing import EventDict
|
||||
|
||||
from elexam_core.context import trace_id_context
|
||||
|
||||
|
||||
def add_trace_id(event_dict: EventDict):
|
||||
def add_trace_id(event_dict: MutableMapping[str, Any]):
|
||||
"""
|
||||
Structlog-процессор: добавляет поле ``trace_id`` в каждую лог-запись.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user