Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
349
def
_get_context() -> Context:
350
try
:
351
return
_CONTEXT.context
352
except
AttributeError:
353
_CONTEXT.context = {}
354
355
return
_CONTEXT.context
Callers
5
get_threadlocal
Function · 0.85
get_merged_threadlocal
Function · 0.85
merge_threadlocal
Function · 0.85
bind_threadlocal
Function · 0.85
unbind_threadlocal
Function · 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…