Module: Datadog::Tracing::Contrib::Registerable::ClassMethods

Defined in:
lib/datadog/tracing/contrib/registerable.rb

Overview

Class methods for registerable behavior

Instance Method Summary collapse

Instance Method Details

#register_as(name, registry: Contrib::REGISTRY, auto_patch: false, **options) ⇒ Object

Registers this integration in the global tracer registry. Once registered, this integration can be activated with:

Datadog.configure do |c|
  c.tracing.instrument :name
end

Parameters:

See Also:



33
34
35
# File 'lib/datadog/tracing/contrib/registerable.rb', line 33

def register_as(name, registry: Contrib::REGISTRY, auto_patch: false, **options)
  registry.add(name, new(name, **options), auto_patch)
end