Crosswake.Live.Threadline (crosswake_threadline v0.1.0)

Copy Markdown View Source

LiveView on_mount thread_id metadata bridge.

Reads _crosswake_thread_id from the LiveView connect params and sets it as crosswake_thread_id in the process Logger.metadata. The Plug is the sole mint authority, and an absent param is a valid gap until Phase 93.

Optional dependency

This module is only available when {:phoenix_live_view, "~> 1.1"} is declared as a dependency. After adding :phoenix_live_view to your deps, run mix deps.compile --force crosswake_threadline (stale-BEAM caveat: optional deps are not compiled by default until forced).