SpandexTesla v0.1.0 SpandexTesla View Source
Tracing integration between tesla and spandex. It leverages telemetry to get the tesla events and trace them with spandex.
Usage
Configure the correct tracer to be used:
config :spandex_tesla
service: :tesla, # Optional
tracer: MyApp.Tracer, # Required
Include the telemetry middleware in your tesla client:
defmodule MyClient do
use Tesla
plug Tesla.Middleware.Telemetry
end
Attach the telemetry handler:
# in application.ex
:telemetry.attach(
"spandex-tesla-tracer",
[:tesla, :request],
&SpandexTesla.handle_event/4,
nil
)
Link to this section Summary
Functions
Telemetry handler. Attach it to the telemetry tesla events in order to trace the tesla calls.
Link to this section Functions
Telemetry handler. Attach it to the telemetry tesla events in order to trace the tesla calls.