Awesome
Ruby Appdash
Appdash client for Ruby.
Installation
Add this line to your application's Gemfile:
gem 'appdash'
Or install:
$ gem install appdash
Connect to an instance:
client = Appdash::Client.new host: "remote.host", port: 7701, max_buffer_size: 20
Collect spans:
client.span do |s|
s.name "Request"
s.log "a log entry with a timestamp"
end
Rack middleware:
require 'sinatra'
require 'appdash/middleware'
client = Appdash::Client.new host: "remote.host", port: 7701
use Appdash::Middleware, client
get '/' do
"OK"
end
For full options and event types, please see the Documentation.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Make a pull request