Skip to content

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

License

Notifications You must be signed in to change notification settings

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

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