ts-graphite-decorator
Simple decorator collection for using it with graphite package.
Decorators are written using current typescript decorators implementation and you can easy integrate them in your typescript code.
You can get more info about typescript decorators on the official typescript docs site.
Note that you should open graphite connection using graphite module (or it's own custom implementation) in your own code.
Changelog
1.0.0 - Deps up. Error report enable.
0.0.7 - Now you can pass graphite connection string in decorator w/o client.
0.0.5, 0.0.6 - Some bugfixes
0.0.4 - Added logging interval - 60 sec (TODO - configure it)
0.0.2 & 0.0.3 - Some inner module fixes.
0.0.1 - Hello world! First version with Metered decorator.
Usage
;; ; ;test.meteredExample; // graphite got some info about your method exec time
;; ; ;test.rpmExample; // graphite will get info about 1 rpm/min
Or
; ;test.rpmExample; // graphite will get info about 1 rpm/min
Check out the examples folder: https://github.com/dlukanin/ts-graphite-decorator/tree/master/examples
License
MIT https://github.com/dlukanin/ts-graphite-decorator/blob/master/LICENSE