module Datadog::Contrib::Registerable::ClassMethods
Class methods for registerable behavior
Public Instance Methods
register_as(name, options = {})
click to toggle source
# File lib/ddtrace/contrib/registerable.rb, line 14 def register_as(name, options = {}) registry = options.fetch(:registry, Datadog.registry) auto_patch = options.fetch(:auto_patch, false) registry.add(name, new(name, options), auto_patch) end