billcobbler / casbin-redis-watcher

Redis watcher for Casbin https://github.com/casbin/casbin
Apache License 2.0
19 stars 23 forks source link

Instrument Redis for metrics reporting #11

Closed dallen42 closed 4 years ago

dallen42 commented 4 years ago

New option setter: func RecordMetrics(callback func(*WatcherMetrics))

Allows user to set a callback function for collecting and reporting various metrics. The WatcherMetrics struct passed to the callback will contain: latency, channel, protocol and local id. If applicable, error and message size is also returned

hsluoyz commented 4 years ago

Any one to review and merge?

hsluoyz commented 4 years ago

Why CI failed?