https://github.com/errbit/hoptoad_zmq_notifier
Hoptoad Notifier extension making hoptoad client speak to server via 0MQ socket.
https://github.com/errbit/hoptoad_zmq_notifier
Last synced: 7 months ago
JSON representation
Hoptoad Notifier extension making hoptoad client speak to server via 0MQ socket.
- Host: GitHub
- URL: https://github.com/errbit/hoptoad_zmq_notifier
- Owner: errbit
- License: mit
- Created: 2011-02-22T13:53:30.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-29T11:39:43.000Z (almost 15 years ago)
- Last Synced: 2025-01-07T11:30:53.197Z (about 1 year ago)
- Language: Ruby
- Homepage: https://github.com/oruen/hoptoad_zmq_notifier
- Size: 790 KB
- Stars: 4
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
= Hoptoad 0MQ Notifier
Hoptoad notifier extension for speaking to the server over 0mq socket.
One should use this library to speak to Errbit server extended by Errbit 0MQ Handler (https://github.com/oruen/errbit_zmq_handler)
Advantage of using Hoptoad 0MQ Notifier is async notices sending. You no longer block your app flow with requests to exception handling server.
0MQ does all that stuff.
== Requirements
Ruby 1.9 or JRuby. ffi-rzmq is not working with MRI (and REE) 1.8.7.
== Installation
Install zeromq 2.1 from http://www.zeromq.org/ or your favorite package system.
Install the gem:
gem install hoptoad_zmq_notifier
== Usage
In the same initializer you initialize your Hoptoad Notifier client:
# Your Errbit server config. Only api_key is still relevant.
HoptoadNotifier.configure do |config|
config.api_key = 'ba134e3c7fab581e8685cde0a5e68728'
config.host = 'localhost'
config.port = 3000
end
# 0MQ notifier config
HoptoadZmqNotifier.configure do |config|
# Address to connect to send exception notifications
config.uri = "tcp://127.0.0.1:9998"
end
From now all notices will be send through 0MQ socket to address you defined.
== License
HoptoadZmqNotifier is Copyright © 2011 oruen. It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.