SpandexRedix v0.1.0 SpandexRedix View Source
Tracing integration between redix and spandex. It leverages telemetry to get the redix events and trace them with spandex.
Usage
Configure the correct tracer to be used:
config :spandex_redix
service: :redix, # Optional
tracer: MyApp.Tracer, # Required
Attach the telemetry handler:
# in application.ex
:telemetry.attach_many(
"spandex-redix-tracer",
[
[:redix, :pipeline],
[:redix, :pipeline, :error]
],
&SpandexRedix.handle_event/4,
nil
)
Link to this section Summary
Functions
Telemetry handler. Attach it to the telemetry redix events in order to trace the redix calls.
Link to this section Functions
Telemetry handler. Attach it to the telemetry redix events in order to trace the redix calls.