Created
September 11, 2018 10:38
-
-
Save rafaels88/0d3d2e4dc5eddfe987a94b7aef2d01ef to your computer and use it in GitHub Desktop.
Quiqup - Opus Pipeline Instrumentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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