Ruby Datadog APM Exporter for OpenCensus Build Status

This library is the implementation of OpenCensus exporter that transfer metrics to Datadog APM. It is depending on Datadog Agent v6.

Installation

Add opencensus-datadog to your application's Gemfile:

gem 'opencensus-datadog'

And install the gem using Bundler:

$ bundle install

Usage

Register this gem using OpenCensus configuration:

OpenCensus.configure do |c|
  c.trace.exporter = OpenCensus::Trace::Exporters::Datadog.new
end

You can also use the following code if using Ruby on Rails:

config.opencensus.trace.exporter = OpenCensus::Trace::Exporters::Datadog.new

By default, this gem sends metrics to the Datadog Agent at http://localhost:8126. You can send to different host or port.

OpenCensus.configure do |c|
  c.trace.exporter = OpenCensus::Trace::Exporters::Datadog.new \
    agent_hostname: '192.168.1.1',
    agent_port: '1234'
end

License

This project is releases under the MIT License.