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"}
  ]
end

Configuration

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
  )
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/spandex_quantum.

Contributing

  1. clone and branch off
  2. run make install
  3. run make pre-push to verify master is clean
  4. write your tests and make changes to source
  5. run make pre-push again to verify your changes pass
  6. add yourself to the contibuters list in your branch
  7. Make a PR and request @mrmarcsmith who will review within 0 to INT_MAX days. (probably)