Return a copy of the current thread-local context merged with the context from *bound_logger*. .. versionadded:: 21.2.0 .. deprecated:: 22.1.0
(bound_logger: BindableLogger)
| 240 | |
| 241 | |
| 242 | def get_merged_threadlocal(bound_logger: BindableLogger) -> Context: |
| 243 | """ |
| 244 | Return a copy of the current thread-local context merged with the context |
| 245 | from *bound_logger*. |
| 246 | |
| 247 | .. versionadded:: 21.2.0 |
| 248 | .. deprecated:: 22.1.0 |
| 249 | """ |
| 250 | _deprecated() |
| 251 | ctx = _get_context().copy() |
| 252 | ctx.update(structlog.get_context(bound_logger)) |
| 253 | |
| 254 | return ctx |
| 255 | |
| 256 | |
| 257 | def merge_threadlocal( |
searching dependent graphs…