Active support subscriber for Opentelemetry
Helper for the gem "opentelemetry-ruby". Subscribe to active support events and add context active support events to current span.
Installation
# --- from GitHub ---
gem 'otel-active-support-subscriber', github: "Cado-Labs/otel-active-support-subscriber"
# --- or ---
gem 'otel-active-support-subscriber'
bundle install
# --- or ---
gem install otel-active-support-subscriber
require 'otel-active-support-subscriber'
Usage
::Otel::ActiveSupportSubscriber.configure do |config|
config.subscribe_to = [/.*/, "/sql/", "sql.sequel"]
end
- Array elements starting and ending with "/" are converted to a regular expression
Contributing
- Fork it ( https://github.com/Cado-Labs/otel-active-support-subscriber )
- Create your feature branch (
git checkout -b feature/my-new-feature
) - Commit your changes (
git commit -am '[feature_context] Add some feature'
) - Push to the branch (
git push origin feature/my-new-feature
) - Create new Pull Request
License
Released under MIT License.