Skip to content

Instantly share code, notes, and snippets.

@rafaels88
Created September 11, 2018 10:38
Show Gist options
  • Save rafaels88/0d3d2e4dc5eddfe987a94b7aef2d01ef to your computer and use it in GitHub Desktop.
Save rafaels88/0d3d2e4dc5eddfe987a94b7aef2d01ef to your computer and use it in GitHub Desktop.
Quiqup - Opus Pipeline Instrumentation
defmodule PipelineInstrumentation do
def instrument(:pipeline_started, %{pipeline: Quiqup.DispatchOrderStagePipeline}, %{input: input}) do
# publish the metrics to a specific backend
end
def instrument(:stage_completed, %{stage: %{pipeline: Quiqup.DispatchOrderStagePipeline}}, %{time: time}) do
# publish the metrics to a specific backend
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment