SpandexRedix
Tracing integration between redix and spandex. It leverages telemetry to get the redix events and trace them with spandex.
Installation
The package can be installed
by adding spandex_redix to your list of dependencies in mix.exs:
def deps do
[
{:spandex_redix, "~> 0.1.0"}
]
endUsage
Configure the correct tracer to be used:
config :spandex_redix
service: :redix, # Optional
tracer: MyApp.Tracer, # RequiredAttach the telemetry handler:
# in application.ex
:telemetry.attach_many(
"spandex-redix-tracer",
[
[:redix, :pipeline],
[:redix, :pipeline, :error]
],
&SpandexRedix.handle_event/4,
nil
)The docs can be found at https://hexdocs.pm/spandex_redix.