MCPcopy Create free account
hub / github.com/hynek/structlog / _get_context

Function _get_context

src/structlog/threadlocal.py:349–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347
348
349def _get_context() -> Context:
350 try:
351 return _CONTEXT.context
352 except AttributeError:
353 _CONTEXT.context = {}
354
355 return _CONTEXT.context

Callers 5

get_threadlocalFunction · 0.85
get_merged_threadlocalFunction · 0.85
merge_threadlocalFunction · 0.85
bind_threadlocalFunction · 0.85
unbind_threadlocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…