tesla_request_id v0.2.0 Tesla.Middleware.RequestId

Takes the :request_id property from the Logger metadata and passes it on in a header. (defaults to "x-request-id").

Example usage

defmodule MyClient do
  use Tesla
  plug Tesla.Middleware.RequestId, header_name: "x-transaction-id"
end