Zharp.Req (Zharp v0.1.0)

Copy Markdown View Source

Carries the current trace to the services a Req client calls (traceparent), so their spans join the caller's trace:

req = Req.new(base_url: "https://billing.internal") |> Zharp.Req.attach()

The call's own span comes from Finch, with nothing to add.

Summary

Functions

Adds the trace headers to every request made with this Req struct.

Functions

attach(req)

Adds the trace headers to every request made with this Req struct.