Low commit activity in last 3 years
No release in over a year
Datadog APM exporter for OpenCensus
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.16, < 3.0
~> 10.0
~> 3.0

Runtime

 Project Readme

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.