12 lines
426 B
Python
12 lines
426 B
Python
from contextvars import ContextVar
|
|
|
|
# Correlation for HTTP requests
|
|
ctx_session_id = ContextVar('ctx_session_id', default=None)
|
|
ctx_user_id = ContextVar('ctx_user_id', default=None)
|
|
ctx_method = ContextVar('ctx_method', default=None)
|
|
ctx_path = ContextVar('ctx_path', default=None)
|
|
ctx_remote = ContextVar('ctx_remote', default=None)
|
|
|
|
# Correlation for background loop iterations
|
|
ctx_rid = ContextVar('ctx_rid', default=None)
|