The project is in a healthy, maintained state
ActiveRecord OpenTracing intrumenter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 13.0
~> 3.9.0
~> 0.78.0
~> 1.37.0
>= 0
~> 1.4.2

Runtime

 Project Readme

ActiveRecord::OpenTracing

Adds OpenTracing instrumentation to ActiveRecord

Installation

Add this line to your application's Gemfile:

gem 'activerecord-instrumentation'

Usage

require 'opentracing'
OpenTracing.global_tracer = TracerImplementation.new

require 'active_record/open_tracing'
# If a sanitizer is specified, it will be used to scrub the sql statements. This is optional.
sanitizer = ActiveRecord::OpenTracing::SqlSanitizer.build_sanitizer(:mysql)
ActiveRecord::OpenTracing.instrument(sanitizer: sanitizer)

Development

Gem documentation

You can find the documentation by going to CircleCI, looking for the build job, going to Artifacts and clicking on index.html. A visual guide on this can be found in our wiki at Gems Development: Where to find documentation for our gems.

Gem development

After checking out the repo, run bundle install to install dependencies. Then, run rake spec to run the tests. You can also run bundle console for an interactive prompt that will allow you to experiment.

This repository uses a gem publishing mechanism on the CI configuration, meaning most work related with cutting a new version is done automatically.

To release a new version, follow the wiki instructions.