Project

appdash

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby client for Appdash, Sourcegraph's application tracing system, based on Google's Dapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Make a pull request