Sha256: a1fc062129e0374bd8f07aabf1433279bf5367ee428b357916c354b06e3032af
Contents?: true
Size: 1.41 KB
Versions: 16
Compression:
Stored size: 1.41 KB
Contents
# ActiveRecord::OpenTracing Adds OpenTracing instrumentation to ActiveRecord ## Installation Add this line to your application's Gemfile: ```ruby gem 'activerecord-instrumentation' ``` ## Usage ```ruby 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](https://wiki.doximity.com/articles/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](https://wiki.doximity.com/articles/gems-development-releasing-new-versions).
Version data entries
16 entries across 16 versions & 1 rubygems