Skip to content

Cado-Labs/otel-active-support-subscriber

Repository files navigation

Active support subscriber for Opentelemetry

· Supported by Cado Labs · Coverage Status · Gem Version

Helper for the gem "opentelemetry-ruby". Subscribe to active support events and add context active support events to current span.


Supported by Cado Labs


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.

Supporting

Supported by Cado Labs

Authors

Aleksandr Starovojtov

About

Helper for the gem "opentelemetry-ruby". Subscribe to active support events and add context from active support events to current span.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published