Skip to content

Instantly share code, notes, and snippets.

@sorentwo
Created April 6, 2016 03:13
Show Gist options
  • Save sorentwo/c3947ed5e1b9c448bdbda34255e87066 to your computer and use it in GitHub Desktop.
Save sorentwo/c3947ed5e1b9c448bdbda34255e87066 to your computer and use it in GitHub Desktop.
Knuckles Skylight Integration
module Skylight
module Normalizers
class Knuckles < Normalizer
register 'knuckles.stage'
CAT = 'app.knuckles.pipeline'.freeze
def normalize(trace, name, payload)
stage = payload[:stage]
title = stage.sub(/^Knuckles::(Stages::)?/, '')
[CAT, title, payload]
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment