File size: 553 Bytes
a5784e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
Logging Context Variables
"""

from contextvars import ContextVar

# =============================================================================
# Context Variables (Thread-safe request tracking)
# =============================================================================

# Request ID for the current context (e.g., 'akvdate')
request_id_var: ContextVar[str] = ContextVar("request_id", default="       ")

# Source identifier for the current context (e.g., 'SERVER', 'PROXY')
source_var: ContextVar[str] = ContextVar("source", default="SYS")