Puts each request's headers, user and session on its span. Add it to your endpoint (Phoenix) or router (Plug), as early as you can:
# lib/my_app_web/endpoint.ex
plug Zharp.Plug- All request and response headers, as
http.request.header.<name>andhttp.response.header.<name>; secrets (authorization, cookies, API keys, tokens, sessions) as[REDACTED], so you see one was sent but never its value.capture_headers: falseturns this off;capture_headers: [redact: ["x-tenant"]]filters more names. - The user and session a Zharp browser or mobile SDK sends in
baggage, asenduser.idandsession.id. - Plug.Router apps: the span named by the route (
GET /orders/:id); Phoenix names its own.
The request's span itself comes from Bandit or Cowboy; Zharp starts their instrumentation.