SpandexQuantum
Tracing integration between quantum and spandex
Installation
If available in Hex, the package can be installed
by adding spandex_quantum to your list of dependencies in mix.exs:
def deps do
[
{:spandex_quantum, "~> 0.1.0"}
]
endConfiguration
Configure spandex_quantum to use your App's Spandex.Tracer module in config.exs:
config :spandex_quantum,
service: :my_app_quantum,
tracer: MyApp.Tracer
Attached the telemetry handler to your application.ex:
def start(_type, _args) do
:telemetry.attach_many(
"spandex-quantum-tracer",
[
[:quantum, :job, :add],
[:quantum, :job, :delete],
[:quantum, :job, :update],
[:quantum, :job, :start],
[:quantum, :job, :stop],
[:quantum, :job, :exception]
],
&SpandexQuantum.handle_event/4,
nil
)
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/spandex_quantum.
Contributing
- clone and branch off
-
run
make install -
run
make pre-pushto verify master is clean - write your tests and make changes to source
-
run
make pre-pushagain to verify your changes pass - add yourself to the contibuters list in your branch
- Make a PR and request @mrmarcsmith who will review within 0 to INT_MAX days. (probably)