tesla v1.3.0 Tesla.Middleware.Telemetry View Source

Send the request time and meta-information through telemetry.

Example usage

defmodule MyClient do
  use Tesla

  plug Tesla.Middleware.Telemetry

end

:telemetry.attach("my-tesla-telemetry", [:tesla, :request], fn event, time, meta, config ->
  # Do something with the event
end)

Please check the telemetry for the further usage.