Created
April 6, 2016 03:13
-
-
Save sorentwo/c3947ed5e1b9c448bdbda34255e87066 to your computer and use it in GitHub Desktop.
Knuckles Skylight Integration
This file contains hidden or 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
| 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